CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Moving mesh problem

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

LinkBack Thread Tools Display Modes
Old   May 17, 2013, 17:26
Default Moving mesh problem
Senior Member
kilroy's Avatar
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 6
kilroy is on a distinguished road

I have just gone through the OpenFOAM's movingCone tutorial. I can see that, as the object moves to the right side, mesh on the right side is contracting and the mesh on the left side of the object is expanding. Please see the pictures attached (movingCone_initial.png and movingCone_last.png)



After that, I tried to apply the same principles to a ship traveling through calm water making a 45 degree angle with the stream. I want to make the ship move 4 times the length of the ship, but my run crashes a little bit after the start. I think that is because the distortion of the mesh. Please see the pictures attached (ship_initial and ship_last)



Do you know if there is a way to overcome that distortion problem? (Like updating and recreating the mesh in each step)

Thank you very much for your help in advance,

kilroy is offline   Reply With Quote

Old   May 18, 2013, 03:22
Senior Member
Join Date: Jul 2010
Posts: 237
Rep Power: 10
fredo490 is on a distinguished road
Basically you try to use a 2D example and run it in 3D... Well, it is always a mess. Moreover, the example you took uses a structured mesh while you use an unstructured mesh. If I understand well, you want to use the layer add/remove solver ?

For displacement into an unstructured mesh, I usually use the Laplacian solver. But this kind of technique is not very good for large dispalcements.
dynamicMeshDict file:
dynamicFvMesh      dynamicMotionSolverFvMesh;

motionSolverLibs ("");

solver            displacementLaplacian;

    diffusivity       quadratic inverseDistance (wall);
What you can try is to create 3 different areas. Two structured on each side of your domain and in the middle you put your boat. You then have to translate all your middle area (with the boat) so that the 2 areas on the side take the motion by adding/removing layers.
fredo490 is offline   Reply With Quote

Old   May 20, 2013, 16:36
Senior Member
kilroy's Avatar
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 6
kilroy is on a distinguished road

Thank you very much for your response. Dividing the computational domain into three parts is a very good idea, but I have no experience with that.

Do you know any example or tutorial for OpenFOAM, that applies the principles that you have described above?


kilroy is offline   Reply With Quote


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
How to set up a dynamic mesh for a piston moving through a tube of variable diameter? karkar OpenFOAM Meshing & Mesh Conversion 0 July 4, 2012 06:54
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38
Moving mesh problem Jan Majer Siemens 2 June 10, 2003 04:19

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