CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Error while running chtMultiRegionFoam parallely (https://www.cfd-online.com/Forums/openfoam-solving/156493-error-while-running-chtmultiregionfoam-parallely.html)

Sanoja July 8, 2015 09:05

Error while running chtMultiRegionFoam parallely
 
I have made a mesh of a cylinder in Salome, and created 3 volume groups for the 3 regions I have and 3 face groups to define the boundaries. Then converted the mesh to OpenFoam, used splitMeshRegions. After that followed the ususal steps given in multiRegionHeater tutorial. The when I was trying to run the simulation using the command,

Code:

mpirun.openmpi -np 4 chtMultiRegionFoam -parallel > log
I got an error,

Code:

--> FOAM FATAL IO ERROR:
[0] keyword regions is undefined in dictionary "/home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor0/constant/regionProperties"
[0]
--> FOAM FATAL IO ERROR:
[1] keyword regions is undefined in dictionary "/home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor1/constant/regionProperties"
[1]
[1] file: /home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor1/constant/regionProperties from line 0 to line 0.
[1]
[1]    From function dictionary::lookupEntry(const word&, bool, bool) const
[1]    in file db/dictionary/dictionary.C at line 442.
[1]
FOAM parallel run exiting

There is no such file called regionProperties in $processor0/constant folder, it is there in the $Heater_Cylinder/constant folder thought.

I don't understand the issue, can some one please help me to solve this issue?

Thanks, Sanoja

vabishek July 8, 2015 10:27

Quote:

Originally Posted by Sanoja (Post 554448)
I have made a mesh of a cylinder in Salome, and created 3 volume groups for the 3 regions I have and 3 face groups to define the boundaries. Then converted the mesh to OpenFoam, used splitMeshRegions. After that followed the ususal steps given in multiRegionHeater tutorial. The when I was trying to run the simulation using the command,

Code:

mpirun.openmpi -np 4 chtMultiRegionFoam -parallel > log
I got an error,

Code:

--> FOAM FATAL IO ERROR:
[0] keyword regions is undefined in dictionary "/home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor0/constant/regionProperties"
[0]
--> FOAM FATAL IO ERROR:
[1] keyword regions is undefined in dictionary "/home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor1/constant/regionProperties"
[1]
[1] file: /home/meeseeks/OpenFOAM/meeseeks-2.4.0/run/Cylinder/Heater_Cylinder/processor1/constant/regionProperties from line 0 to line 0.
[1]
[1]    From function dictionary::lookupEntry(const word&, bool, bool) const
[1]    in file db/dictionary/dictionary.C at line 442.
[1]
FOAM parallel run exiting

There is no such file called regionProperties in $processor0/constant folder, it is there in the $Heater_Cylinder/constant folder thought.

I don't understand the issue, can some one please help me to solve this issue?

Thanks, Sanoja

Hello Sanoja,

Check your constant/ directory for regionProperties file. You need to specify ALL of your regions in your geometry, either as solid or fluid, in the regionProperties file or else you are bound to run into errors.

Abishek

PS: If you specified the regions correctly in the regionProperties file, can you possibly upload a test case. Makes it a lot easier that way.

Sanoja July 10, 2015 06:22

Hello Abishek,

Thank you for the help. I have already included the regionProperties file in the constant directory, and have specified the solid and fluid regions there.

Also, when I was checking the mesh, with the checkMesh command, it was ok, still it showed as there is only one region.

I have made the three regions that I wanted as volume groups in Salome mesh, and expected that those will appear as three different regions. Of cause I used the splitMeshRegions command to split the mesh afterwords. So it should be ok. Is there any other way to do this?

In the mean time I'm going to try a simpler mesh, may be a rectangle with three regions, made with Salome. Just to check whether that is going to work.

This silumation was working before with a rectangular mesh that I have made using blockmesh in OpenFOAM.

Regards,
Sanoja


All times are GMT -4. The time now is 05:19.