StreamlineOutput#
- class StreamlineOutput[source]#
Bases:
_OutputBaseStreamlineOutputclass for calculating streamlines. Stramtraces are computed upwind and downwind, and may originate from a single point, from a line, or from points evenly distributed across a parallelogram.Example
Define a
StreamlineOutputwith streaptraces originating from points, lines (PointArray), and parallelograms (PointArray2D).Point_1andPoint_2are two specific points we want to track the streamlines.Line_streamlineis from (1,0,0) * fl.u.m to (1,0,-10) * fl.u.m and has 11 points, including both starting and end points.Parallelogram_streamlineis a parallelogram in 3D space with an origin at (1.0, 0.0, 0.0), a u-axis orientation of (0, 2.0, 2.0) with 11 points in the u direction, and a v-axis orientation of (0, 1.0, 0) with 20 points along the v direction.
>>> fl.StreamlineOutput( ... 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_streamline", ... start=(1.0, 0.0, 0.0) * fl.u.m, ... end=(1.0, 0.0, -10.0) * fl.u.m, ... number_of_points=11, ... ), ... fl.PointArray2D( ... name="Parallelogram_streamline", ... origin=(1.0, 0.0, 0.0) * fl.u.m, ... u_axis_vector=(0, 2.0, 2.0) * fl.u.m, ... v_axis_vector=(0, 1.0, 0) * fl.u.m, ... u_number_of_points=11, ... v_number_of_points=20 ... ) ... ], ... output_fields = [fl.solution.pressure, fl.solution.velocity], ... )
Attributes
- output_fields: UniqueItemList[UserVariable], optional#
List of output variables. Vector-valued fields will be colored by their magnitude.
- Default:
[]
- entities: EntityList[Point, PointArray, PointArray2D]#
List of monitored
Point/PointArray/PointArray2Dentities belonging to this streamline group.PointArrayis used to define streamline originating along a line.PointArray2Dis used to define streamline originating from a parallelogram.
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)