@@ -24,8 +24,8 @@ class AdvectionField: public Referenced {
2424public:
2525 virtual ~AdvectionField () {
2626 }
27- virtual Vector3d getField (const Vector3d &position) const = 0 ;
28- virtual double getDivergence (const Vector3d &position) const = 0 ;
27+ virtual Vector3d getField (const Vector3d &position, const double &time= 0 ) const = 0 ;
28+ virtual double getDivergence (const Vector3d &position, const double &time= 0 ) const = 0 ;
2929};
3030
3131
@@ -37,8 +37,8 @@ class AdvectionFieldList: public AdvectionField {
3737 std::vector<ref_ptr<AdvectionField> > fields;
3838public:
3939 void addField (ref_ptr<AdvectionField> field);
40- Vector3d getField (const Vector3d &position) const ;
41- double getDivergence (const Vector3d &position) const ;
40+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
41+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
4242};
4343
4444
@@ -50,8 +50,8 @@ class UniformAdvectionField: public AdvectionField {
5050 Vector3d value;
5151public:
5252 UniformAdvectionField (const Vector3d &value);
53- Vector3d getField (const Vector3d &position) const ;
54- double getDivergence (const Vector3d &position) const ;
53+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
54+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
5555
5656 std::string getDescription () const ;
5757};
@@ -73,8 +73,8 @@ class ConstantSphericalAdvectionField: public AdvectionField {
7373*/
7474
7575 ConstantSphericalAdvectionField (const Vector3d origin, double vWind);
76- Vector3d getField (const Vector3d &position) const ;
77- double getDivergence (const Vector3d &position) const ;
76+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
77+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
7878
7979 void setOrigin (const Vector3d origin);
8080 void setVWind (double vMax);
@@ -108,8 +108,8 @@ class SphericalAdvectionField: public AdvectionField {
108108 @param alpha Tuning parameter
109109*/
110110 SphericalAdvectionField (const Vector3d origin, double radius, double vMax, double tau, double alpha);
111- Vector3d getField (const Vector3d &position) const ;
112- double getDivergence (const Vector3d &position) const ;
111+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
112+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
113113
114114 double getV (const double &r) const ;
115115
@@ -144,8 +144,8 @@ class OneDimensionalCartesianShock: public AdvectionField {
144144 @param lShock //shock width
145145*/
146146 OneDimensionalCartesianShock (double compressionRatio, double vUp, double lShock);
147- Vector3d getField (const Vector3d &position) const ;
148- double getDivergence (const Vector3d &position) const ;
147+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
148+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
149149
150150 void setComp (double compressionRatio);
151151 void setVup (double vUp);
@@ -178,8 +178,8 @@ class OneDimensionalSphericalShock: public AdvectionField {
178178 @param coolUpstream //flag for upstream cooling
179179*/
180180 OneDimensionalSphericalShock (double rShock, double vUp, double compressionRatio, double lShock, bool coolUpstream);
181- Vector3d getField (const Vector3d &position) const ;
182- double getDivergence (const Vector3d &position) const ;
181+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
182+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
183183
184184 void setComp (double compressionRatio);
185185 void setVup (double vUp);
@@ -217,8 +217,8 @@ class ObliqueAdvectionShock: public AdvectionField {
217217
218218*/
219219 ObliqueAdvectionShock (double compressionRatio, double vXUp, double vY, double lShock);
220- Vector3d getField (const Vector3d &position) const ;
221- double getDivergence (const Vector3d &position) const ;
220+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
221+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
222222
223223 void setComp (double compressionRatio);
224224 void setVup (double vXUp);
@@ -257,8 +257,8 @@ class SphericalAdvectionShock: public AdvectionField {
257257*/
258258 SphericalAdvectionShock (const Vector3d origin, double r_0, double v_0, double lambda);
259259
260- Vector3d getField (const Vector3d &position) const ;
261- double getDivergence (const Vector3d &position) const ;
260+ Vector3d getField (const Vector3d &position, const double &time= 0 ) const ;
261+ double getDivergence (const Vector3d &position, const double &time= 0 ) const ;
262262
263263 double g (double R) const ;
264264 double g_prime (double R) const ;
0 commit comments