PointArray2D#

class PointArray2D[source]#

Bases: EntityBase

PointArray2D class for defining multiple equally spaced points along the u and v axes of a parallelogram.

Example

Define PointArray2D with points equally distributed on a parallelogram with origin (1.0, 0.0, 0.0) * fl.u.m. There are 7 equally spaced points along the parallelogram’s u-axis of (0.5, 1.0, 0.2) * fl.u.m and 10 equally spaced points along its v-axis of (0.1, 0, 1) * fl.u.m.

Both the starting and end points are included in the PointArray.

>>> fl.PointArray2D(
...     name="Parallelogram_1",
...     origin=(1.0, 0.0, 0.0) * fl.u.m,
...     u_axis_vector=(0.5, 1.0, 0.2) * fl.u.m,
...     v_axis_vector=(0.1, 0, 1) * fl.u.m,
...     u_number_of_points=7,
...     v_number_of_points=10
... )

Attributes

origin: Any#

The corner of the parallelogram.

u_axis_vector: Any#

The scaled u-axis of the parallelogram.

v_axis_vector: Any#

The scaled v-axis of the parallelogram.

u_number_of_points: int#

The number of points along the u axis.

v_number_of_points: int#

The number of points along the v axis.

Properties

id: str#

Returns private_attribute_id of the entity.

Additional Constructors

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None