|
[Sponsors] |
[blockMesh] Creating a mesh that has high resolution at fluid interface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2016, 13:26 |
Creating a mesh that has high resolution at fluid interface
|
#1 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
Hello all,
I'm trying to run a multiphase simulation in a cube which has air on the top half and water on the bottom half. When generating my mesh with blockMesh, how would I make the grading more fine around the interface (about half way up the vertical axis)? |
|
July 21, 2016, 00:26 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
If you are using upwards of OF2.4, you can do multigrading on your blockMesh to get your desired mesh. Cheers, Antimony |
|
July 21, 2016, 02:00 |
|
#3 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
topoSet with fieldToCell between e.g. 0.1 and 0.9, then refineMesh on the resulting cellSet.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 21, 2016, 10:26 |
|
#4 | ||
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
Awesome thanks for getting back to me; I'd like to try both techniques.
Quote:
simpleGrading ( 1 1 (a b c) (d e f) (g h i) ); but I'm not sure what a-i should be because I don't understand the algorithm; for a domain with a dense middle in the z-dir, what do you think? Quote:
|
|||
July 21, 2016, 23:16 |
|
#5 | |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Yup, you are right: Quote:
So the simpleGrading now becomes: Code:
simpleGrading ( 1 1 ( (20 20 0.25) (50 100 1) (30 10 4) ) ) Hope this clarifies. Cheers, Antimony |
||
July 22, 2016, 00:26 |
|
#6 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
Ah its so simple now
Many thanks Antimony. If I can help you in the future, though unlikely, don't hesitate to ask. |
|
October 5, 2016, 12:51 |
tips to find out mesh resolution in r, theta and z direction
|
#7 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Hello all,
Being naive to OF, I am asking this question which you may find simple! I have a small tube, and to create mesh, I used blockMesh with arcs with 5 hex as shown. Now I want to find mesh resolution in 'r' and 'theta' direction (as in z direction it will be same as defined in blockMesh). Is there any utility in ParaView or in OF? Also, any hint to calculate delta(r), delta(r.theta)? |
|
October 6, 2016, 00:32 |
|
#8 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
When you specify the arcs, you end up specifying the mesh resolution in the radial and circumferential direction, no? The x1 & x2 directions of the blockMesh are along the first and second edges used to define the blockMesh. So if your first edge is an arc, then the number of divisions would be equivalent to that of the circumferential direction. And if your second edge is one that connects the two arcs, then it would be equivalent to specifying the number of divisions along the radial direction. No? Cheers, Antimony |
|
October 7, 2016, 09:40 |
|
#9 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Hi Antimony!
Thanks for quick reply, and sorry to ping here again. In the blockMesh which I've received, they defined first 'arc' then defined the in 'hex' with number of division (as shown in attached image, just look at the lower five 'hex'). If I understand you correctly, resolution in r is 180, theta is ? Thanks Sandeep |
|
October 9, 2016, 23:10 |
|
#10 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Look at the block defined by hex (13 14 10 9 .... ) And look at how the edges 13-14, 14-10, 10-9 and 9-13 are defined. 13-14 and 9-10 are arcs an thus for that block they can be seen as the "circumferential" divisions. 14-10 and 13-9, nothing has been defined. So they are taken as straight arcs and thus can be seen as "radial" divisions. Hope this clarifies at least some of it. Cheers, Antimony |
|
December 31, 2016, 12:58 |
|
#11 | |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Quote:
Thank you very much for the reply . I missed the latest reply from you because mail directly landed into spam . I figured it out with you previous message. Thanks again Sandeep |
||
Tags |
blockmesh, simplegrading |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Velocity vector in impeller passage | ngoc_tran_bao | CFX | 24 | May 3, 2016 22:16 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |