BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
corc.tests.test_curve_frame Namespace Reference

Classes

class  _Circle

Functions

 check (label, ok)

Variables

 t = Jet.variable(0.7)
 f = jet.sin(3.0 * t) * jet.cos(t) + jet.power(t, 2.5)
float x = 0.7
float val = math.sin(3 * x) * math.cos(x) + x ** 2.5
int d1 = 3 * math.cos(3 * x) * math.cos(x) - math.sin(3 * x) * math.sin(x) + 2.5 * x ** 1.5
tuple d2
 C = _Circle(7.5)
 F = Frame(C, nsamples=256)
 S = StraightLine(100.0)
 FS = Frame(S, nsamples=64)
 R0 = FS.R(37.0)
 p = FS.transform(12.5, 3.0, -4.0)
 L = Lame(76.1, 25, 1.55, order=2)
 tt = L.t_of_s(s)
 FL = Frame(L, nsamples=512)
 prev_n = None
float worst_orth = 0.0
float worst_step = 0.0
 R = FL.R(float(s))
 det = np.linalg.det(R)
 n = R[:, 0]
bool ok = True
 T = Trefoil(8.718490620126541)
 p0
 pL
 FT = Frame(T, nsamples=1024)
 _
 v
 a
 j3
 r = T.radius
 va
 ja

Detailed Description

Unit checks for corc.curve and corc.frame (plain asserts, exit 1 on
failure): jet arithmetic, curvature of known curves, arc-length round
trips, frame orthonormality/continuity, straight-line frame identity.

Function Documentation

◆ check()

check ( label,
ok )

Variable Documentation

◆ _

corc.tests.test_curve_frame._
protected

◆ a

corc.tests.test_curve_frame.a

◆ C

corc.tests.test_curve_frame.C = _Circle(7.5)

◆ d1

int corc.tests.test_curve_frame.d1 = 3 * math.cos(3 * x) * math.cos(x) - math.sin(3 * x) * math.sin(x) + 2.5 * x ** 1.5

◆ d2

tuple corc.tests.test_curve_frame.d2
Initial value:
= (-9 * math.sin(3 * x) * math.cos(x) - 3 * math.cos(3 * x) * math.sin(x)
- 3 * math.cos(3 * x) * math.sin(x) - math.sin(3 * x) * math.cos(x)
+ 2.5 * 1.5 * x ** 0.5)

◆ det

corc.tests.test_curve_frame.det = np.linalg.det(R)

◆ F

corc.tests.test_curve_frame.F = Frame(C, nsamples=256)

◆ f

corc.tests.test_curve_frame.f = jet.sin(3.0 * t) * jet.cos(t) + jet.power(t, 2.5)

◆ FL

corc.tests.test_curve_frame.FL = Frame(L, nsamples=512)

◆ FS

corc.tests.test_curve_frame.FS = Frame(S, nsamples=64)

◆ FT

corc.tests.test_curve_frame.FT = Frame(T, nsamples=1024)

◆ j3

corc.tests.test_curve_frame.j3

◆ ja

corc.tests.test_curve_frame.ja
Initial value:
= np.array([r * (-math.cos(tt) - 16 * math.cos(2 * tt)),
r * (math.sin(tt) - 16 * math.sin(2 * tt)),
27 * r * math.cos(3 * tt)])

◆ L

corc.tests.test_curve_frame.L = Lame(76.1, 25, 1.55, order=2)

◆ n

corc.tests.test_curve_frame.n = R[:, 0]

◆ ok

bool ok = True

◆ p

corc.tests.test_curve_frame.p = FS.transform(12.5, 3.0, -4.0)

◆ p0

corc.tests.test_curve_frame.p0

◆ pL

corc.tests.test_curve_frame.pL

◆ prev_n

corc.tests.test_curve_frame.prev_n = None

◆ R

corc.tests.test_curve_frame.R = FL.R(float(s))

◆ r

corc.tests.test_curve_frame.r = T.radius

◆ R0

corc.tests.test_curve_frame.R0 = FS.R(37.0)

◆ S

corc.tests.test_curve_frame.S = StraightLine(100.0)

◆ T

corc.tests.test_curve_frame.T = Trefoil(8.718490620126541)

◆ t

corc.tests.test_curve_frame.t = Jet.variable(0.7)

◆ tt

float tt = L.t_of_s(s)

◆ v

corc.tests.test_curve_frame.v

◆ va

corc.tests.test_curve_frame.va
Initial value:
= np.array([r * (math.cos(tt) + 4 * math.cos(2 * tt)),
r * (-math.sin(tt) + 4 * math.sin(2 * tt)),
-3 * r * math.cos(3 * tt)])

◆ val

float corc.tests.test_curve_frame.val = math.sin(3 * x) * math.cos(x) + x ** 2.5

◆ worst_orth

corc.tests.test_curve_frame.worst_orth = 0.0

◆ worst_step

corc.tests.test_curve_frame.worst_step = 0.0

◆ x

float corc.tests.test_curve_frame.x = 0.7