fluidsim.operators.coord_system3d

Coordinate systems in 3D (fluidsim.operator.coord_system3d)

Provides:

class fluidsim.operators.coord_system3d.CoordSystem3DConverter(x, y, z, lx, ly, lz, shift_origin=True)[source]

Bases: object

Conversion from Cartesian coordinate system to cylindrical and spherical coordinate systems

compute_r_theta()[source]

r_theta is defined between [-pi; pi] and is 0 for x = y = 0

compute_cylindrical_components(vx, vy, vz)[source]

Convert (vx, vy, vz) in cylindrical coordinates (vh, vt, vz)

compute_radial_component(vx, vy, vz)[source]

Compute (spherical) radial component

compute_spherical_components(vx, vy, vz)[source]

Convert (vx, vy, vz) in spherical coordinates (vr, vt, vp)

Classes

CoordSystem3DConverter(x, y, z, lx, ly, lz)

Conversion from Cartesian coordinate system to cylindrical and spherical coordinate systems