report.Chart3D#
- class Chart3D#
Bases:
ChartRepresents a 3D chart within a report, displaying a specific surface field.
Attributes
- fig_name: str, optional#
Name of the figure file or identifier for the chart (). Only ‘^[a-zA-Z0-9._-]+$’ allowed.
- Default:
None
- items_in_row: int, optional#
Number of items to display in a row within the chart section.
- Default:
None
- separate_plots: bool, optional#
If True, display as multiple plots; otherwise single plot.
- Default:
None
- caption: str | list[str] | PatternCaption, optional#
Caption to be shown for figures.
- Default:
''
- field: Literal['Cp', 'Cpt', 'gradW', 'kOmega', 'Mach', 'mut', 'mutRatio', 'nuHat', 'primitiveVars', 'qcriterion', 'residualNavierStokes', 'residualTransition', 'residualTurbulence', 's', 'solutionNavierStokes', 'solutionTransition', 'solutionTurbulence', 'T', 'velocity', 'velocity_x', 'velocity_y', 'velocity_z', 'velocity_magnitude', 'pressure', 'vorticity', 'vorticityMagnitude', 'vorticity_x', 'vorticity_y', 'vorticity_z', 'wallDistance', 'numericalDissipationFactor', 'residualHeatSolver', 'VelocityRelative', 'lowMachPreconditionerSensor', 'velocity_m_per_s', 'velocity_x_m_per_s', 'velocity_y_m_per_s', 'velocity_z_m_per_s', 'velocity_magnitude_m_per_s', 'pressure_pa', 'CfVec', 'Cf', 'heatFlux', 'nodeNormals', 'nodeForcesPerUnitArea', 'yPlus', 'wallFunctionMetric', 'heatTransferCoefficientStaticTemperature', 'heatTransferCoefficientTotalTemperature', 'wall_shear_stress_magnitude', 'wall_shear_stress_magnitude_pa'] | str, optional#
The name of the field to display in the chart.
- Default:
None
- camera: Camera | BottomCamera | FrontCamera | FrontLeftBottomCamera | FrontLeftTopCamera | LeftCamera | RearCamera | RearLeftTopCamera | RearRightBottomCamera | TopCamera, optional#
Specify how the view will be set up.
- Default:
Camera()
- limits: tuple[float, float] | tuple[LengthType | AngleType | MassType | TimeType | AbsoluteTemperatureType | VelocityType | AreaType | ForceType | PressureType | DensityType | ViscosityType | KinematicViscosityType | PowerType | MomentType | AngularVelocityType | HeatFluxType | HeatSourceType | SpecificHeatCapacityType | ThermalConductivityType | InverseAreaType | InverseLengthType | MassFlowRateType | SpecificEnergyType | FrequencyType, LengthType | AngleType | MassType | TimeType | AbsoluteTemperatureType | VelocityType | AreaType | ForceType | PressureType | DensityType | ViscosityType | KinematicViscosityType | PowerType | MomentType | AngularVelocityType | HeatFluxType | HeatSourceType | SpecificHeatCapacityType | ThermalConductivityType | InverseAreaType | InverseLengthType | MassFlowRateType | SpecificEnergyType | FrequencyType], optional#
Limits for the field values, specified as a tuple (min, max).
- Default:
None
- iso_field: Literal['Mach', 'qcriterion', 's', 'T', 'Cp', 'Cpt', 'mut', 'nuHat', 'vorticityMagnitude', 'vorticity_x', 'vorticity_y', 'vorticity_z', 'velocity_magnitude', 'velocity_x', 'velocity_y', 'velocity_z'] | str, optional#
Iso-surface fields to be displayed when
isosurfaceis selected inshow.- Default:
None
- mode: Literal['contour', 'lic'], optional#
Field display mode, lic stands for line integral convolution.
- Default:
'contour'
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- Returns:
An instance of the component class calling load.
- Return type:
Flow360BaseModel
Example
>>> params = Flow360BaseModel.from_file(filename='folder/sim.json')
Methods
- get_requirements()#
get requirements
- get_doc_item(context, settings=None)#
returns doc item for 3D chart
- Parameters:
context (ReportContext)
settings (Settings | None)
- help(methods=False)#
Prints message describing the fields and methods of a
Flow360BaseModel.- Parameters:
methods (bool = False) – Whether to also print out information about object’s methods.
- Return type:
None
Example
>>> params.help(methods=True)