Class SphericalAdvectionShock

Inheritance Relationships

Base Type

Class Documentation

class SphericalAdvectionShock : public AdvectionField

Spherical advection with a constant velocity for r<r_0 at the the shock the velocity drops to v_0/4. followed by a decrease proportional to 1/r^2.

Public Functions

SphericalAdvectionShock(const Vector3d origin, double r_0, double v_0, double lambda)

Constructor

Parameters:
  • origin – Origin of the advection sphere

  • r_0 – Position of the shock

  • v_0 – Constant velocity (r<<r_o)

  • lambda – Transition width / width of the shock

virtual Vector3d getField(const Vector3d &position) const
virtual double getDivergence(const Vector3d &position) const
double g(double R) const
double g_prime(double R) const
void setOrigin(const Vector3d Origin)
void setR0(double r)
void setV0(double v)
void setLambda(double l)
void setRRot(double r)
void setAzimuthalSpeed(double vPhi)
Vector3d getOrigin() const
double getR0() const
double getV0() const
double getLambda() const
double getRRot() const
Parameters:

r – Normalization radius for rotation speed

double getAzimuthalSpeed() const
Parameters:

vPhi – Rotation speed at r_rot

std::string getDescription() const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

mutable size_t _referenceCount