CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

reconstructpar -region

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 15, 2009, 09:44
Default reconstructpar -region
New Member
Per Nilsson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 13
Rep Power: 11
borrbyper is on a distinguished road
I have a case which is first decomposed to 6 processors and then split into 3 regions.
The mesh is moving in all three regions, but the topology is constant.
One region is called "plate".

To reconstruct the case, I first run
reconstructParMesh -region plate
That reconstructs the mesh for plate in 0/plate/polyMesh.

Then, when I try to reconstruct the fields, using
reconstructPar -region plate
it works fine for time 0 (as expected), but later for time 0.01 I get this error:

Time = 0.01
cannot open file

file: /home/workdisc/FIV2/Fall2/OpenFOAM/c2p4nw/processor0/0.01/plate/plate/polyMesh/points at line 0.
From function regIOobject::readStream(const word&)
in file db/regIOobject/regIOobjectRead.C at line 66.
FOAM exiting

The region name, "plate", is twice in the path. ?

Therefore I removed "regionPrefix/" from line 220 in processorMeshes.C.
Now reconstructPar "works", but maybe the reconstructed data
is written on the original (undeformed) mesh from time step 0.

Is the twofold occurrence of the region name in the path a bug?
Have I got it right?
What could you do instead?
borrbyper is offline   Reply With Quote

Old   April 16, 2009, 05:45
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 19
mattijs is on a distinguished road
Sounds like a bug. Can you post a simple testcase?
mattijs is offline   Reply With Quote

Old   April 23, 2009, 14:52
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 19
mattijs is on a distinguished road
Hi borrbyper,

your fix looks correct. The regionName is already the name of the mesh so will already be handled correctly 'under the hood'.

thanks, Mattijs
mattijs is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gambit HEX core method gives unwanted 2D region KK FLUENT 1 February 4, 2008 10:31
Rotating region of a centr. pump - Counter R wall Emre CFX 0 September 20, 2007 10:58
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 05:15
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 09:19
separation region in corner flows submitted to curvature effects Stephane Main CFD Forum 2 July 13, 1998 20:06

All times are GMT -4. The time now is 20:26.