File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ foam2dolfinx is a tool for converting OpenFOAM output files to functions that ca
1313``` bash
1414conda create -n foam2dolfinx-env
1515conda activate foam2dolfinx-env
16- conda install -c conda-forge fenics-dolfinx=0.9.0 pyvista
16+ conda install -c conda-forge fenics-dolfinx=0.9.0 mpich pyvista
1717```
1818Once in the created in environment:
1919``` bash
20- pip install git+https://github.com/festim-dev/ foam2dolfinx
20+ python -m pip install foam2dolfinx
2121```
2222
2323# Example usage
@@ -61,7 +61,7 @@ T = my_of_reader.create_dolfinx_function(t=1.0, name="T")
6161from foam2dolfinx import OpenFOAMReader
6262
6363# instantiate reader:
64- my_reader = OpenFOAMReader(filename = " my_local_file.foam" )
64+ my_reader = OpenFOAMReader(filename = " my_local_file.foam" )
6565
6666# read velocity and temperature fields at t=1s
6767vel1 = my_of_reader.create_dolfinx_function(t = 3.0 , name = " U" , subdomain = " sub1" )
You can’t perform that action at this time.
0 commit comments