CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   accessing the initial mesh? (

fisch April 4, 2012 09:23

accessing the initial mesh?

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

thanks a lot,


fisch April 5, 2012 09:08


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

All times are GMT -4. The time now is 01:36.