configuration
Module Contents
Classes
The configurations class |
|
- class configuration.Configuration(system: CADDEE_alpha.core.component.Component)
The configurations class
- assemble_meshes()
Assemble all component meshes into the mesh container.
- assemble_system_mass_properties(point: numpy.ndarray = np.array([0.0, 0.0, 0.0]), update_copies: bool = False)
Compute the mass properties of the configuration.
- connect_component_geometries(comp_1: CADDEE_alpha.core.component.Component, comp_2: CADDEE_alpha.core.component.Component, connection_point: Union[csdl_alpha.Variable, numpy.ndarray, None] = None, desired_value: Union[csdl_alpha.Variable, None] = None)
Connect the geometries of two components.
Function to ensure a component geometries can rigidly translate if the component it is connected to moves.
- Parameters
- comp_1Component
the first component to be connected
- comp_2Component
the second component to be connected
- connection_pointUnion[csdl.Variable, np.ndarray, None], optional
the point with respect to which the connection is defined. E.g., if the wing and fuselage geometries are connected, this point could be the quarter chord of the wing. This means that the distance between the point and the two component will remain constant, by default None
- desired_valueUnion[csdl.Variable, np.ndarray, None], optional
The value to be enforced by the inner optimization, if None, the connection point’s initial value will be chosen
- Raises
- Exception
If ‘comp_1’ is not an instances of Compone
- Exception
If ‘comp_2’ is not an instances of Compone
- Exception
If ‘connection_point’ is not of shape (3, )
- copy() Configuration
Copy a configuration.
- remove_component(comp: CADDEE_alpha.core.component.Component)
Remove a component from a configuration.
- setup_geometry(additional_constraints: List[tuple] = None, run_ffd: bool = True, plot: bool = False, recorder: csdl_alpha.Recorder = None)
Run the geometry parameterization solver.
Note: This is only allowed on the based configuration.
- vectorized_copy(num_nodes: int) VectorizedConfig
- visualize_component_hierarchy(file_name: str = 'component_hierarchy', file_format: str = 'png', show: bool = False)
- class configuration.VectorizedConfig(config: Configuration, num_nodes: int)
- assemble_system_mass_properties(point: numpy.ndarray = np.array([0.0, 0.0, 0.0]), update_copies: bool = False)
Compute the mass properties of the configuration.