gemseo_fmu / problems / disciplines / sellar

Show inherited members

sellar_2 module

The second discipline of the Sellar use case.

class gemseo_fmu.problems.disciplines.sellar.sellar_2.FMUSellar2[source]

Bases: FMUDiscipline

The discipline to compute the coupling variable \(y_2\).

Notes

The time series are interpolated at the time steps resulting from the union of their respective time steps. Then, between two time steps, the time series for the variables of causality “input” are linearly interpolated at the integration time steps while for the variables of causality “parameter”, the time series are considered as constant.

static compute_y_2(x_shared, y_1)[source]

Evaluate the second coupling equation in functional form.

Parameters:
  • x_shared (ndarray) – The shared design variables.

  • y_1 (ndarray) – The coupling variable coming from the first discipline.

Returns:

The value of the coupling variable \(y_2\).

Return type:

float

cache: AbstractCache | None

The cache containing one or several executions of the discipline according to the cache policy.

data_processor: DataProcessor

A tool to pre- and post-process discipline data.

exec_for_lin: bool

Whether the last execution was due to a linearization.

input_grammar: BaseGrammar

The input grammar.

jac: dict[str, dict[str, ndarray]]

The Jacobians of the outputs wrt inputs.

The structure is {output: {input: matrix}}.

name: str

The name of the discipline.

output_grammar: BaseGrammar

The output grammar.

re_exec_policy: ReExecutionPolicy

The policy to re-execute the same discipline.

residual_variables: Mapping[str, str]

The output variables mapping to their inputs, to be considered as residuals; they shall be equal to zero.

run_solves_residuals: bool

Whether the run method shall solve the residuals.