Class OneDimensionalSphericalShock
Defined in File AdvectionField.h
Inheritance Relationships
Base Type
public AdvectionField
(Class AdvectionField)
Class Documentation
-
class OneDimensionalSphericalShock : public AdvectionField
Advection field in x-direction with shock at rShock and width lShock approximated by tanh() with variable compression ratio ratio vUp/vDown.
Public Functions
-
OneDimensionalSphericalShock(double rShock, double vUp, double compressionRatio, double lShock, bool coolUpstream)
Constructor
- Parameters:
compressionRatio – //compression ratio of shock
vUp – //upstream velocity
lShock – //shock width
rShock – //shock radius
coolUpstream – //flag for upstream cooling
-
void setComp(double compressionRatio)
-
void setVup(double vUp)
-
void setShockwidth(double lShock)
-
void setShockRadius(double rShock)
-
void setCooling(bool coolUpstream)
-
double getComp() const
-
double getVup() const
-
double getShockwidth() const
-
double getShockRadius() const
-
bool getCooling() const
-
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
-
OneDimensionalSphericalShock(double rShock, double vUp, double compressionRatio, double lShock, bool coolUpstream)