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

accessing the initial mesh?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2012, 10:23
Default accessing the initial mesh?
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
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, 10:08
Default
  #2
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 11:54
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 17:12
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 06: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 09:21


All times are GMT -4. The time now is 07:15.