SurfaceProbeOutput#
- class SurfaceProbeOutput[source]#
Bases:
_OutputBaseSurfaceProbeOutputclass for setting surface output data probed at monitor points. The specified monitor point will be projected to thetarget_surfacesclosest to the point. The probed results on the projected point will be dumped. The projection is executed at the start of the simulation. If the surface that the point was projected to is moving (mesh motion), the point moves with it (it remains stationary in the reference frame of the target surface).Example
Define
SurfaceProbeOutputon thegeometry["wall"]surface with multiple specific monitor points and monitor points along the line.Point_1andPoint_2are two specific points we want to monitor in this probe output group.Line_surfaceis from (1,0,0) * fl.u.m to (1,0,-10) * fl.u.m and has 11 monitor points, including both starting and end points.
>>> fl.SurfaceProbeOutput( ... name="surface_probe_group_points", ... entities=[ ... fl.Point( ... name="Point_1", ... location=(0.0, 1.5, 0.0) * fl.u.m, ... ), ... fl.Point( ... name="Point_2", ... location=(0.0, -1.5, 0.0) * fl.u.m, ... ), ... fl.PointArray( ... name="Line_surface", ... start=(1.0, 0.0, 0.0) * fl.u.m, ... end=(1.0, 0.0, -10.0) * fl.u.m, ... number_of_points=11, ... ), ... ], ... target_surfaces=[ ... geometry["wall"], ... ], ... output_fields=["heatFlux", "T"], ... )
Attributes
- output_fields: UniqueItemList[Union]#
List of output variables. Including universal output variables, variables specific to SurfaceOutput and
UserDefinedField.
- entities: EntityList[Point, PointArray]#
List of monitored
Point/PointArrayentities belonging to this surface monitor group.PointArrayis used to define monitored points along a line.
- target_surfaces: EntityList[Surface, MirroredSurface, WindTunnelGhostSurface]#
List of
Surfaceentities belonging to this monitor group.
- moving_statistic: MovingStatistic, optional#
When specified, report moving statistics of the fields instead.
- Default:
None
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
- 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)