|
[Sponsors] |
April 23, 2019, 06:57 |
Request help for Dynamic Mesh
|
#1 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
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; 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!!!!!!!!! |
|
April 24, 2019, 03:40 |
|
#2 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Does anyone have any idea?
Last edited by Tobi; April 24, 2019 at 08:43. |
|
April 24, 2019, 08:46 |
|
#3 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
April 24, 2019, 09:18 |
|
#4 | ||
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
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:
Thank you very very much! |
|||
April 26, 2019, 14:28 |
|
#5 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
|
||
April 29, 2019, 11:07 |
|
#6 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Is there any tutorial or example that may help?
Still got no clue on the facezone, cellzone, baffle, AMI stuff. |
|
May 5, 2019, 13:30 |
|
#7 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
I am still getting trouble on this issue, would anyone like to help? Thanks!
|
|
Tags |
dynamicmeshfvmesh, motion |
|
|
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 08:34 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[Other] conformed FSI mesh for unstructured fluid region | ashish.svm | OpenFOAM Meshing & Mesh Conversion | 10 | August 2, 2019 09:40 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 05:17 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 05:24 |