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

mesh.update() and dynamic mesh?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2010, 04:02
Default mesh.update() and dynamic mesh?
  #1
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
Hi guys,

For a dynamic mesh case I've set the pointDisplacement and cellDisplacement of a moving patch using the following code:

Code:
pointDisplacement.boundaryField()[patchi] == newPoint - oldPoint;
cellDisplacement.boundaryField()[patchi] == newCell - oldCell;
And the patch moves accordingly. However, the mesh.update() function in the main solver does not seems to be working, or at least I think that's the function that calls for the motion of all the other points/cells around the patch. The end result was that the patch moves, but none of the other grid points does, hence collapsing some of the cells and crashed the solver. I'm wondering if I am implementing the dynamic mesh function correctly, and below is the pseudo code of the solver (modified based on the pimpleDyMFoam solver):

Code:
while(runTime.run());
#include "setDeltaT.H"
#include "rotatePatch.H"
mesh.update();
if (mesh.changing() .....)
PIMPLE Loop
#include "forceBalance.H"
end
Hope there's someone out there who can help, I've been messing around with the dynamicMeshDict for a few days now to no avail. Thanks in advance to anyone who helps =).

John

Last edited by cwang5; July 20, 2010 at 05:33.
cwang5 is offline   Reply With Quote

Old   July 23, 2010, 00:37
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
What class of dynamicFvMesh are you using? The one which invokes the mesh-motion solver is dynamicMotionSolverFvMesh... That should do what you're looking for.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Reply


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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 05:27
Dynamic Mesh on Pintle type injector. herntan FLUENT 16 September 4, 2020 09:27
Dynamic mesh update problem. David FLUENT 3 March 15, 2012 06:02
Some questions about mesh updating in dynamic mesh technique lzgwhy Main CFD Forum 0 June 14, 2009 09:01
Dynamic mesh - structured mesh mrestrepo30 FLUENT 0 June 3, 2009 16:40


All times are GMT -4. The time now is 21:09.