|
[Sponsors] |
May 31, 2010, 04:23 |
dynamicRefineFvMesh in 2 directions
|
#1 |
New Member
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17 |
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 |
|
June 3, 2010, 15:35 |
Same problem here...
|
#2 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 |
|
June 7, 2010, 09:29 |
|
#3 |
New Member
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
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. |
|
June 7, 2010, 10:45 |
|
#4 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 |
|
June 7, 2010, 12:02 |
|
#5 |
New Member
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
> 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 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. |
|
June 7, 2010, 13:16 |
|
#6 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hi Agronom! This is enough information!!! It's my time to work now!
Thank you!! Pablo |
|
June 28, 2010, 06:46 |
|
#7 |
New Member
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17 |
Does anybody know, if there is a possibility to unrefine cells after using multiDirRefinement???It would be great help for me!
|
|
|
|
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 |