|
[Sponsors] |
September 28, 2013, 07:16 |
dynamic mesh in 2 dimension
|
#1 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
hi,
Can I do dynamicMesh in 2 dimension? |
|
September 28, 2013, 11:35 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings seju,
Have a look into the tutorial "incompressible/pimpleDyMFoam/movingCone". Best regards, Bruno
__________________
|
|
September 28, 2013, 17:51 |
|
#3 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
tnx Mr. Bruno I saw it, but its 3 dimension. I want do dynamicMesh in 2 dimension in interFoam.Is it possible? |
||
September 29, 2013, 03:22 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
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)
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 29, 2013, 04:15 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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 multiphase/interDyMFoam/ras/sloshingTank2D3DoF Bruno
__________________
|
|
September 30, 2013, 05:25 |
|
#6 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
|
||
September 30, 2013, 05:31 |
|
#7 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
|
||
November 10, 2014, 07:30 |
|
#8 | |
Member
|
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 |
||
November 10, 2014, 16:35 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
November 10, 2014, 22:47 |
|
#10 | |
Member
|
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? |
||
April 6, 2015, 14:56 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh on Pintle type injector. | herntan | FLUENT | 16 | September 4, 2020 08:27 |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 03:19 |
[ICEM] Dynamic mesh setup with ICEM | David121284 | ANSYS Meshing & Geometry | 0 | April 11, 2014 04:19 |
Dynamic Mesh "Shadow Wall" | thezack | FLUENT | 0 | June 4, 2013 22:09 |
dynamic mesh for drop interface | IndrajitW | FLUENT | 0 | March 30, 2013 08:03 |