gemseo.core.mdo_functions.discipline_adapter module#

A function computing some outputs of a discipline from some of its inputs.

class DisciplineAdapter(input_names, output_names, default_input_data, discipline, names_to_sizes=mappingproxy({}), differentiated_input_names_substitute=())[source]#

Bases: MDOFunction

An MDOFunction executing a discipline for some inputs and outputs.

Parameters:
  • input_names (Sequence[str]) -- The names of the inputs.

  • output_names (Sequence[str]) -- The names of the outputs.

  • default_input_data (Defaults) -- The default input values to overload the ones of the discipline at each evaluation of the outputs with _fun() or their derivatives with _jac(). If empty, do not overload them.

  • discipline (Discipline) -- The discipline to be adapted.

  • names_to_sizes (MutableMapping[str, int]) --

    The sizes of the input variables. If empty, determine them from the default inputs and local data of the discipline Discipline.

    By default it is set to {}.

  • differentiated_input_names_substitute (Sequence[str]) --

    The names of the inputs against which to differentiate the functions. If empty, consider the variables of their input space.

    By default it is set to ().

differentiated_input_names_substitute: Sequence[str]#

The names of the inputs against which to differentiate the functions.

If empty, consider the variables of their input space.

property input_dimension: int | None#
property is_linear: bool#