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

Public Member Functions

 __init__ (self, float length=1.0)
 set_length (self, float length)
 position (self, t)
Public Member Functions inherited from corc.curve.Curve
 __init__ (self, float tmin, float tmax, nsamples=4096)
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)

Additional Inherited Members

Public Attributes inherited from corc.curve.Curve
 tmin = tmin
 tmax = tmax
 length = float(self._sgrid[-1])
Static Public Attributes inherited from corc.curve.Curve
bool closed = False
Protected Member Functions inherited from corc.curve.Curve
 _build_arclength_table (self, int nsamples)
Protected Attributes inherited from corc.curve.Curve
 _tgrid = tgrid
 _sgrid = np.concatenate([[0.0], np.cumsum(seg)])

Detailed Description

Straight centerline along +z starting at the origin. The length is
set by the cable (pitch * numTurns * 2*pi).

Constructor & Destructor Documentation

◆ __init__()

corc.curve.StraightLine.__init__ ( self,
float length = 1.0 )

Member Function Documentation

◆ position()

corc.curve.StraightLine.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 from corc.curve.Curve.

◆ set_length()

corc.curve.StraightLine.set_length ( self,
float length )

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