Streamline Output#

An output type allowing for streamline visualisation. The streamlines are a useful tool for visualising 3D flow structures.


Available Options#

Option

Description

Output fields

Flow variables to include along streamlines

Assigned points

Points indicating the locations of streamlines

See also

For the underlying physics and configuration of outputs, see the Output Configuration user guide.


Detailed Descriptions#

Output fields#

The flow variables that will be included along the streamlines.

  • Default: None

  • Example: pressure, velocity, Mach

Notes:

  • Streamline outputs only support custom variables (UserVariable), not predefined output fields. Create custom variables using the Variable Settings tool or Python API.

  • Vector-valued fields will be colored by their magnitude.

Assigned points#

Points that define the placement of streamlines. The Streamline is a path of a particle that passes through a given point.

  • Point Definition: The creation of points is described in detail here

Notes:

  • You can specify individual points or arrays of points to seed streamlines at multiple locations.

  • Points can be defined in the GUI or via the Python API.


❓ Frequently Asked Questions

  • What variables are used for streamline calculation?

    Streamlines are calculated using the velocity field.


🐍 Python Example Usage

See also

Python API reference: StreamlineOutput, Point, PointArray.

import flow360 as fl

# Example of configuring streamline output using Flow360 Python API
streamline_output = 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],
)