|
[Sponsors] |
[Gmsh] Need help for creating a ellipsoid cavity inside a box in Gmsh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2022, 16:40 |
Need help for creating a ellipsoid cavity inside a box in Gmsh
|
#1 |
New Member
J Powell
Join Date: Feb 2022
Posts: 12
Rep Power: 4 |
Hello
Sorry I found here is the place for gmsh I have a sphere inside a box with a radius equal to 0.05 and make a physical surface ``` SetFactory("OpenCASCADE"); Block(1) = {0, 0, 0, 5, 5, 5}; Sphere(2) = {2.5, 2.5, 2.5, 0.05}; BooleanDifference(3) = { Volume{1}; Delete; }{ Volume{2}; Delete; }; inner() = Surface In BoundingBox{2.449,2.449,2.449, 2.551, 2.551, 2.551}; Physical Volume("my volume") = {3}; Physical Surface("my inner surface") = inner(); Mesh.MeshSizeFromCurvature = 30; Mesh.MeshSizeMax = 0.2; ``` Now I want to keep the same box, and the same center(2.5), but make this sphere into an ellipsoid, which has a larger c in the picture (looks like a shuttle), values of a, b, and c are in the picture. I also need a physical surface for this ellipsoid. I searched online, but didn't find a good solution, can anyone help me? I prefer using OpenCASCADE, thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Air speed estimate inside a box with one barrier | cognitor | Main CFD Forum | 1 | May 14, 2013 08:43 |
[GAMBIT] Mesh inside computer box | r.sirait | ANSYS Meshing & Geometry | 4 | June 13, 2012 02:50 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
Radiative heat transfer with natural convection inside a square cavity | msarkar | OpenFOAM | 1 | January 11, 2010 23:21 |
Immersol Simulation of a Heated Box | Dong | Phoenics | 0 | March 2, 2006 22:20 |