This module provides classes and functions to handle “Exchange Variables”, i.e. description of variables to be exchanged between a supervision code and a computation code. These Exchange Variables can be stored in a SObject in Salome study.
This class describes “Exchange Variables”, i.e. a structure containing all the necessary information to exchange variables between a supervision code and a computation code.
This instance attribute is a list of Variable objects, describing the input variables for the computation code.
This instance attribute is a list of Variable objects, describing the output variables for the computation code.
This instance attribute is optional and can be used to store a reference to a Salome entry containing an “Exchange Variable” SObject that was used to build this one (when the current object has been built by selecting variables of interest in a list of potential variables).
This class describes a single variable. For now, it is only described by its name. Other attributes are reserved for future use.
Create a SObject to store an ExchangeVariables instance.
| Parameters: |
|
|---|---|
| Returns: | the newly created SObject. |
Get an ExchangeVariables instance from a SObject that stores it.
| Parameters: | sobj (SObject) – the SObject from which to read the ExchangeVariables instance. |
|---|---|
| Returns: | the newly created ExchangeVariables instance. |
Update an existing SObject storing an ExchangeVariables instance.
| Parameters: | sobj (SObject) – the SObject to update. |
|---|
See createSObjectForExchangeVariables() for the description of the other parameters.
This module provides utility functions for the computation codes intended for use in parametric studies. The computation codes must be implemented as SALOME components to use these functions. If the computation code is implemented as a Python script or function, use module salome.kernel.parametric.pyscript_utils instead.
This function returns a structure describing the output of the computation code in parametric studies in case of error.
| Parameters: | error_message (string) – the error message. |
|---|---|
| Returns: | a structure of type SALOME_TYPES/ParametricOutput describing the error. |
This function returns a dictionary containing the input values to be used in the computation code.
| Parameters: |
|
|---|---|
| Returns: | a dictionary containing the input values for the computation code. |
This function returns a structure describing the output of the computation code in parametric studies.
| Parameters: |
|
|---|---|
| Returns: | a structure of type SALOME_TYPES/ParametricOutput containing the output of the computation code. |
This module provides utility functions for the computation codes intended for use in parametric studies. The computation codes must be implemented as a Python script or function to use these functions. If the computation code is implemented as a SALOME component, use module salome.kernel.parametric.compo_utils instead.
This function returns a dictionary describing the output of the computation code in parametric studies in case of error.
| Parameters: | error_message (string) – the error message. |
|---|---|
| Returns: | a dictionary describing the error. |
This function returns a dictionary containing the input values to be used in the computation code.
| Parameters: |
|
|---|---|
| Returns: | a dictionary containing the input values for the computation code. |
This function returns a dictionary describing the output of the computation code in parametric studies.
| Parameters: |
|
|---|---|
| Returns: | a dictionary containing the representation of the output of the computation code. |