refactor(sphere.msh): increased base resolution of spherical mesh

This commit is contained in:
2025-02-24 12:38:47 -05:00
parent de5c84f668
commit dfb65c1082
7 changed files with 16 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import argparse
def generate_spherical_mesh(radius=1, meshSize=0.1):
with pygmsh.geo.Geometry() as geo:
# Create a spherical (ball) geometry centered at (0,0,0)
sphere = geo.add_ball([0, 0, 0], radius)
sphere = geo.add_ball([0, 0, 0], radius, mesh_size=0.1)
# Generate a 2D mesh (i.e. surface mesh) of the sphere
myMesh = geo.generate_mesh(dim=3)
return myMesh

Binary file not shown.