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

[Other] dynamic mesh in 2 dimension

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By nimasam
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2013, 07:16
Default dynamic mesh in 2 dimension
  #1
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
hi,
Can I do dynamicMesh in 2 dimension?
seju is offline   Reply With Quote

Old   September 28, 2013, 11:35
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings seju,

Have a look into the tutorial "incompressible/pimpleDyMFoam/movingCone".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 28, 2013, 17:51
Default
  #3
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings seju,

Have a look into the tutorial "incompressible/pimpleDyMFoam/movingCone".

Best regards,
Bruno
------------------------------------------------------------------------
tnx Mr. Bruno
I saw it, but its 3 dimension.
I want do dynamicMesh in 2 dimension in interFoam.Is it possible?
seju is offline   Reply With Quote

Old   September 29, 2013, 03:22
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
wyldckat likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   September 29, 2013, 04:15
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 30, 2013, 05:25
Default
  #6
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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)
thank you Mr sam.Im trying to do it.
seju is offline   Reply With Quote

Old   September 30, 2013, 05:31
Default
  #7
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
Best regards,
Bruno
thank you so much mr santos.
seju is offline   Reply With Quote

Old   November 10, 2014, 07:30
Default
  #8
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Quote:
Originally Posted by wyldckat View Post
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
Best regards,
Bruno
Dear Bruno,

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
atoof is offline   Reply With Quote

Old   November 10, 2014, 16:35
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by atoof View Post
Is it possible to use extrudeMesh utility after each refinement to remove cells in 3rd direction for adaptive refinement method?
Quick answer - It depends:
  1. More details would make it easier to answer you.
  2. extrudeMesh usually cannot be used within a solver. But it can be used between using meshing utilities.
  3. The only adaptive refinement method that comes to mind is the one that is exemplified in the tutorial "multiphase/interDyMFoam/ras/damBreakWithObstacle". In such a situation, extrudeMesh is not advisable, because this dynamic meshing strategy relies on being able to undo the refinement operation.
    • The only solution I think of is that you would have to create your own dynamicRefineFvMesh class, which would be able to handle pseudo-2D meshes.
wyldckat is offline   Reply With Quote

Old   November 10, 2014, 22:47
Default
  #10
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Quote:
Originally Posted by wyldckat View Post
Quick answer - It depends:
  1. More details would make it easier to answer you.
  2. extrudeMesh usually cannot be used within a solver. But it can be used between using meshing utilities.
  3. The only adaptive refinement method that comes to mind is the one that is exemplified in the tutorial "multiphase/interDyMFoam/ras/damBreakWithObstacle". In such a situation, extrudeMesh is not advisable, because this dynamic meshing strategy relies on being able to undo the refinement operation.
    • The only solution I think of is that you would have to create your own dynamicRefineFvMesh class, which would be able to handle pseudo-2D meshes.
Thanks Bruno for your suggestion. Actually I've modified the solver reactingFoam where mesh refines adaptively in the flame region (reactingDymFoam). As you know, simulation of reacting flows needs high computational cost when the number of species increase. I am running a 2D case and I need to remove the cells refined in the 3rd direction when the refinement is done.
I think that we could extrude the mesh after updating it (for refinement) in the solver without creating new dynamicRefineFvMesh class, don't you?
atoof is offline   Reply With Quote

Old   April 6, 2015, 14:56
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Hossein,

Sorry for the really late reply, but only today did I finally manage to come back to your post.

Quote:
Originally Posted by atoof View Post
I think that we could extrude the mesh after updating it (for refinement) in the solver without creating new dynamicRefineFvMesh class, don't you?
In theory, yes, because it's digital and in the digital world everything is possible.

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
Attached Files
File Type: gz damBreakWithObstacle2D.tar.gz (3.8 KB, 53 views)
mf3 likes this.
__________________
wyldckat is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 20:17.