diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C index 49080956d87c36fa5f49304ca091e63e318d063f..6802f969e1a36e867147b8fca337923e51e533d8 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C @@ -105,8 +105,6 @@ maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ( vectorField("value", dict, p.size()) ); - refValue() = vectorField("refValue", dict, p.size()); - valueFraction() = scalarField("valueFraction", dict, p.size()); } else { @@ -131,7 +129,6 @@ maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -// Update the coefficients associated with the patch field void maxwellSlipUFvPatchVectorField::updateCoeffs() { if (updated()) @@ -179,7 +176,6 @@ void maxwellSlipUFvPatchVectorField::updateCoeffs() } -// Write void maxwellSlipUFvPatchVectorField::write(Ostream& os) const { fvPatchVectorField::write(os); @@ -190,8 +186,10 @@ void maxwellSlipUFvPatchVectorField::write(Ostream& os) const << thermalCreep_ << token::END_STATEMENT << nl; os.writeKeyword("curvature") << curvature_ << token::END_STATEMENT << nl; - refValue().writeEntry("refValue", os); - valueFraction().writeEntry("valueFraction", os); + os.writeKeyword("refValue") + << refValue() << token::END_STATEMENT << nl; + os.writeKeyword("valueFraction") + << valueFraction() << token::END_STATEMENT << nl; writeEntry("value", os); } diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H index 1e640891bfc88f89ed70bc8185401efb0698ab78..258e06f01ccd928aa6b2891f5ece629739b8764c 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H @@ -45,14 +45,13 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class maxwellSlipUFvPatch Declaration + Class maxwellSlipUFvPatch Declaration \*---------------------------------------------------------------------------*/ class maxwellSlipUFvPatchVectorField : public mixedFixedValueSlipFvPatchVectorField { - // Private data // Accommodation coefficient @@ -67,6 +66,7 @@ class maxwellSlipUFvPatchVectorField // Include boundary curvature term (default on) Switch curvature_; + public: //- Runtime type information @@ -128,6 +128,7 @@ public: ); } + // Member functions //- Update the coefficients associated with the patch field