Difference between revisions of "FSI 3D Upgrade"
NikLebedenko (talk | contribs) (→Install mesh conversion software: Added further instructions) |
NikLebedenko (talk | contribs) m (formatting, updated TODO list) |
||
Line 3: | Line 3: | ||
TODO: | TODO: | ||
* | * Upload the files | ||
* | *Add all the links | ||
This page follows on from the standard [[FSI installation instructions]]. Follow those instructions first before continuing with this page. | This page follows on from the standard [[FSI installation instructions]]. Follow those instructions first before continuing with this page. | ||
== Modify the adapter for 3D FSI == | |||
Download all the files for the 3D version from this Drive folder [todo add link] | Download all the files for the 3D version from this Drive folder [todo add link] | ||
Line 18: | Line 17: | ||
Replace each file in your installation location with the 3D version you downloaded earlier. | Replace each file in your installation location with the 3D version you downloaded earlier. | ||
== Verify everything is working correctly == | |||
Download this modified tutorial case [todo add link] | Download this modified tutorial case [todo add link] | ||
Line 29: | Line 28: | ||
After a while, both terminals should stop. View the results in ParaView, and verify it looks similar to the original 2D tutorial case. | After a while, both terminals should stop. View the results in ParaView, and verify it looks similar to the original 2D tutorial case. | ||
== Install mesh conversion software == | |||
FEniCS sadly does not natively support the import of ANSYS or OpenFOAM meshes, so a workaround must be used to generate its <code>.xml</code> mesh files. | FEniCS sadly does not natively support the import of ANSYS or OpenFOAM meshes, so a workaround must be used to generate its <code>.xml</code> mesh files. | ||
Line 36: | Line 35: | ||
Download the <code>foamToFenics</code> OpenFOAM case [todo add link]. | Download the <code>foamToFenics</code> OpenFOAM case [todo add link]. | ||
=== Convert between ANSYS mesh and FEniCS mesh === | |||
# Export the ANSYS mesh as <code>.msh</code> | # Export the ANSYS mesh as <code>.msh</code> | ||
Line 43: | Line 42: | ||
# Run <code>./exportFenics</code> | # Run <code>./exportFenics</code> | ||
=== Convert between OpenFOAM mesh and FEniCS mesh === | |||
# Copy the <code>polyMesh</code> directory into <code>foamToFenics/constant</code> | # Copy the <code>polyMesh</code> directory into <code>foamToFenics/constant</code> | ||
# Run <code>./exportFenics</code> | # Run <code>./exportFenics</code> |
Revision as of 06:34, 24 January 2022
This page is incomplete
TODO:
- Upload the files
- Add all the links
This page follows on from the standard FSI installation instructions. Follow those instructions first before continuing with this page.
Modify the adapter for 3D FSI
Download all the files for the 3D version from this Drive folder [todo add link]
Locate this installation location of the FEniCS-preCICE using python3 -m pip show fenicsprecice
Navigate to this location, in my case: cd /home/nik/.local/lib/python3.8/site-packages/fenicsprecice
Replace each file in your installation location with the 3D version you downloaded earlier.
Verify everything is working correctly
Download this modified tutorial case [todo add link]
Navigate to the solid-fenics
folder and do ./run.sh
- there should be no errors, and the output should pause after a short setup period.
Now open another Ubuntu terminal, and navigate to the fluid-openfoam
folder and do ./run.sh
Both terminals should now have command outputs flying, similar to the original 2D tutorial case you ran when installing the 2D FSI software.
After a while, both terminals should stop. View the results in ParaView, and verify it looks similar to the original 2D tutorial case.
Install mesh conversion software
FEniCS sadly does not natively support the import of ANSYS or OpenFOAM meshes, so a workaround must be used to generate its .xml
mesh files.
Install meshio
with all optional dependencies using python3 -m pip install meshio[all]
Download the foamToFenics
OpenFOAM case [todo add link].
Convert between ANSYS mesh and FEniCS mesh
- Export the ANSYS mesh as
.msh
- Open an Ubuntu terminal, navigate to the
foamToFenics
OpenFOAM case, and copy the.msh
file there. - Import the mesh with
fluentMeshToFoam <your msh file>
, replacing<your msh file>
with the full filename and extension of your.msh
file. - Run
./exportFenics
Convert between OpenFOAM mesh and FEniCS mesh
- Copy the
polyMesh
directory intofoamToFenics/constant
- Run
./exportFenics