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

accessing the initial mesh?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 4, 2012, 09:23
Default accessing the initial mesh?
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
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 is offline   Reply With Quote

Old   April 5, 2012, 09:08
Default
  #2
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
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
fisch 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
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 14 September 18, 2011 13:46
Forces in OF15 richard OpenFOAM Running, Solving & CFD 166 September 17, 2011 03:24
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 1 November 25, 2008 21:21
Automatic Mesh Motion solver michele OpenFOAM Running, Solving & CFD 10 September 26, 2005 08:21


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