aerostructure module¶
The aerostructure MDO problem¶
The aerostructure module implements all MDODiscipline
included in the Aerostructure problem:
where
and
-
class
gemseo.problems.aerostructure.aerostructure.
Aerodynamics
[source]¶ Bases:
gemseo.core.discipline.MDODiscipline
Aerodynamics is the
MDODiscipline
implementing the computation of the Aerodynamics’ equations: [drag, forces, lift] = f(sweep, thick_airfoils, displ).Constructor.
- Parameters
name – the name of the discipline
input_grammar_file – the file for input grammar description, if None, name + “_input.json” is used
output_grammar_file – the file for output grammar description, if None, name + “_output.json” is used
auto_detect_grammar_files – if no input and output grammar files are provided, auto_detect_grammar_files uses a naming convention to associate a grammar file to a discipline: searches in the “comp_dir” directory containing the discipline source file for files basenames self.name _input.json and self.name _output.json
grammar_type – the type of grammar to use for IO declaration either JSON_GRAMMAR_TYPE or SIMPLE_GRAMMAR_TYPE
cache_type – type of cache policy, SIMPLE_CACHE or HDF5_CACHE
cache_file_path – the file to store the data, mandatory when HDF caching is used
-
static
compute_drag
(sweep, thick_airfoils, displ)[source]¶ Compute the coupling \(drag=0.1*((sweep/360)^2 + 200 + thick_airfoils^2 - thick_airfoils - 4*displ)\)
- Parameters
sweep (ndarray) – sweep
thick_airfoils (ndarray) – thick_airfoils
displ (ndarray) – displ
- Returns
drag
- Return type
float
-
class
gemseo.problems.aerostructure.aerostructure.
Mission
(r_val=0.5, lift_val=0.5)[source]¶ Bases:
gemseo.core.discipline.MDODiscipline
Aerostructure is the
MDODiscipline
implementing the computation of the Aerostructure’s objective and constraints discipline.Constructor
-
static
c_lift
(lift, lift_val=0.5)[source]¶ lift constraint: \(lift-0.5\)
- Parameters
lift (ndarray) – lift
- Returns
Value of the lift constraint
-
static
-
class
gemseo.problems.aerostructure.aerostructure.
Structure
[source]¶ Bases:
gemseo.core.discipline.MDODiscipline
Structure is the
MDODiscipline
implementing the computation of the Structure’ equations: [mass, rf, displ] = f(sweep, thick_panels, forces)Constructor.
- Parameters
name – the name of the discipline
input_grammar_file – the file for input grammar description, if None, name + “_input.json” is used
output_grammar_file – the file for output grammar description, if None, name + “_output.json” is used
auto_detect_grammar_files – if no input and output grammar files are provided, auto_detect_grammar_files uses a naming convention to associate a grammar file to a discipline: searches in the “comp_dir” directory containing the discipline source file for files basenames self.name _input.json and self.name _output.json
grammar_type – the type of grammar to use for IO declaration either JSON_GRAMMAR_TYPE or SIMPLE_GRAMMAR_TYPE
cache_type – type of cache policy, SIMPLE_CACHE or HDF5_CACHE
cache_file_path – the file to store the data, mandatory when HDF caching is used
-
static
compute_displ
(sweep, thick_panels, forces)[source]¶ Compute the coupling \(displ=2*sweep + 3*thick_panels - 2.*forces\)
- Parameters
sweep (ndarray) – sweep
thick_panels (ndarray) – thick_panels
forces (ndarray) – forces
- Returns
displ
- Return type
float