Airfoil

class Airfoil

Bases: CommonBaseModel

Represents an airfoil section, a fundamental component in aircraft design for wings and control surfaces.

spline

A spline defining the contour of the airfoil section.

Type:

Optional[Spline]

Raises:

ValueError – If the spline is not provided.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

validate_spline(value)

Validates the spline defining the airfoil contour.

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_spline(value)

Validates the spline defining the airfoil contour.

Parameters:

value (Spline | None) – The spline object to validate.

Returns:

The validated spline object.

Raises:

ValueError – If the spline is not provided.

Return type:

Spline

Methods:

validate_spline(value)

Validates the spline defining the airfoil contour.

Attributes:

__pydantic_setattr_handlers__

__setattr__ handlers.

classmethod validate_spline(value)

Validates the spline defining the airfoil contour.

Parameters:

value (Spline | None) – The spline object to validate.

Returns:

The validated spline object.

Raises:

ValueError – If the spline is not provided.

Return type:

Spline

__pydantic_setattr_handlers__: ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]] = {}

__setattr__ handlers. Memoizing the handlers leads to a dramatic performance improvement in __setattr__