gemseo_fmu / problems / disciplines / sellar

Show inherited members

sellar_1 module

The first discipline of the Sellar use case.

class gemseo_fmu.problems.disciplines.sellar.sellar_1.FMUSellar1[source]

Bases: FMUDiscipline

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


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_1(x_local, x_shared, y_2)[source]

Evaluate the first coupling equation in functional form.

  • x_local (ndarray) – The design variables local to first discipline.

  • x_shared (ndarray) – The shared design variables.

  • y_2 (ndarray) – The coupling variable coming from the second discipline.


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

Return type:


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.