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:
objectA bundle of user-supplied component data on a frame.
- __init__(fr, *, dim=None, connection=None, metric=None, pi=None, total=False, holonomic=False)¶
Methods
__init__(fr, *[, dim, connection, metric, ...])anholonomy_value(key)evaluate(expr, *[, registry, engine])Normalize
exprwith 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, asset_pi()does) and either order may be given. The canonical atomanholonomy_coefficient()looks up thea < bkey, which a non-canonical call used to leave unset (total=Truethen read it as0). Like the other setters a later call OVERWRITES — both orders at once, so the pair stays antisymmetric.first == secondforcesvalue == 0(ValueErrorotherwise).- 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
exprwith the package engine PLUS the substitution rules for this data set.The caller’s
engineis 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:
expr (Expr)
registry (PropertyRegistry | None)
engine (ExpansionEngine | None)
- Return type: