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

reconstructpar -region

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2009, 08:44
Default reconstructpar -region
  #1
New Member
 
Per Nilsson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 13
Rep Power: 8
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, 04:45
Default
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 13:52
Default
  #3
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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

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 09:58
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
separation region in corner flows submitted to curvature effects Stephane Main CFD Forum 2 July 13, 1998 19:06


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