flow360.VolumeOutput#
- class VolumeOutput[source]#
Bases:
Flow360BaseModel
,TimeAverageAnimatedOutput
VolumeOutput
class- Parameters:
output_format (Optional[Literal['paraview', 'tecplot', 'both']] = paraview) â animation_frequency : Union[PositiveInt, Literal[-1], NoneType] = -1 animation_frequency_offset : Optional[int] = 0 compute_time_averages : Optional[bool] = False animation_frequency_time_average : Union[PositiveInt, Literal[-1], NoneType] = -1 animation_frequency_time_average_offset : Optional[int] = 0 start_average_integration_step : Union[NonNegativeInt, Literal[-1], NoneType] = -1 output_fields : Optional[List[Literal[âCpâ, âgradWâ, âkOmegaâ, âMachâ, âmutâ, âmutRatioâ, ânuHatâ, âprimitiveVarsâ, âqcriterionâ, âresidualNavierStokesâ, âresidualTransitionâ, âresidualTurbulenceâ, âsâ, âsolutionNavierStokesâ, âsolutionTransitionâ, âsolutionTurbulenceâ, âTâ, âvorticityâ, âwallDistanceâ, ânumericalDissipationFactorâ, âresidualHeatSolverâ, âVelocityRelativeâ, âlowMachPreconditionerSensorâ, âbetMetricsâ, âbetMetricsPerDiskâ, âCoefficient of pressureâ, âGradient of primitive solutionâ, âk and omegaâ, âMach numberâ, âTurbulent viscosityâ, âTurbulent viscosity and freestream dynamic viscosity ratioâ, âSpalart-Almaras variableâ, ârho, u, v, w, p (density, 3 velocities and pressure)â, âQ criterionâ, âN-S residualâ, âTransition residualâ, âTurbulence residualâ, âEntropyâ, âN-S solutionâ, âTransition solutionâ, âTurbulence solutionâ, âTemperatureâ, âVorticityâ, âWall distanceâ, âNumericalDissipationFactor sensorâ, âHeat equation residualâ, âVelocity with respect to non-inertial frameâ, âLow-Mach preconditioner factorâ, âBET Metricsâ, âBET Metrics per Diskâ]]] = [âprimitiveVarsâ, âCpâ, âmutâ, âMachâ]
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
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 fileto_json
(filename)Exports
Flow360BaseModel
instance to .json fileto_solver
(params, **kwargs)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
- output_fields#
- to_solver(params, **kwargs)[source]#
Loops through all fields, for Flow360BaseModel runs .to_solver() recusrively. For dimensioned value performs
unit conversion to flow360_base system.
- Parameters:
params (Flow360Params) â Full config definition as Flow360Params.
exclude (List[str] (optional)) â List of fields to ignore on returned model.
required_by (List[str] (optional)) â Path to property which requires conversion.
- Returns:
returns caller class with units all in flow360 base unit system
- Return type:
caller class