carputils
Doxygen code documentation for the python framework controlling openCARP
Classes | Functions | Variables
carputils.mesh.ellipsoid Namespace Reference

Classes

class  Ellipsoid
 Generate a mesh of an ellipsoidal shell. More...
 

Functions

def ellipse_t (ax_a, ax_b, theta)
 Transform the central angle theta in an ellipse of semimajor axis a and semiminor axis b into the parameteric coordinate t. More...
 
def ellipse_arc_length (ax_a, ax_b, theta1, theta2)
 Calculate the length of an ellipse arc between two angles. More...
 

Variables

 xrange = range
 
 geom = Ellipsoid.with_resolution(50, 5, tetrahedrise=False)
 
 faces
 

Function Documentation

◆ ellipse_arc_length()

def carputils.mesh.ellipsoid.ellipse_arc_length (   ax_a,
  ax_b,
  theta1,
  theta2 
)

Calculate the length of an ellipse arc between two angles.

Parameters
ax_afloat Semimajor axis length
ax_bfloat Semiminor axis length
theta1float Start of arc angle
theta2float End of arc angle
Returns
float The arc length

◆ ellipse_t()

def carputils.mesh.ellipsoid.ellipse_t (   ax_a,
  ax_b,
  theta 
)

Transform the central angle theta in an ellipse of semimajor axis a and semiminor axis b into the parameteric coordinate t.

Valid on [-pi,pi].

Parameters
ax_afloat Semimajor axis length
ax_bfloat Semiminor axis length
thetafloat Central angle, must be on [-pi, pi]
Returns
float The ellipse patametric coordinate

Variable Documentation

◆ faces

carputils.mesh.ellipsoid.faces

◆ geom

carputils.mesh.ellipsoid.geom = Ellipsoid.with_resolution(50, 5, tetrahedrise=False)

◆ xrange

carputils.mesh.ellipsoid.xrange = range