VTK-m  2.0
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
vtkm::ChargedParticle Class Reference

#include <Particle.h>

Public Member Functions

VTKM_EXEC_CONT ChargedParticle ()
 
VTKM_EXEC_CONT ChargedParticle (const vtkm::Vec3f &position, const vtkm::Id &id, const vtkm::Float64 &mass, const vtkm::Float64 &charge, const vtkm::Float64 &weighting, const vtkm::Vec3f &momentum, const vtkm::Id &numSteps=0, const vtkm::ParticleStatus &status=vtkm::ParticleStatus(), const vtkm::FloatDefault &time=0)
 
const VTKM_EXEC_CONT vtkm::Vec3fGetPosition () const
 
VTKM_EXEC_CONT void SetPosition (const vtkm::Vec3f &position)
 
VTKM_EXEC_CONT vtkm::Id GetID () const
 
VTKM_EXEC_CONT void SetID (vtkm::Id id)
 
VTKM_EXEC_CONT vtkm::Id GetNumberOfSteps () const
 
VTKM_EXEC_CONT void SetNumberOfSteps (vtkm::Id numSteps)
 
VTKM_EXEC_CONT vtkm::ParticleStatus GetStatus () const
 
VTKM_EXEC_CONT vtkm::ParticleStatusGetStatus ()
 
VTKM_EXEC_CONT void SetStatus (vtkm::ParticleStatus status)
 
VTKM_EXEC_CONT vtkm::FloatDefault GetTime () const
 
VTKM_EXEC_CONT void SetTime (vtkm::FloatDefault time)
 
VTKM_EXEC_CONT vtkm::Float64 Gamma (vtkm::Vec3f momentum, bool reciprocal=false) const
 
VTKM_EXEC_CONT vtkm::Vec3f Velocity (const vtkm::VecVariable< vtkm::Vec3f, 2 > &vectors, const vtkm::FloatDefault &length)
 
VTKM_EXEC_CONT vtkm::Vec3f GetEvaluationPosition (const vtkm::FloatDefault &deltaT) const
 

Static Public Member Functions

static size_t Sizeof ()
 

Private Attributes

vtkm::Vec3f Position
 
vtkm::Id ID = -1
 
vtkm::Id NumSteps = 0
 
vtkm::ParticleStatus Status
 
vtkm::FloatDefault Time = 0
 
vtkm::Float64 Mass
 
vtkm::Float64 Charge
 
vtkm::Float64 Weighting
 
vtkm::Vec3f Momentum
 

Static Private Attributes

constexpr static vtkm::FloatDefault SPEED_OF_LIGHT
 

Friends

struct mangled_diy_namespace::Serialization< vtkm::ChargedParticle >
 
VTKM_CONT friend std::ostream & operator<< (std::ostream &out, const vtkm::ChargedParticle &p)
 

Constructor & Destructor Documentation

◆ ChargedParticle() [1/2]

VTKM_EXEC_CONT vtkm::ChargedParticle::ChargedParticle ( )
inline

◆ ChargedParticle() [2/2]

VTKM_EXEC_CONT vtkm::ChargedParticle::ChargedParticle ( const vtkm::Vec3f position,
const vtkm::Id id,
const vtkm::Float64 mass,
const vtkm::Float64 charge,
const vtkm::Float64 weighting,
const vtkm::Vec3f momentum,
const vtkm::Id numSteps = 0,
const vtkm::ParticleStatus status = vtkm::ParticleStatus(),
const vtkm::FloatDefault time = 0 
)
inline

Member Function Documentation

◆ Gamma()

VTKM_EXEC_CONT vtkm::Float64 vtkm::ChargedParticle::Gamma ( vtkm::Vec3f  momentum,
bool  reciprocal = false 
) const
inline

◆ GetEvaluationPosition()

VTKM_EXEC_CONT vtkm::Vec3f vtkm::ChargedParticle::GetEvaluationPosition ( const vtkm::FloatDefault deltaT) const
inline

◆ GetID()

VTKM_EXEC_CONT vtkm::Id vtkm::ChargedParticle::GetID ( ) const
inline

◆ GetNumberOfSteps()

VTKM_EXEC_CONT vtkm::Id vtkm::ChargedParticle::GetNumberOfSteps ( ) const
inline

◆ GetPosition()

const VTKM_EXEC_CONT vtkm::Vec3f& vtkm::ChargedParticle::GetPosition ( ) const
inline

◆ GetStatus() [1/2]

VTKM_EXEC_CONT vtkm::ParticleStatus& vtkm::ChargedParticle::GetStatus ( )
inline

◆ GetStatus() [2/2]

VTKM_EXEC_CONT vtkm::ParticleStatus vtkm::ChargedParticle::GetStatus ( ) const
inline

◆ GetTime()

VTKM_EXEC_CONT vtkm::FloatDefault vtkm::ChargedParticle::GetTime ( ) const
inline

◆ SetID()

VTKM_EXEC_CONT void vtkm::ChargedParticle::SetID ( vtkm::Id  id)
inline

◆ SetNumberOfSteps()

VTKM_EXEC_CONT void vtkm::ChargedParticle::SetNumberOfSteps ( vtkm::Id  numSteps)
inline

◆ SetPosition()

VTKM_EXEC_CONT void vtkm::ChargedParticle::SetPosition ( const vtkm::Vec3f position)
inline

◆ SetStatus()

VTKM_EXEC_CONT void vtkm::ChargedParticle::SetStatus ( vtkm::ParticleStatus  status)
inline

◆ SetTime()

VTKM_EXEC_CONT void vtkm::ChargedParticle::SetTime ( vtkm::FloatDefault  time)
inline

◆ Sizeof()

static size_t vtkm::ChargedParticle::Sizeof ( )
inlinestatic

◆ Velocity()

VTKM_EXEC_CONT vtkm::Vec3f vtkm::ChargedParticle::Velocity ( const vtkm::VecVariable< vtkm::Vec3f, 2 > &  vectors,
const vtkm::FloatDefault length 
)
inline

Friends And Related Function Documentation

◆ mangled_diy_namespace::Serialization< vtkm::ChargedParticle >

friend struct mangled_diy_namespace::Serialization< vtkm::ChargedParticle >
friend

◆ operator<<

VTKM_CONT friend std::ostream& operator<< ( std::ostream &  out,
const vtkm::ChargedParticle p 
)
friend

Member Data Documentation

◆ Charge

vtkm::Float64 vtkm::ChargedParticle::Charge
private

◆ ID

vtkm::Id vtkm::ChargedParticle::ID = -1
private

◆ Mass

vtkm::Float64 vtkm::ChargedParticle::Mass
private

◆ Momentum

vtkm::Vec3f vtkm::ChargedParticle::Momentum
private

◆ NumSteps

vtkm::Id vtkm::ChargedParticle::NumSteps = 0
private

◆ Position

vtkm::Vec3f vtkm::ChargedParticle::Position
private

◆ SPEED_OF_LIGHT

constexpr static vtkm::FloatDefault vtkm::ChargedParticle::SPEED_OF_LIGHT
staticconstexprprivate
Initial value:
=
static_cast<vtkm::FloatDefault>(2.99792458e8)

◆ Status

vtkm::ParticleStatus vtkm::ChargedParticle::Status
private

◆ Time

vtkm::FloatDefault vtkm::ChargedParticle::Time = 0
private

◆ Weighting

vtkm::Float64 vtkm::ChargedParticle::Weighting
private

The documentation for this class was generated from the following file:
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198