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

reconstructpar -region

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2009, 09:44
Default reconstructpar -region
  #1
New Member
 
Per Nilsson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 21
Rep Power: 17
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
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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
Default
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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

Reply


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


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
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 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 21:50.