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)


  • 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
  • r_rot: Normalization radius for rotation speed
  • v_phi: Rotation speed at r_rot

Vector3d getField(const Vector3d &position) const
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
double getAzimuthalSpeed() const
std::string getDescription() const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

size_t _referenceCount