|
[Sponsors] |
[snappyHexMesh] Specifying two locations in mesh with snappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 7, 2011, 12:44 |
Specifying two locations in mesh with snappyHexMesh
|
#1 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
I am trying to mesh two concentric spheres using snappyHexMesh, but I want the interior of both spheres to be meshed while removing the meshing that is outside the larger sphere.
Using locationInMesh, if I specify a point inside the inner sphere, I only end up up with its interior meshed, and if I specify a point inside the outer sphere but not the inner sphere, I end up with the interior of the large sphere with a cavity where the smaller sphere was. The reason I want this is because I want the inner sphere to be a patch that I can use to set a temperature boundary condition, but I do not want it to be a wall, so I need its interior to be meshed so I can solve there as well. Is there any way with snappyHexMesh to end up meshing the interior of both spheres? |
|
July 9, 2011, 06:50 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Cyberholmes,
What you'll need is chtMultiRegionFoam as a solver! Assuming of course you want two regions... There is a tutorial that exemplifies just this: heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater If you simply want to set a temperature field inside a single region, then you should look into setFields. Best regards, Bruno
__________________
|
|
July 11, 2011, 11:37 |
|
#3 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
Thank you for the reply, but before I even get to the stage of using a solver, I need to figure out how to use snappyHexMesh to mesh two regions. As far as I currently know, you can only specify one locationInMesh, and it removes all cells outside of that region.
|
|
July 11, 2011, 17:21 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Cyberholmes,
I (wrongly) assumed you would investigate more about that tutorial case... OK, this is what happens with OpenFOAM (afaik):
On the other hand, if you only want one single region, because those two spheres are going to transfer fluid between them through that surface that separates them, then the other possibility I talked about was about setFields. With setFields, you can set a zone in the mesh to have the desired value; for example, if you wanted to start that surface with an initial temperature of 300K, then you can do it with setFields. In case you do want to learn more about setFields, you can start here: http://www.openfoam.com/docs/user/damBreak.php Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Creating very fine, high accuracy mesh with snappyHexMesh | JD_Welch | OpenFOAM Meshing & Mesh Conversion | 10 | July 5, 2023 12:50 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[OpenFOAM] snappyHexMesh - can't open mesh in ParaView | tfigueiro | ParaView | 0 | June 11, 2015 20:05 |
[snappyHexMesh] snappyHexMesh & Mesh around a missile | sasanghomi | OpenFOAM Meshing & Mesh Conversion | 2 | October 15, 2014 20:54 |
3D Hybrid Mesh Errors | DarrenC | ANSYS Meshing & Geometry | 11 | August 5, 2013 07:42 |