dynamic mesh in 2 dimension
hi,
Can I do dynamicMesh in 2 dimension?:confused: |
Greetings seju,
Have a look into the tutorial "incompressible/pimpleDyMFoam/movingCone". Best regards, Bruno |
Quote:
tnx Mr. Bruno I saw it, but its 3 dimension. I want do dynamicMesh in 2 dimension in interFoam.Is it possible?:o |
Hello Sajad
it seems you are looking for adaptive mesh refinement (AMR) for 2D case, well it is not included in OpenFOAM, it only refines mesh in 3D hexahedral mesh. so you have two Options: 1- write your own code based on existing one, look at following address http://publications.lib.chalmers.se/...173/174173.pdf 2- consider your front and back patch not empty;), for example symmetryPlane, then using present AMR (your geometry will also be refined in the third direction) |
Greetings to all!
@Sajad: Nima is correct. I pointed to that tutorial of the "movingCone", because even though it uses the wedge feature for simulating only a small part of a 3D axisymmetrical geometry, it can easily be transformed to a 2D model, by the standards of OpenFOAM, as explained in the very first tutorial on the User Guide: http://www.openfoam.org/docs/user/cavity.php And I remembered just now that there are two specific 2D tutorials using interDyMFoam: Code:
multiphase/interDyMFoam/ras/sloshingTank2D Bruno |
Quote:
|
Quote:
|
Quote:
Is it possible to use extrudeMesh utility after each refinement to remove cells in 3rd direction for adaptive refinement method? Perhaps we can write a script to do that. Hossein |
Quote:
|
Quote:
I think that we could extrude the mesh after updating it (for refinement) in the solver without creating new dynamicRefineFvMesh class, don't you? |
1 Attachment(s)
Hi Hossein,
Sorry for the really late reply, but only today did I finally manage to come back to your post. Quote:
But in practice, I'm not convinced that extruding the mesh would be the best approach. As I've written in my previous post, the dynamicRefineFvMesh class was designed for 3D refinement and therefore you will need a special handling for 2D meshes. Not only that, but you would also need a variant of the class hexRef8, which would be named "hexRef4" (divide twice over X and Y). I was curious about this and I've attached a test case based on the tutorial "multiphase/interDyMFoam/ras/damBreakWithObstacle" (from OpenFOAM 2.3.x), but configured for 2D. It crashes at 0.38s, probably because of some liquid that wanted to exit the domain... anyway, this is a good basis for getting started with a 2D variant of dynamicRefineFvMesh. Best regards, Bruno |
All times are GMT -4. The time now is 04:25. |