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

dynamicMultiDirRefineFvMesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By mturcios777
  • 1 Post By tgvosk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2012, 20:53
Default dynamicMultiDirRefineFvMesh?
  #1
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Hello all,

I'm looking for a way to dynamically refine/unrefine the mesh based on the values of a specific field (like dynamicFvRefineMesh) but to only do it in the prescribed directions.

I had three related questions:

1) Can this already be done with dynamicRefineFvMesh (i.e., is there a flag or somethign I'm missing)?

2) If #1 is false, can the arguments/inputs to hexRef8 be altered to only refine/unrefine in certain directions?

3) If #2 and #1 are false, I intend to write a new class that makes use of multiDirRefine like rhe refineMesh utility. Looking at the code for that mesh makes it look fairly easy to use, but I don't see an easy way to un-refine a region. Is un-refinement even possible?

Thanks guys, I promise to share anything that I develop that is useful...
mm.abdollahzadeh likes this.
mturcios777 is offline   Reply With Quote

Old   October 6, 2012, 16:54
Default
  #2
New Member
 
Tyler V
Join Date: Jul 2012
Posts: 24
Rep Power: 14
tgvosk is on a distinguished road
Marco,

I've looked for this a little bit too, but from what I've seen:

1/2. AFAIK, no, the existing mesh refinement assumes in many places that each hex is split into 8 new cells (hexRef8, refinementHistory, and others have hard-coded the '8', and I don't see any hexRef4 that has been defined. If there was a hexRef template for D dimensions, that would be nice...)

3. Un-refinement is definitely possible, the current dynamicRefineFvMesh does this by storing the original cells from which refined cells are cut so they can be coarsened if desired. I'm not sure if refineMesh stores this information though, or just makes a new mesh.

Hope that helps a little. This would be very useful for 2D simulations!
mm.abdollahzadeh likes this.
tgvosk is offline   Reply With Quote

Old   June 22, 2016, 02:02
Default
  #3
Member
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 50
Rep Power: 12
afrotimy is on a distinguished road
Quote:
Originally Posted by tgvosk View Post
Marco,

I've looked for this a little bit too, but from what I've seen:

1/2. AFAIK, no, the existing mesh refinement assumes in many places that each hex is split into 8 new cells (hexRef8, refinementHistory, and others have hard-coded the '8', and I don't see any hexRef4 that has been defined. If there was a hexRef template for D dimensions, that would be nice...)

3. Un-refinement is definitely possible, the current dynamicRefineFvMesh does this by storing the original cells from which refined cells are cut so they can be coarsened if desired. I'm not sure if refineMesh stores this information though, or just makes a new mesh.

Hope that helps a little. This would be very useful for 2D simulations!
Hi TgVosk,

I can see you have been on 2D version of dynamicRefineFvMesh.

Please do you have any development on the hexRef class for 2D AMR yet ?
afrotimy is offline   Reply With Quote

Old   August 28, 2016, 23:04
Default Re: dynamicRefineFvMesh and hexRef8 for 2D mesh
  #4
Member
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 50
Rep Power: 12
afrotimy is on a distinguished road
Quote:
Originally Posted by afrotimy View Post
Hi TgVosk,

I can see you have been on 2D version of dynamicRefineFvMesh.

Please do you have any development on the hexRef class for 2D AMR yet ?
Just checking out on updates on hexRef for 2D refinement.
afrotimy 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



All times are GMT -4. The time now is 09:03.