In order to convert fluent mesh to OpenFoam, the computer environment variables must be first settled before you can actually use the command:
fluentMeshToFoam mymesh.msh
If you didn't set environment variable first, you will probably meet errors like:
Found unknown block
The purpose of doing so is to ensure your mesh is exported to ASCII format which can be read by OpenFoam.
To set the environment variable, do the following steps.
Step 1: Right click on "My Computer" , click on "Properties", click on the "Advanced" tab, and then click on "Environment Variabls".
Step 2: Under "User Variables for __" click "New", a box should pop up. Fill out the following:
Variable name: AWP_WRITE_FLUENT_MESH_ASCII
Variable value: 1
Step 3: Click "ok" on all the windows to close out of the system properties.
Step 4: Open ICEM or the software you use to re-export mesh file with extension of .msh.
Step 5: In any directory you prefer, Create 3 folders named 0, constant and system.
(or copy from OpenFoam tutorials).
Step 6: Place the mesh file into that directory (not in sub 3 folders) .
Step 7: Your directory should contain 4 folders 0, constant, system and your mesh file.
Step 8: now go to that directory in your terminal and use command
fluentMeshToFoam mymesh.msh
fluentMeshToFoam mymesh.msh
If you didn't set environment variable first, you will probably meet errors like:
Found unknown block
The purpose of doing so is to ensure your mesh is exported to ASCII format which can be read by OpenFoam.
To set the environment variable, do the following steps.
Step 1: Right click on "My Computer" , click on "Properties", click on the "Advanced" tab, and then click on "Environment Variabls".
Step 2: Under "User Variables for __" click "New", a box should pop up. Fill out the following:
Variable name: AWP_WRITE_FLUENT_MESH_ASCII
Variable value: 1
Step 3: Click "ok" on all the windows to close out of the system properties.
Step 4: Open ICEM or the software you use to re-export mesh file with extension of .msh.
Step 5: In any directory you prefer, Create 3 folders named 0, constant and system.
(or copy from OpenFoam tutorials).
Step 6: Place the mesh file into that directory (not in sub 3 folders) .
Step 7: Your directory should contain 4 folders 0, constant, system and your mesh file.
Step 8: now go to that directory in your terminal and use command
fluentMeshToFoam mymesh.msh