desc.objectives.FreeSurfaceError.compute
- FreeSurfaceError.compute(params, I_sheet_params=None, constants=None)Source
Compute boundary error.
- Parameters:
params (dict) – Dictionary of equilibrium degrees of freedom, e.g.
Equilibrium.params_dict.I_sheet_params (dict) – Dictionary containing the optimizable sheet current
I_sheet. If omitted, the sheet current is fixed to zero.constants (dict) – Dictionary of constant data, e.g. transforms, profiles etc. Defaults to
self.constants.
- Returns:
f (ndarray) – Boundary error [[B² + 2μ₀p]]*area Jacobian in T² m².