How to create and mesh an ellipsoid

Hello all,

I want to create an ellipsoid and mesh the modell.

When I mesh the surf 2 there is an error:

ERROR: Unmeshed Surface 2 contains mesh entities.
ERROR: Mesh of Surface 2 is invalid.

I think the error based on curve 4 but I can’t delete curve 4.

Here is my skript:

reset
create vertex 0 0 0
create vertex -3 0 0
create vertex 0 -2 0
create curve vertex 2 vertex 3 vertex 1 ellipse
Curve 1 copy reflect x
create curve vertex 2 5
create surface curve 1 to 3
delete vertex 1 3
regularize curve 2 1
sweep surface 1 xaxis angle 360
separate surf 2
regularize vol 1
vol all scheme tetmesh
mesh surf 2

If anyone has an idea of how to do this it would be greatly appreciated. I am a new CUBIT/Trelis user.

I think you are getting a mesh after all, despite the errors. Trelis is just erroring because it fails to mesh with the default triangle meshing scheme, tridelaunay. Then it tries the surface meshing scheme triadvance, which succeeds. Here are a couple of ways to do it:

#1 Explicitly specify meshing scheme triadvance instead of the
default scheme of tredelaunay

reset
create vertex 0 0 0
create vertex -3 0 0
create vertex 0 -2 0
create curve vertex 2 vertex 3 vertex 1 ellipse
Curve 1 copy reflect x
create curve vertex 2 5
create surface curve 1 to 3
delete vertex 1 3
regularize curve 2 1
sweep surface 1 xaxis angle 360
separate surf 2
regularize vol 1
vol all scheme tetmesh
surface all scheme triadvance
mesh surf 2

#Mesh half the model, then copy-reflect

reset
create vertex 0 0 0
create vertex -3 0 0
create vertex 0 -2 0
create curve vertex 2 vertex 3 vertex 1 ellipse
Curve 1 copy reflect x
create curve vertex 2 5
create surface curve 1 to 3
delete vertex 1 3
regularize curve 2 1
sweep surface 1 xaxis angle 180
regularize vol 1
vol all scheme tetmesh
mesh vol all
volume 1 copy reflect z
merge all
list tet