fastga_he.models.propulsion.components.source.battery.components.pre_lca_distance_to_target_loss module

class fastga_he.models.propulsion.components.source.battery.components.pre_lca_distance_to_target_loss.PreLCABatteryDistanceToTargetCapacityLoss(**kwargs)[source]

Bases: ImplicitComponent

Class that computes the distance to the target relative capacity loss at the end of the life of the battery and updates the number of cycles

Store some bound methods so we can detect runtime overrides.

initialize()[source]

Perform any one-time initialization run at instantiation.

setup()[source]

Declare inputs and outputs.

Available attributes:

name pathname comm options

setup_partials()[source]

Declare partials.

This is meant to be overridden by component classes. All partials should be declared here since this is called after all size/shape information is known for all variables.

apply_nonlinear(inputs, outputs, residuals, discrete_inputs=None, discrete_outputs=None)[source]

Compute residuals given inputs and outputs.

The model is assumed to be in an unscaled state.

Parameters:
  • inputs (Vector) – Unscaled, dimensional input variables read via inputs[key].

  • outputs (Vector) – Unscaled, dimensional output variables read via outputs[key].

  • residuals (Vector) – Unscaled, dimensional residuals written to via residuals[key].

  • discrete_inputs (dict or None) – If not None, dict containing discrete input values.

  • discrete_outputs (dict or None) – If not None, dict containing discrete output values.