## How to create and mesh an ellipsoid

2 posts
• Page

**1**of**1**### 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 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.

- djseal76
**Posts:**4**Joined:**Wed Jan 22, 2014 10:46 am

### Re: How to create and mesh an ellipsoid

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

#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

- corey_ernst
**Posts:**12**Joined:**Tue Jan 07, 2014 4:27 pm

2 posts
• Page

**1**of**1**Return to Creation and Modification

### Who is online

Users browsing this forum: No registered users and 2 guests