[Fixed] AMR and parallel run
I'm trying to run the damBreakWithObstacle tutorial, which solves the classical dam break problem with automatic mesh refinement. No problems with the serial run.
It seems also to work in parallel mode (decomposed with scotch).
However, when i try to run reconstructPar, it gives
first you should use "reconstructParMesh" then use "reconstructPar"
i saw the following command somewhere in forum which help me:
Thanks a lot, had to do some minor changes to the code you posted but works great :)
information regarding AMR
I would like to know some basic things about the AMR in Openfoam.
In which version of OF is the AMR available.
And what kind of meshes can be used along with AMR. Any documentation or tutorial about the use .
Thanks for your answers.
I don't know in which version of OpenFOAM AMR first became operative, in this (2.1.0) surely it is. Maybe even in 2.0.0.
For now I have just tried to follow the tutorial in tutorial/multiphase/interDymFoam/ras/damBreakWithObstacle, and works flawlessly.
Given OF's capabilities to operate with generic polyhedral meshes, AMR should work with any kind of mesh.
I ran the above script. It reconstructs the mesh but while reconstructing the fields it gives error. I am posting the output result of the script.
Recontructing mesh for t = 0 s
--> FOAM FATAL ERROR:
Your time was specified as 0 but there is no polyMesh/points in that time.
(there is a points file in "constant")
Please rerun with the correct time specified (through the -constant, -time or -latestTime (at your option).
From function reconstructParMesh
in file reconstructParMesh.C at line 449.
Reconstructing fields for t = 0 s
--> FOAM FATAL ERROR:
No times selected
From function reconstructPar
in file reconstructPar.C at line 139.
Recontructing mesh for t = 0.005 s
Reconstructing fields for t = 0.005 s
#0 Foam::error::printStack(Foam::Ostream&) in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so"
#2 ?? in "/lib64/libc.so.6"
#3 Foam::objectRegistry::checkOut(Foam::regIOobject&) const in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so"
#4 Foam::regIOobject::~regIOobject() in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libOpenFOAM.so"
#5 Foam::IOList<int>::~IOList() in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libfiniteVolume.so"
#6 Foam::processorMeshes::read() in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libreconstruct.so"
#7 Foam::processorMeshes::readUpdate() in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libreconstruct.so"
#8 main in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/bin/reconstructPar"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 _start in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/bin/reconstructPar"
./recd: line 4: 5337 Segmentation fault (core dumped) reconstructPar -time $line >logTmp
Recontructing mesh for t = 0.01 s
After running the script, I have polyMesh directory in all time dumps in my case directory. But there are no fields.
What can be the reason for this?
Actually I begin to see the same error all of a sudden. Normally the reconstructParMesh hasn't been necessary and it doesn't even help here.
|All times are GMT -4. The time now is 23:42.|