CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   reconstructpar -region (https://www.cfd-online.com/Forums/openfoam-bugs/63653-reconstructpar-region.html)

borrbyper April 15, 2009 08:44

reconstructpar -region
 
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?

mattijs April 16, 2009 04:45

Sounds like a bug. Can you post a simple testcase?

mattijs April 23, 2009 13:52

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


All times are GMT -4. The time now is 22:02.