CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

Need help for creating a ellipsoid cavity inside a box

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2022, 16:29
Default Need help for creating a ellipsoid cavity inside a box
  #1
New Member
 
J Powell
Join Date: Feb 2022
Posts: 12
Rep Power: 4
miraboreasu is on a distinguished road
This is for Gmsh
Hello
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, 5 views)

Last edited by miraboreasu; October 18, 2022 at 18:26.
miraboreasu is offline   Reply With Quote

Reply

Tags
gmsh 4.7.1


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
Dry Wall with Air Cavity rusthimim FLUENT 7 October 23, 2014 03:40
Natural Convection Inside Square Cavity anupmu STAR-CCM+ 1 May 9, 2013 05:52
[GAMBIT] Mesh inside computer box r.sirait ANSYS Meshing & Geometry 4 June 13, 2012 02:50
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 13:24.