utils module¶
Sobieski’s SSBJ base class.
- class gemseo.problems.sobieski.core.utils.SobieskiBase(dtype)[source]¶
Bases:
object
Utilities for Sobieski’s SSBJ use case.
- Parameters:
dtype (DataType) – The NumPy data type.
- class DataType(value)[source]¶
Bases:
StrEnum
A NumPy data type.
- COMPLEX = 'complex128'¶
- FLOAT = 'float64'¶
- compute_half_span(aspect_ratio, wing_surface_area)[source]¶
Compute the half-span from the wing surface and aspect ratio.
- compute_polynomial_approximation(s_ref, s_new, flag, s_bound, a0_coeff, ai_coeff, aij_coeff)[source]¶
Compute the polynomial coefficients.
These coefficients characterize the behavior of certain synthetic variables and function modifiers.
- Parameters:
s_ref (ndarray) – The initial values of the independent variables (5 variables at max).
s_new (ndarray) – The current values of the independent variables.
flag (int) – The functional relationship between the variables: - flag = 1: linear >0, - flag = 2: nonlinear >0, - flag = 3: linear < 0, - flag = 4: nonlinear <0, - flag = 5: parabolic.
s_bound (ndarray) – The offset value for normalization.
a0_coeff (ndarray) –
ai_coeff (ndarray) –
aij_coeff (ndarray) –
- Returns:
The value of the synthetic variables or function modifiers.
- Return type:
- compute_thickness(aspect_ratio, thickness_to_chord_ratio, wing_surface_area)[source]¶
Compute a wing thickness.
- static derive_normalization(s_ref, s_new)[source]¶
Derivation of normalization of input variables.
For use of polynomial approximation.
- derive_polynomial_approximation(s_ref, s_new, flag, s_bound, a0_coeff, ai_coeff, aij_coeff)[source]¶
Compute the polynomial coefficients for both evaluation and linearization.
These coefficients characterize the behavior of certain synthetic variables and function modifiers.
- Parameters:
s_ref (ndarray) – The initial values of the independent variables (5 variables at max).
s_new (ndarray) – The current values of the independent variables.
flag (int) – The functional relationship between the variables: - flag = 1: linear >0, - flag = 2: nonlinear >0, - flag = 3: linear < 0, - flag = 4: nonlinear <0, - flag = 5: parabolic.
s_bound (ndarray) – The offset value for normalization.
a0_coeff (ndarray) –
ai_coeff (ndarray) –
aij_coeff (ndarray) –
- Returns:
The value of the synthetic variables or function modifiers for both evaluation and linearization.
- Return type:
- classmethod get_bounds_by_name(variable_names)[source]¶
Return the bounds of the design and coupling variables.
- DTYPE_COMPLEX = 'complex128'¶
- DTYPE_DEFAULT = 'complex128'¶
- DTYPE_DOUBLE = 'float64'¶
- property design_bounds: tuple[ndarray, ndarray]¶
The lower and upper bounds of the design variables.
- math: ModuleType¶
The library of mathematical functions.