Skip to content

Commit 8896de7

Browse files
committed
Fixing oversights/issues pointed out by Jason
1 parent ace9447 commit 8896de7

7 files changed

+35
-364
lines changed

src/ArtificialViscosity/ArtificialViscosity.cc

-324
This file was deleted.

src/CRKSPH/CRKSPHBase.cc

-12
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ CRKSPHBase(DataBase<Dimension>& dataBase,
8787
mPressure(FieldStorageType::CopyFields),
8888
mSoundSpeed(FieldStorageType::CopyFields),
8989
mEntropy(FieldStorageType::CopyFields),
90-
mMaxViscousPressure(FieldStorageType::CopyFields),
91-
mEffViscousPressure(FieldStorageType::CopyFields),
9290
mXSPHDeltaV(FieldStorageType::CopyFields),
9391
mDxDt(FieldStorageType::CopyFields),
9492
mDvDt(FieldStorageType::CopyFields),
@@ -103,8 +101,6 @@ CRKSPHBase(DataBase<Dimension>& dataBase,
103101
mPressure = dataBase.newFluidFieldList(0.0, HydroFieldNames::pressure);
104102
mSoundSpeed = dataBase.newFluidFieldList(0.0, HydroFieldNames::soundSpeed);
105103
mEntropy = dataBase.newFluidFieldList(0.0, HydroFieldNames::entropy);
106-
mMaxViscousPressure = dataBase.newFluidFieldList(0.0, HydroFieldNames::maxViscousPressure);
107-
mEffViscousPressure = dataBase.newFluidFieldList(0.0, HydroFieldNames::effectiveViscousPressure);
108104
mXSPHDeltaV = dataBase.newFluidFieldList(Vector::zero, HydroFieldNames::XSPHDeltaV);
109105
mDxDt = dataBase.newFluidFieldList(Vector::zero, IncrementState<Dimension, Vector>::prefix() + HydroFieldNames::position);
110106
mDvDt = dataBase.newFluidFieldList(Vector::zero, HydroFieldNames::hydroAcceleration);
@@ -213,8 +209,6 @@ registerDerivatives(DataBase<Dimension>& dataBase,
213209
// Note we deliberately do not zero out the derivatives here! This is because the previous step
214210
// info here may be used by other algorithms (like the CheapSynchronousRK2 integrator or
215211
// the ArtificialVisocisity::initialize step).
216-
dataBase.resizeFluidFieldList(mMaxViscousPressure, 0.0, HydroFieldNames::maxViscousPressure, false);
217-
dataBase.resizeFluidFieldList(mEffViscousPressure, 0.0, HydroFieldNames::effectiveViscousPressure, false);
218212
dataBase.resizeFluidFieldList(mXSPHDeltaV, Vector::zero, HydroFieldNames::XSPHDeltaV, false);
219213
dataBase.resizeFluidFieldList(mDxDt, Vector::zero, IncrementState<Dimension, Vector>::prefix() + HydroFieldNames::position, false);
220214
dataBase.resizeFluidFieldList(mDvDt, Vector::zero, HydroFieldNames::hydroAcceleration, false);
@@ -223,8 +217,6 @@ registerDerivatives(DataBase<Dimension>& dataBase,
223217
dataBase.resizeFluidFieldList(mDvDx, Tensor::zero, HydroFieldNames::velocityGradient, false);
224218
dataBase.resizeFluidFieldList(mInternalDvDx, Tensor::zero, HydroFieldNames::internalVelocityGradient, false);
225219

226-
derivs.enroll(mMaxViscousPressure);
227-
derivs.enroll(mEffViscousPressure);
228220
derivs.enroll(mXSPHDeltaV);
229221

230222
// These two (the position and velocity updates) may be registered
@@ -379,8 +371,6 @@ dumpState(FileIO& file, const string& pathName) const {
379371
file.write(mPressure, pathName + "/pressure");
380372
file.write(mSoundSpeed, pathName + "/soundSpeed");
381373
file.write(mEntropy, pathName + "/entropy");
382-
file.write(mMaxViscousPressure, pathName + "/maxViscousPressure");
383-
file.write(mEffViscousPressure, pathName + "/effViscousPressure");
384374
file.write(mXSPHDeltaV, pathName + "/XSPHDeltaV");
385375

386376
file.write(mDxDt, pathName + "/DxDt");
@@ -402,8 +392,6 @@ restoreState(const FileIO& file, const string& pathName) {
402392
file.read(mPressure, pathName + "/pressure");
403393
file.read(mSoundSpeed, pathName + "/soundSpeed");
404394
file.read(mEntropy, pathName + "/entropy");
405-
file.read(mMaxViscousPressure, pathName + "/maxViscousPressure");
406-
file.read(mEffViscousPressure, pathName + "/effViscousPressure");
407395
file.read(mXSPHDeltaV, pathName + "/XSPHDeltaV");
408396

409397
file.read(mDxDt, pathName + "/DxDt");

src/CRKSPH/CRKSPHBase.hh

-5
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ public:
138138
const FieldList<Dimension, Scalar>& pressure() const { return mPressure; }
139139
const FieldList<Dimension, Scalar>& soundSpeed() const { return mSoundSpeed; }
140140
const FieldList<Dimension, Scalar>& entropy() const { return mEntropy; }
141-
const FieldList<Dimension, Scalar>& maxViscousPressure() const { return mMaxViscousPressure; }
142-
const FieldList<Dimension, Scalar>& effectiveViscousPressure() const { return mEffViscousPressure; }
143141
const FieldList<Dimension, Vector>& XSPHDeltaV() const { return mXSPHDeltaV; }
144142

145143
const FieldList<Dimension, Vector>& DxDt() const { return mDxDt; }
@@ -170,9 +168,6 @@ protected:
170168
FieldList<Dimension, Scalar> mSoundSpeed;
171169
FieldList<Dimension, Scalar> mEntropy;
172170

173-
FieldList<Dimension, Scalar> mMaxViscousPressure;
174-
FieldList<Dimension, Scalar> mEffViscousPressure;
175-
176171
FieldList<Dimension, Vector> mXSPHDeltaV;
177172
FieldList<Dimension, Vector> mDxDt;
178173

0 commit comments

Comments
 (0)