datastructures.Fields#

class datastructures.Fields(u: ndarray, v: ndarray, p: ndarray, x: ndarray, y: ndarray, grid_points: ndarray)[source]#

Bases: object

Base spatial solution fields.

Parameters:
unp.ndarray

x-velocity component field.

vnp.ndarray

y-velocity component field.

pnp.ndarray

Pressure field.

xnp.ndarray

x-coordinates of grid points.

ynp.ndarray

y-coordinates of grid points.

grid_pointsnp.ndarray

Flattened array of grid point coordinates, shape (N, 2).

Methods

__init__

Attributes

grid_points: ndarray#
p: ndarray#
u: ndarray#
v: ndarray#
x: ndarray#
y: ndarray#