Class SphericalAdvectionShock
Defined in File AdvectionField.h
Inheritance Relationships
Base Type
public AdvectionField
(Class AdvectionField)
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
-
double g(double R) const
-
double g_prime(double R) const
-
void setR0(double r)
-
void setV0(double v)
-
void setLambda(double l)
-
void setRRot(double r)
-
void setAzimuthalSpeed(double vPhi)
-
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
-
SphericalAdvectionShock(const Vector3d origin, double r_0, double v_0, double lambda)