BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
corc.curve.Curve Class Reference
Inheritance diagram for corc.curve.Curve:
[legend]

Public Member Functions

 __init__ (self, float tmin, float tmax, nsamples=4096)
 position (self, t)
np.ndarray p (self, float t)
 derivatives (self, float t)
float speed (self, float t)
float s_of_t (self, float t)
float t_of_s (self, float s)

Public Attributes

 tmin = tmin
 tmax = tmax
 length = float(self._sgrid[-1])

Static Public Attributes

bool closed = False

Protected Member Functions

 _build_arclength_table (self, int nsamples)

Protected Attributes

 _tgrid = tgrid
 _sgrid = np.concatenate([[0.0], np.cumsum(seg)])

Constructor & Destructor Documentation

◆ __init__()

corc.curve.Curve.__init__ ( self,
float tmin,
float tmax,
nsamples = 4096 )

Member Function Documentation

◆ _build_arclength_table()

corc.curve.Curve._build_arclength_table ( self,
int nsamples )
protected

◆ derivatives()

corc.curve.Curve.derivatives ( self,
float t )
Return (p, v, a, j) as 3-vectors at parameter t.

◆ p()

np.ndarray corc.curve.Curve.p ( self,
float t )

◆ position()

corc.curve.Curve.position ( self,
t )
Return [x, y, z] at parameter t; components are Jets if t is a
Jet. Subclasses implement this with jet-friendly operations.

Reimplemented in corc.curve.Lame, corc.curve.StraightLine, corc.curve.Trefoil, and corc.tests.test_curve_frame._Circle.

◆ s_of_t()

float corc.curve.Curve.s_of_t ( self,
float t )
Arc length from tmin to t (table + local Gauss correction).

◆ speed()

float corc.curve.Curve.speed ( self,
float t )

◆ t_of_s()

float corc.curve.Curve.t_of_s ( self,
float s )
Invert the arc length: Newton on s(t) - s with table start.

Member Data Documentation

◆ _sgrid

corc.curve.Curve._sgrid = np.concatenate([[0.0], np.cumsum(seg)])
protected

◆ _tgrid

corc.curve.Curve._tgrid = tgrid
protected

◆ closed

bool corc.curve.Curve.closed = False
static

◆ length

corc.curve.Curve.length = float(self._sgrid[-1])

◆ tmax

corc.curve.Curve.tmax = tmax

◆ tmin

corc.curve.Curve.tmin = tmin

The documentation for this class was generated from the following file:
  • examples/corc_twolayer/python/corc/curve.py