CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   accessing the initial mesh? (http://www.cfd-online.com/Forums/openfoam-programming-development/99485-accessing-initial-mesh.html)

fisch April 4, 2012 09:23

accessing the initial mesh?
 
Hi,

can anybody tell me if it is possible to access the initial mesh in a dynamicMesh simulation e.g. with pimpleDyMFoam???

thanks a lot,

rupert

fisch April 5, 2012 09:08

Hi,

i tried to calculate the initial mesh positions with the following procedure inside a meshmotion solver:

volVectorField cellPos = fvMesh_.C();

forAll(cellPos, pointI)
{
coordx=cellPos[pointI].x() - cellDisplacement_[pointI].x();
coordy=cellPos[pointI].y() - cellDisplacement_[pointI].y();
coordz=cellPos[pointI].z() - cellDisplacement_[pointI].z();
...
...
...
}


can anybody tell me what is the mistake here?
the coordinates i get are around 1-2% wrong.


Maybe someone can tell me how to direct access the initial mesh...

thanks in advance
rupert


All times are GMT -4. The time now is 03:08.