How to visualize the results in OUTPUT_ELEME in 2D plot
Dears,
I would like to know if it it is possible to visualize the results obtained in OUTPUT_ELEME excel file using toughio in 2D plot.
Thanks in advance
14 replies
-
The easiest way that does not require any Python scripting is to use the command line program (see https://toughio.readthedocs.io/en/latest/cli.html#export):
In your terminal or console (not Python IDE such as Spyder), cd to your simulation directory where your OUTPUT_ELEME.csv is located, and run:
toughio-export OUTPUT_ELEME.csv -t int
where `int` stands for the time step number you want to export (by default the last time step `-1`). This command will create a VTK file that you can simply drag and drop to ParaView (https://www.paraview.org/) for visualization.
If you want all the time steps in the same file and kind of animate your results, append the option `-f xdmf`:
toughio-export OUTPUT_ELEME.csv -f xdmf
You can open the XDMF file in ParaView too.
-
Keurfon Luu said:
not Python IDE such as SpyderYou said that Python IDE such as Spyder can not be used. So which IDE that I can use? Can I use Matlab or Visual studio?
-
Hi,
I have installed with by cloning despository with github prompt:
git clone https://github.com/keurfonluu/toughio
then miniconda with command:
pip install .[full] --user
then you this message
WARNING: The scripts toughio-co2tab.exe, toughio-export.exe, toughio-extract.exe, toughio-merge.exe and toughio-save2incon.exe are installed in 'C:\Users\xx\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.you have to add this path in the env. variable.
-
if you install it with conda, add the variable environment in win PATH:
C:\ProgramData\Miniconda3\bin