flow360.BETDisk#

class BETDisk[source]#

Bases: Flow360BaseModel

BETDisk class

Parameters:

rotation_direction_rule (Optional[Literal['leftHand', 'rightHand']] = None) – center_of_rotation : Tuple[float, float, float] axis_of_rotation : Vector number_of_blades : ConstrainedIntValue radius : _Constrained omega : _Constrained chord_ref : _Constrained thickness : _Constrained n_loading_nodes : ConstrainedIntValue blade_line_chord : Optional[_Constrained] = None initial_blade_direction : Optional[Vector] = None tip_gap : Union[_Constrained, Literal[‘inf’], NoneType] = None mach_numbers : List[NonNegativeFloat] reynolds_numbers : List[PositiveFloat] alphas : List[float] twists : List[BETDiskTwist] chords : List[BETDiskChord] sectional_polars : List[BETDiskSectionalPolar] sectional_radiuses : List[float]

Attributes

Methods

__init__([filename])

Create a new model by parsing and validating input data from keyword arguments.

add_type_field()

Automatically place "type" field with model name in the model field dictionary.

allow_but_remove(values)

root validator for allow_but_remove, e.g., legacy properties that are no longer in use

append(params[, overwrite])

append parametrs to the model

check_bet_disks_3d_coefficients_in_polars(values)

check dimension of force coefficients in polars

check_bet_disks_alphas_in_order(values)

check order of alphas in BET disks

check_bet_disks_duplicate_chords_or_twists(values)

check duplication of radial locations in chords or twists

check_bet_disks_number_of_defined_polars(values)

check number of polars

construct([_fields_set])

Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.

copy([update])

Copy a Flow360BaseModel.

dict(*args[, exclude])

Returns dict representation of the model.

dict_from_file(filename)

Loads a dictionary containing the model from a .json or .yaml file.

flow360_schema()

Generate a schema json string for the flow360 model

flow360_ui_schema()

Generate a UI schema json string for the flow360 model

from_file(filename)

Loads a Flow360BaseModel from .json, or .yaml file.

from_json(filename, **parse_obj_kwargs)

Load a Flow360BaseModel from .json file.

from_orm(obj)

from_yaml(filename, **parse_obj_kwargs)

Loads Flow360BaseModel from .yaml file.

generate_docstring()

Generates a docstring for a Flow360 model and saves it to the __doc__ of the class.

handle_conflicting_fields(values)

root validator to handle deprecated aliases

handle_deprecated_aliases(values)

root validator to handle deprecated aliases

help([methods])

Prints message describing the fields and methods of a Flow360BaseModel.

json(*args[, exclude])

Returns json representation of the model.

one_of(values)

root validator for require one of

parse_file(path, *[, content_type, ...])

parse_obj(obj)

parse_raw(b, *[, content_type, encoding, ...])

schema([by_alias, ref_template])

schema_json(*[, by_alias, ref_template])

set_will_export_to_flow360(flag)

Recursivly sets flag will_export_to_flow360

to_file(filename)

Exports Flow360BaseModel instance to .json or .yaml file

to_json(filename)

Exports Flow360BaseModel instance to .json file

to_solver(params[, exclude, required_by])

Loops through all fields, for Flow360BaseModel runs .to_solver() recusrively.

to_yaml(filename)

Exports Flow360BaseModel instance to .yaml file.

update_forward_refs(**localns)

Try to update ForwardRefs on fields based on this Model, globalns and localns.

validate(value)

Inherited Common Usage

rotation_direction_rule#
center_of_rotation#
axis_of_rotation#
number_of_blades#
radius#
omega#
chord_ref#
thickness#
n_loading_nodes#
blade_line_chord#
initial_blade_direction#
tip_gap#
mach_numbers#
reynolds_numbers#
alphas#
twists#
chords#
sectional_polars#
sectional_radiuses#
classmethod check_bet_disks_alphas_in_order(values)[source]#

check order of alphas in BET disks

classmethod check_bet_disks_duplicate_chords_or_twists(values)[source]#

check duplication of radial locations in chords or twists

classmethod check_bet_disks_number_of_defined_polars(values)[source]#

check number of polars

classmethod check_bet_disks_3d_coefficients_in_polars(values)[source]#

check dimension of force coefficients in polars