jacopy.packages.metric_affine.ComponentInput

class jacopy.packages.metric_affine.ComponentInput(fr, *, dim=None, connection=None, metric=None, pi=None, total=False, holonomic=False)

Bases: object

A bundle of user-supplied component data on a frame.

Parameters:
  • fr (Frame)

  • dim (Optional[int])

  • total (bool)

  • holonomic (bool)

__init__(fr, *, dim=None, connection=None, metric=None, pi=None, total=False, holonomic=False)
Parameters:
  • fr (Frame)

  • dim (int | None)

  • total (bool)

  • holonomic (bool)

Return type:

None

Methods

__init__(fr, *[, dim, connection, metric, ...])

anholonomy_value(key)

evaluate(expr, *[, registry, engine])

Normalize expr with the package engine PLUS the substitution rules for this data set.

gamma(key)

metric_component(key)

pi_component(key)

set_anholonomy(upper, first, second, value)

γ^upper_{first second} := value.

set_gamma(upper, first, second, value)

Γ^upper_{first second} := value.

set_metric(a, b, value)

g_{ab} := value (symmetric: both orders stored).

set_pi(a, b, value)

θ^{ab} := value (antisymmetric: the swapped order stores the negated value).

Attributes

frame

set_gamma(upper, first, second, value)

Γ^upper_{first second} := value.

Return type:

None

set_anholonomy(upper, first, second, value)

γ^upper_{first second} := value.

γ^c_{ab} := ⟨e^c, [e_a, e_b]⟩ (anholonomy.py) is ANTISYMMETRIC in its two lower indices because the bracket is, so both orders are written together (γ^c_{ba} := −value, as set_pi() does) and either order may be given. The canonical atom anholonomy_coefficient() looks up the a < b key, which a non-canonical call used to leave unset (total=True then read it as 0). Like the other setters a later call OVERWRITES — both orders at once, so the pair stays antisymmetric. first == second forces value == 0 (ValueError otherwise).

Return type:

None

set_metric(a, b, value)

g_{ab} := value (symmetric: both orders stored).

Return type:

None

set_pi(a, b, value)

θ^{ab} := value (antisymmetric: the swapped order stores the negated value).

Return type:

None

evaluate(expr, *, registry=None, engine=None)

Normalize expr with the package engine PLUS the substitution rules for this data set.

The caller’s engine is NEVER mutated: a fresh engine is layered per call, so data-set rules cannot accumulate in a shared engine and leak between evaluations (the result must depend on the expression and THIS data set only, not on prior calls).

Parameters:
Return type:

Expr