8 #ifndef WARPX_GET_VELOCITY_H_
9 #define WARPX_GET_VELOCITY_H_
54 amrex::Real
operator() (amrex::Real
const x, amrex::Real
const y, amrex::Real
const z)
const noexcept
#define AMREX_GPU_HOST_DEVICE
VelocityInitType
Definition: VelocityProperties.H:16
@ VelConstantValue
Definition: VelocityProperties.H:16
@ VelParserFunction
Definition: VelocityProperties.H:16
void Abort(const std::string &msg)
Definition: GetVelocity.H:21
AMREX_GPU_HOST_DEVICE int direction() const noexcept
Returns the index of the direction of the bulk velocity.
Definition: GetVelocity.H:84
int m_dir
Definition: GetVelocity.H:26
int m_sign_dir
Index x=0, y=1, z=2.
Definition: GetVelocity.H:27
VelocityInitType m_type
Definition: GetVelocity.H:23
amrex::ParserExecutor< 3 > m_velocity_parser
Definition: GetVelocity.H:32
AMREX_GPU_HOST_DEVICE amrex::Real operator()(amrex::Real const x, amrex::Real const y, amrex::Real const z) const noexcept
Functor call. Returns the value of velocity at the location (x,y,z)
Definition: GetVelocity.H:54
amrex::Real m_velocity
Sign of the velocity direction positive=1, negative=-1.
Definition: GetVelocity.H:30
GetVelocity(VelocityProperties const &vel) noexcept
Construct the functor with information provided by vel.
Definition: GetVelocity.cpp:10
Struct to store velocity properties, for use in momentum initialization.
Definition: VelocityProperties.H:26