LiftingSurface
- class LiftingSurface
Bases:
CommonBaseModel
Represents the geometric characteristics of a lifting surface, such as wings and tail surfaces of aircraft.
- leading_edge_spline
Spline defining the leading edge of the lifting surface.
- Type:
Optional[Spline]
- trailing_edge_spline
Spline defining the trailing edge of the lifting surface.
- Type:
Optional[Spline]
- airfoil_sections
List of Airfoil objects representing the airfoil shapes along the span.
- Type:
List[Airfoil]
- Raises:
ValueError – If the list of airfoil sections is empty.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Summary
validate_airfoil_sections
(value)Ensures that at least one Airfoil object is provided.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow', 'protected_namespaces': (), 'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- classmethod validate_airfoil_sections(value)
Ensures that at least one Airfoil object is provided.
Methods:
validate_airfoil_sections
(value)Ensures that at least one Airfoil object is provided.
Attributes:
__setattr__ handlers.
- classmethod validate_airfoil_sections(value)
Ensures that at least one Airfoil object is provided.
- __pydantic_setattr_handlers__: ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]] = {}
__setattr__ handlers. Memoizing the handlers leads to a dramatic performance improvement in __setattr__