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

Request help for Dynamic Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2019, 05:57
Default Request help for Dynamic Mesh
  #1
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
I have a simulation that requires dynamic mesh, but I cannot find adequate information of how the whole setup for dynamic mesh. I am new to openFoam, so most of the tutorials I found online is not understandable for me. They are either in lack of detail, or do not have enough guidance. Therefore, I would like to ask for some clear procedure for a dynamic setting.

Below is my simulation requirement:



I need to simulate an object moving from position A to D, passing B and C. In another word, I would like the object to rotate about the axis R_hat. The fluid domain does not have any inlet velocity. It is stationary at the beginning, and the motion of the object would induce the fluid flow inside this domain. Also, the blue arrows indicate the direction that the object is heading to at that moment.

I have set up my dynamicMeshDict as follow:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh  dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver   solidBody;

cellZone  model;

solidBodyMotionFunction rotatingMotion;

origin  (-24636.7487 205.267 976.917);
axis    (0 1 0);
omega   0.4986;
Yet after setting up the dynamicMeshDict, I do not know what should be done next.


I am studying the propeller case, but I have totally no idea of what those cellzone, toposet, etc. are. Could anyone please give me a guideline on how to perform such a simulation? Thanks a lots!!!!!!!!!
Jinjolee is offline   Reply With Quote

Old   April 24, 2019, 02:40
Default
  #2
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Does anyone have any idea?

Last edited by Tobi; April 24, 2019 at 07:43.
Jinjolee is offline   Reply With Quote

Old   April 24, 2019, 07:46
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

if the rotation of the sphere is on a circle, you could make the following:

a) build the fluid domain
b) create the sphere at position A and export it as STL
c) create a cylinder that encloses the sphere and does have the centerline at your centerline you want to have the rotation
d) use snappyHexMesh to i) cut out the sphere and ii) use the cylinder to build a cellZone and faceZone

After that, you can use the faceZone to split the faces (build baffles) and then you can use the cellZone to rotate all cells that are enclosed by the cylinder.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 24, 2019, 08:18
Default
  #4
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

if the rotation of the sphere is on a circle, you could make the following:

a) build the fluid domain
b) create the sphere at position A and export it as STL
c) create a cylinder that encloses the sphere and does have the centerline at your centerline you want to have the rotation
d) use snappyHexMesh to i) cut out the sphere and ii) use the cylinder to build a cellZone and faceZone

After that, you can use the faceZone to split the faces (build baffles) and then you can use the cellZone to rotate all cells that are enclosed by the cylinder.
Hi Tobi, thank you very much for your response.
I have done a) and b).
And for c), do you mean something like the image below:

Where the red cyclinder surround all the position of the sphere that it may move along, and the red centerline (C_hat) of the red cyclinder is collinear with the center of motion (R_hat)?

Also, for part d), I do not understand how to cut out the sphere and use the cylinder to build a cellZone and faceZone. Is these done in a custom Dictionary other than the snappyHexMeshDict? or does it use something like toposet?

And for:
Quote:
After that, you can use the faceZone to split the faces (build baffles) and then you can use the cellZone to rotate all cells that are enclosed by the cylinder.
Could you please explain briefly how could I perform this step? I have never perform such a manipulation.

Thank you very very much!
Jinjolee is offline   Reply With Quote

Old   April 26, 2019, 13:28
Default
  #5
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Quote:
Originally Posted by Jinjolee View Post
Hi Tobi, thank you very much for your response.
I have done a) and b).
And for c), do you mean something like the image below:

Where the red cyclinder surround all the position of the sphere that it may move along, and the red centerline (C_hat) of the red cyclinder is collinear with the center of motion (R_hat)?

Also, for part d), I do not understand how to cut out the sphere and use the cylinder to build a cellZone and faceZone. Is these done in a custom Dictionary other than the snappyHexMeshDict? or does it use something like toposet?

And for:

Could you please explain briefly how could I perform this step? I have never perform such a manipulation.

Thank you very very much!
Could anyone briefly explain how to perform these? Many thanks
Jinjolee is offline   Reply With Quote

Old   April 29, 2019, 10:07
Default
  #6
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Is there any tutorial or example that may help?
Still got no clue on the facezone, cellzone, baffle, AMI stuff.
Jinjolee is offline   Reply With Quote

Old   May 5, 2019, 12:30
Default
  #7
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
I am still getting trouble on this issue, would anyone like to help? Thanks!
Jinjolee is offline   Reply With Quote

Reply

Tags
dynamicmeshfvmesh, motion


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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[Other] conformed FSI mesh for unstructured fluid region ashish.svm OpenFOAM Meshing & Mesh Conversion 10 August 2, 2019 08:40
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24


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