CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Is it possible to use solidBodyMotionFvMesh together with dynamicRefineFvMesh? (https://www.cfd-online.com/Forums/openfoam-solving/124426-possible-use-solidbodymotionfvmesh-together-dynamicrefinefvmesh.html)

keepfit October 4, 2013 22:53

Is it possible to use solidBodyMotionFvMesh together with dynamicRefineFvMesh?
 
Hi folks,

I want to model a rolling propeller with interDymFoam, and observe the surface between water and air.

In this case, can we use both solidBodyMotionFvMesh (rolling propeller) and dynamicRefineFvMesh (refinement of surface) in the dynamicMeshDict?

Another important question:

Does mesh refinement only support hexahedral mesh? because I did some tests on dynamicRefineFvMesh with different types of mesh: hex, prism and mesh generated by snappyHexMesh, it seems that only pure hexahedral mesh can do this job (
i have not tried tetra mesh yet, does it support or still not?).

The error was like:

Code:

Selected 329 cells for refinement out of 1422.
[1] hexRef8 : Dumping cell as obj to "/home/testDym/processor1/cell_0.obj"
[0] hexRef8 : Dumping cell as obj to "/home/testDym/processor0/cell_0.obj"
[1] [0]
[0]
[0] --> FOAM FATAL ERROR:
[0] cell 0 of level 0 does not seem to have 8 points of equal or lower level
cellPoints:6(103 244 272 492 633 661)
pointLevels:6{0}
[0]
[0]
[0]    From function hexRef8::setRefinement(const labelList&, polyTopoChange&)
[0]    in file polyTopoChange/polyTopoChange/hexRef8.C at line 3527.
[0]
FOAM parallel run aborting

Cheers,

David Long

keepfit October 27, 2013 20:23

I don't wanna open a new post, so I just ask once again:

did someone ever try to use refineMesh and meshMotion within on case?

e.g. the case of interDyMFoam - sloshingTank3D, what should I do if I want to refine the interface between air and water in the mean time (i.e refineMesh on alpha1) ??


Cheers,

David

danny123 January 30, 2014 11:02

Hello David,

did you get any response meanwhile? Your thread is a couple months old. I read on an older thread that you need to build a new dynamicFvMesh. I have looked up in the system (src/dynamicFvMesh) and this should be possible. But I am not sure if it is sufficient to copy all files into a new folder or you have to merge the file source code itself. From structural stand point, dynamicRefineFvMesh is a couple of files only, whereas solidBodyMotionFvMesh contains a number of subdirectories among one of them is called rotatingMotion, which is apparently used for moving a stirrer (AMI), but maybe some files in the parent directory itself as well.

I use mesh motion in a horizontal mixer. I need the mesh refinement since there is a two phase mixture in that machine and the calculation in interDymFoam does not converge. I intend to use mesh refinement on alpha and if this is not sufficient on walls.

Regards,

Daniel

danny123 January 30, 2014 11:32

Hello David,

just one additional thing that pops up to my mind: the AMI moving mesh needs to be altered only between time steps, whereas the refined mesh is something to happen during the pimple iteration because alpha (or whatever else) is a result of the calculation. Obviously you would want a mesh to refine at proximity of the interface and to become coarse again, when there is none.

Regards,

Daniel

anothr_acc June 12, 2015 06:49

It upsets me to see such interesting questions go unanswered..... I'm looking into this too now but I'm not sure I can really spend any time on it. Fingers crossed.....

PonchO June 12, 2015 13:35

Hey folks,

i don't need mesh refinement and mesh motion in conjunction up to now, but i read about the combination of two dynamic mesh classes in the book:

Maric, Tomislav, Jens Hopken, and Kyle Mooney. "The OpenFOAM technology primer." (2014).

Especially chapter "13.3.2-Combining two Dynamic Mesh Classes" seems helpful for your purposes.

Best regards and have a nice weekend :),

Christoph


All times are GMT -4. The time now is 00:24.