CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Point coordinates via orinial point address after decomposing (http://www.cfd-online.com/Forums/openfoam-solving/58670-point-coordinates-via-orinial-point-address-after-decomposing.html)

diana August 6, 2008 10:27

Hi, I working on simulating
 
Hi,

I working on simulating a moving mesh problem with a geometry consisting of several moving patches using a changed version of dynamicBodyFvMesh. As solver I use icoDyMFoam of OpenFOAM-1.4.1.

To ensure the connection of the patches I need the correct coordinates of certain points. There is no problem if I use serial processing. There I read the coordinates from the "points"-file via

vector pt = points()[adress];

Where "address" is the address of the specific point.

The problem occurs, when I use parallel processing.

My idea is to search the orinal point address in the "pointProcAddressing" file to find the new address for this point at the specific processor and use this new address to read the coordinates. But I don't know how to access the "pointProcAddressing" file and how to use the same coordinates for all processors with the belonging patch.

If I try to use the same pattern

scalar ptad = pointProcAddressing()[adress];

I get an error message with:

Signal: Segmentation fault (11)

I would be really grateful for any help!

Bye
Diana


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