File Rotation.H
Functions
- AMREX_GPU_HOST_DEVICE AMREX_INLINE Real get_omega ()
Return the magnitude of omega along the rotating axis.
- AMREX_GPU_HOST_DEVICE AMREX_INLINE GpuArray< Real, 3 > get_omega_vec (const GeometryData &geomdata, const int j)
Return the omega vector corresponding to the current rotational period
- AMREX_GPU_HOST_DEVICE AMREX_INLINE void rotational_acceleration (const GpuArray< Real, 3 > &r, const GpuArray< Real, 3 > &v, const GpuArray< Real, 3 > &omega, const int coord, 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
omega – angular velocity vector array
coord – coordinate system
coriolis – do we include the Coriolis force
Sr – rotational acceleration
- AMREX_GPU_HOST_DEVICE AMREX_INLINE Real rotational_potential (const GpuArray< Real, 3 > &r, const GpuArray< Real, 3 > &omega, const int coord)
- 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, const GpuArray< Real, 3 > &omega, Real time)
- AMREX_GPU_HOST_DEVICE AMREX_INLINE void fill_dt_omega_matrix (const Real dt, const GpuArray< Real, 3 > &omega, Array2D< Real, 0, 2, 0, 2 > &dt_omega_matrix)