From 9e7cb86097dd79f9c68eebea9edb24f27fa62acb Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Tue, 3 Aug 2010 14:07:16 +0100 Subject: [PATCH] ENH: proper restart for maxWellU bc --- .../rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C | 8 ++++---- .../compressible/rhoCentralFoam/biconic25-55Run35/0/U | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C index 1d5c6713efb..49080956d87 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C @@ -105,6 +105,8 @@ maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ( vectorField("value", dict, p.size()) ); + refValue() = vectorField("refValue", dict, p.size()); + valueFraction() = scalarField("valueFraction", dict, p.size()); } else { @@ -188,10 +190,8 @@ void maxwellSlipUFvPatchVectorField::write(Ostream& os) const << thermalCreep_ << token::END_STATEMENT << nl; os.writeKeyword("curvature") << curvature_ << token::END_STATEMENT << nl; - os.writeKeyword("refValue") - << refValue() << token::END_STATEMENT << nl; - os.writeKeyword("valueFraction") - << valueFraction() << token::END_STATEMENT << nl; + refValue().writeEntry("refValue", os); + valueFraction().writeEntry("valueFraction", os); writeEntry("value", os); } diff --git a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/0/U b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/0/U index d2c86a48344..dbcd94b421b 100644 --- a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/0/U +++ b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/0/U @@ -32416,7 +32416,7 @@ boundaryField Uwall uniform (0 0 0); thermalCreep on; curvature on; - refValue + refValue nonuniform List<vector> 255 ( (3.37115877925426 1.5719971556227 1.63068197702874e-10) @@ -32676,7 +32676,7 @@ boundaryField (0.103666873607679 0 -6.64100738660639e-16) ) ; - valueFraction + valueFraction nonuniform List<scalar> 255 ( 0.00388739013936794 -- GitLab