Disciplines#

Use a data converter

Use a data converter

Fundamentals of disciplines#

A discipline computes output data from input data.

Check the Jacobian of a discipline

Check the Jacobian of a discipline

Compute the Jacobian of a discipline analytically

Compute the Jacobian of a discipline analytically

Compute the Jacobian of a discipline with analytical and approximated elements

Compute the Jacobian of a discipline with analytical and approximated elements

Compute the Jacobian of a discipline with finite differences

Compute the Jacobian of a discipline with finite differences

Create a discipline from an external executable

Create a discipline from an external executable

Create a discipline that uses pandas DataFrames

Create a discipline that uses pandas DataFrames

Grammars for inputs and outputs#

A grammar defines a set of variables from names and possibly types and default values.

Merge or update a JSONGrammar

Merge or update a JSONGrammar

Rename discipline variables

Rename discipline variables

Use a Pydantic grammar

Use a Pydantic grammar

Different types of disciplines#

A few examples of templates to help you build your discipline faster.

Create a discipline from a Python function

Create a discipline from a Python function

Create a discipline from analytical expressions

Create a discipline from analytical expressions

Create a first-order Taylor polynomial

Create a first-order Taylor polynomial

Create a retry discipline

Create a retry discipline

Changing input and output names#

Sometimes you want to rename a discipline input or output variable, e.g. "a" to "x". This is renaming. Sometimes you want to rename some components of a discipline input or output variable, e.g. the first component of "a" to "x" and the other components to "y". This is remapping. This section proposes examples for each case.

Remapping the input and output variables

Remapping the input and output variables

Renaming variables

Renaming variables

Gallery generated by Sphinx-Gallery