CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

AMR and parallel run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2012, 06:36
Thumbs up [Fixed] AMR and parallel run
  #1
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15
lichmaster is on a distinguished road
Hi all,

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

Quote:
--> FOAM FATAL IO ERROR:
cannot find file

file: /home/lorenzo/Scrivania/damBreakWithObstacle/processor0/0.02/polyMesh/pointProcAddressing at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
Any ideas?

Last edited by lichmaster; March 8, 2012 at 04:11. Reason: Fixed
lichmaster is offline   Reply With Quote

Old   March 7, 2012, 08:49
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
first you should use "reconstructParMesh" then use "reconstructPar"
i saw the following command somewhere in forum which help me:
Quote:
timeList=$(ls processor0/ | awk '$1!="constant"');

for line in $timeList
do
echo "Recontructing mesh for t = "$line" s";
reconstructParMesh -time $line > logTmp;

echo "Reconstructing fields for t = "$line" s";
reconstructPar -time $line > logTmp;

echo "";
done

rm logTmp;
nimasam is offline   Reply With Quote

Old   March 8, 2012, 04:10
Smile
  #3
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15
lichmaster is on a distinguished road
Thanks a lot, had to do some minor changes to the code you posted but works great
lichmaster is offline   Reply With Quote

Old   March 9, 2012, 04:28
Default information regarding AMR
  #4
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello guys,
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.

bye
regards
K.Suresh kumar
kumar is offline   Reply With Quote

Old   March 9, 2012, 04:45
Default
  #5
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15
lichmaster is on a distinguished road
Hi,

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.
lichmaster is offline   Reply With Quote

Old   April 15, 2012, 07:20
Default
  #6
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Quote:
Originally Posted by nimasam View Post
first you should use "reconstructParMesh" then use "reconstructPar"
i saw the following command somewhere in forum which help me:

Code:
timeList=$(ls processor0/ | awk '$1!="constant"');

for line in $timeList
do
echo "Recontructing mesh for t = "$line" s";
reconstructParMesh -time $line > logTmp;

echo "Reconstructing fields for t = "$line" s";
reconstructPar -time $line > logTmp;

echo "";
done

rm logTmp;
Hi Nima,

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.

FOAM exiting

Reconstructing fields for t = 0 s


--> FOAM FATAL ERROR:
No times selected

From function reconstructPar
in file reconstructPar.C at line 139.

FOAM exiting


Recontructing mesh for t = 0.005 s
Reconstructing fields for t = 0.005 s
#0 Foam::error:rintStack(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:bjectRegistry::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:rocessorMeshes::read() in "/Storage1/cfd/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64Gcc45DPOpt/lib/libreconstruct.so"
#7 Foam:rocessorMeshes::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?

Hrushikesh
Hrushi is offline   Reply With Quote

Old   May 3, 2012, 08:23
Default
  #7
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
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.

Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Reply

Tags
amr, parallel error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:06.