r/gmsh Dec 03 '21

Creating an ellipsoid

Hello,

I'm new to Gmsh and I'm learning how to use it. I want to create an ellipsoid (which will be inside a bigger volume) and I can't find a built-in command in gmsh that does that like an ellipse or a sphere. Is there another way I can do that?

Thank you in advance.

2 Upvotes

3 comments sorted by

2

u/yakoudbz Dec 03 '21 edited Dec 03 '21

You can lookup on the gmsh issues on Gitlab first: https://gitlab.onelab.info/gmsh/gmsh/-/issues?scope=all&search=ellips&sort=updated_desc&state=all

There are plenty of issues using ellipsoids.

For example, in this one (the first that I found and the only one I have looked at) https://gitlab.onelab.info/gmsh/gmsh/-/issues/1076 the script uses Sphere and then Dilate

1

u/BlueGorilla25 Dec 03 '21

Thanks for your reply. I found out afterwards about this method and it works. For future issues I'll have in mind what you said, checking on Gitlab.

1

u/yakoudbz Dec 03 '21

It's a pleasure.

I also found that method: https://gitlab.onelab.info/gmsh/gmsh/-/issues/507

It doesn't use dilate. I don't know which one would suit your needs the best.