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

dynamic mesh in 2 dimension

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Display Modes
Old   September 28, 2013, 07:16
Default dynamic mesh in 2 dimension
  #1
Member
 
sajad
Join Date: Aug 2013
Posts: 64
Rep Power: 3
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 64
Rep Power: 3
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 Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   September 29, 2013, 04:15
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 64
Rep Power: 3
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: 64
Rep Power: 3
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, 08:30
Default
  #8
Member
 
Hossein
Join Date: Apr 2010
Posts: 62
Rep Power: 7
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, 17:35
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 23:47
Default
  #10
Member
 
Hossein
Join Date: Apr 2010
Posts: 62
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 10 views)
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09
dynamic mesh for drop interface IndrajitW FLUENT 0 March 30, 2013 09:03
Dynamic Mesh on Pintle type injector. herntan FLUENT 15 January 4, 2012 04:31
dynamic mesh on a hexa grid Manoj Kumar FLUENT 0 August 21, 2007 07:41
Gambit problems Althea FLUENT 21 February 6, 2001 08:05


All times are GMT -4. The time now is 15:19.