Class OneDimensionalCartesianShock

Inheritance Relationships

Base Type

Class Documentation

class OneDimensionalCartesianShock : public AdvectionField

Advection field in x-direction with shock at x = 0 and width lShock approximated by tanh() with variable compression ratio vUp/vDown.

Public Functions

OneDimensionalCartesianShock(double compressionRatio, double vUp, double lShock)

Constructor

Parameters:
  • compressionRatio – //compression ratio of shock

  • vUp – //upstream velocity

  • lShock – //shock width

virtual Vector3d getField(const Vector3d &position) const
virtual double getDivergence(const Vector3d &position) const
void setComp(double compressionRatio)
void setVup(double vUp)
void setShockwidth(double lShock)
double getComp() const
double getVup() const
double getShockwidth() 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