File Rotation.H

Functions

AMREX_GPU_HOST_DEVICE AMREX_INLINE GpuArray< Real, 3 > get_omega ()

Return the omega vector corresponding to the current rotational period

AMREX_GPU_HOST_DEVICE AMREX_INLINE void rotational_acceleration (GpuArray< Real, 3 > &r, GpuArray< Real, 3 > &v, const bool coriolis, Real *Sr)

Compute the rotational acceleration for a single zone (Coriolis and centrifugal)

Parameters:
  • r – distance from origin of rotation vector

  • v – velocity

  • coriolis – do we include the Coriolis force

  • Sr – rotational acceleration

AMREX_GPU_HOST_DEVICE AMREX_INLINE Real rotational_potential (GpuArray< Real, 3 > &r)
AMREX_GPU_HOST_DEVICE AMREX_INLINE void inertial_to_rotational_velocity (const int i, const int j, const int k, const GeometryData &geomdata, const Real time, GpuArray< Real, 3 > &v)
AMREX_GPU_HOST_DEVICE AMREX_INLINE void rotational_to_inertial_velocity (const int i, const int j, const int k, const GeometryData &geomdata, const Real time, GpuArray< Real, 3 > &v)
AMREX_GPU_HOST_DEVICE AMREX_INLINE GpuArray< Real, 3 > inertial_rotation (const GpuArray< Real, 3 > &vec, Real time)