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

[Gmsh] Need help for creating a ellipsoid cavity inside a box in Gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2022, 16:40
Default 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
miraboreasu is on a distinguished road
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!
Attached Images
File Type: png elli.PNG (32.5 KB, 7 views)
miraboreasu 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
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


All times are GMT -4. The time now is 02:50.