desc.objectives.BoundaryError.compute
- BoundaryError.compute(eq_params, field_params=None, constants=None)Source
Compute boundary force error.
- Parameters:
eq_params (dict) – Dictionary of equilibrium degrees of freedom, eg Equilibrium.params_dict
field_params (dict) – Dictionary of field parameters, if field is not fixed.
constants (dict) – Dictionary of constant data, eg transforms, profiles etc. Defaults to self.constants
- Returns:
f (ndarray) – Boundary error. First half is √g𝐁⋅𝐧 in T*m^2, second half is √g[[B² + 2μ₀p]] in T^2*m^2. If sheet current is included, third half is √g||μ₀𝐊 − 𝐧 × [𝐁]|| in T*m^2