CrossSection
- class CrossSection
 Bases:
CommonBaseModelRepresents a cross-section of a body component at a specific station along its length.
- station
 Normalized station of the cross-section along the body’s length.
- Type:
 float
- Raises:
 ValueError – If neither an upper nor a lower curve spline is provided.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Summary
validate_curves(values)Validates that at least one of the upper or lower curve splines 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_curves(values)
 Validates that at least one of the upper or lower curve splines is provided.
- Parameters:
 values (dict) – Dictionary of field values.
- Returns:
 The validated dictionary of field values.
- Raises:
 ValueError – If neither an upper nor a lower curve spline is provided.
- Return type:
 dict
Methods:
validate_curves(values)Validates that at least one of the upper or lower curve splines is provided.
Attributes:
__setattr__ handlers.
- classmethod validate_curves(values)
 Validates that at least one of the upper or lower curve splines is provided.
- Parameters:
 values (dict) – Dictionary of field values.
- Returns:
 The validated dictionary of field values.
- Raises:
 ValueError – If neither an upper nor a lower curve spline is provided.
- Return type:
 dict
- __pydantic_setattr_handlers__: ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]] = {}
 __setattr__ handlers. Memoizing the handlers leads to a dramatic performance improvement in __setattr__