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

dynamicRefineFvMesh in 2 directions

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By AGRONOM
  • 3 Post By AGRONOM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2010, 04:23
Default dynamicRefineFvMesh in 2 directions
  #1
New Member
 
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17
Victor is on a distinguished road
Hallo at all,

I am trying to apply the dynamicRefineFvMesh to detonation simulations in order to increase the mesh refinement at the detonation front.
The problem is that the dynamicRefineFvMesh uses the hexRef8 code for refinement, so that the mesh is refined in all 3 dimensions. In order to decrease the number of cells it would be sufficient to refine the mesh in 2 directions.
I already tried to do through the hexRef8 code, but i do not understand what is going on there!?!

Is there anybody how has experience with this or knows how to solve this problem??

Thanks in advance for any help or hint!

Victor
Victor is offline   Reply With Quote

Old   June 3, 2010, 15:35
Default Same problem here...
  #2
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
Hello Victor,

I'm working in 2D simulations, so I have both empty or wedge faces. If I use the refine option the simulation aborts. This is because, after refinement, the mesh has more than 1 element in the normal direction to the empty face.

I also tried to read hexref8, but it's to complex for me.

Maybe if an advanced user read this can help us? Please help!

I think the idea is to detect the empty direction, but I don't have the knowledge.

Regards

Pablo
pcaron is offline   Reply With Quote

Old   June 7, 2010, 09:29
Default
  #3
New Member
 
Join Date: Mar 2009
Posts: 2
Rep Power: 0
AGRONOM is on a distinguished road
Hi all!
The multiDirRefinement is more suitable for 2d simulations, because it allows to specify refinement directions.

I used to to make a cellSet, by choosing cells with high pressure gradient, and apply the refineMesh.

The problem is that I can't unrefine mesh (when pressure gradient decreases) due to lack of the refinement history.
mm.abdollahzadeh likes this.
AGRONOM is offline   Reply With Quote

Old   June 7, 2010, 10:45
Default
  #4
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
Thanks agronom! I'll give it a try.

How do you create the cellSet? Do you include it into the solver?

Can you share a simple case? Maybe the cavity problem using this refine option.

Regards

Pablo
pcaron is offline   Reply With Quote

Old   June 7, 2010, 12:02
Default
  #5
New Member
 
Join Date: Mar 2009
Posts: 2
Rep Power: 0
AGRONOM is on a distinguished road
> Can you share a simple case?
But I do not guarantee that you'l find something useful in the attachment.
Running this case you should stop the solver to refine the mesh and then continue simulation.
In this case myRefineMesh is used with -dict and -time options i.e.
Code:
myRefineMesh -dict -time 3
>How do you create the cellSet? Do you include it into the solver?
mySonicFoam is a the same as sonicFoam, but for the pressure gradient is
saved in the time dir.
myRefineMesh consists of the cellSet and the refineMesh utilities, so myRefineMesh creates the cellSet, based on the pressure grad from the time dir.
Attached Files
File Type: gz forwardStep.tar.gz (3.1 KB, 24 views)
File Type: gz myRefineMesh.tar.gz (95.6 KB, 39 views)
File Type: gz mySonicFoam.tar.gz (2.3 KB, 26 views)
AGRONOM is offline   Reply With Quote

Old   June 7, 2010, 13:16
Default
  #6
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
Hi Agronom! This is enough information!!! It's my time to work now!

Thank you!!

Pablo
pcaron is offline   Reply With Quote

Old   June 28, 2010, 06:46
Default
  #7
New Member
 
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17
Victor is on a distinguished road
Does anybody know, if there is a possibility to unrefine cells after using multiDirRefinement???It would be great help for me!
Victor 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
[ICEM] Periodic boundaries in two directions jphastings ANSYS 3 January 14, 2022 07:06
Periodic boundary condition in 2 directions arash FLUENT 21 July 25, 2018 13:44
dynamicRefineFvMesh/ solidBodyMotionFvMesh FG_HSRM OpenFOAM 3 July 19, 2012 13:39
How to set directions for porous media ? Judpom FLUENT 0 May 11, 2009 11:22
Periodic Boundary Conditions in two directions david FLUENT 0 April 1, 2002 08:24


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