diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.C index 5436f1f421..61614bdce6 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.C @@ -204,7 +204,6 @@ void Foam::smoluchowskiJumpTFvPatchScalarField::updateCoeffs() } -// Write void Foam::smoluchowskiJumpTFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); @@ -214,10 +213,10 @@ void Foam::smoluchowskiJumpTFvPatchScalarField::write(Ostream& os) const writeEntryIfDifferent(os, "psi", "thermo:psi", psiName_); writeEntryIfDifferent(os, "mu", "thermo:mu", muName_); - Foam::writeEntry(os, "accommodationCoeff", accommodationCoeff_); - Twall_.writeEntry("Twall", os); - Foam::writeEntry(os, "gamma", gamma_); - writeEntry("value", os); + writeEntry(os, "accommodationCoeff", accommodationCoeff_); + writeEntry(os, "Twall", Twall_); + writeEntry(os, "gamma", gamma_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C index 957ee451cc..78a67869d9 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C @@ -206,15 +206,15 @@ void Foam::maxwellSlipUFvPatchVectorField::write(Ostream& os) const writeEntryIfDifferent(os, "mu", "thermo:mu", muName_); writeEntryIfDifferent(os, "tauMC", "tauMC", tauMCName_); - Foam::writeEntry(os, "accommodationCoeff", accommodationCoeff_); - Uwall_.writeEntry("Uwall", os); - Foam::writeEntry(os, "thermalCreep", thermalCreep_); - Foam::writeEntry(os, "curvature", curvature_); + writeEntry(os, "accommodationCoeff", accommodationCoeff_); + writeEntry(os, "Uwall", Uwall_); + writeEntry(os, "thermalCreep", thermalCreep_); + writeEntry(os, "curvature", curvature_); - refValue().writeEntry("refValue", os); - valueFraction().writeEntry("valueFraction", os); + writeEntry(os, "refValue", refValue()); + writeEntry(os, "valueFraction", valueFraction()); - writeEntry("value", os); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C index b283bde91e..31dcd90033 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -188,8 +188,8 @@ template void Foam::mixedFixedValueSlipFvPatchField::write(Ostream& os) const { transformFvPatchField::write(os); - refValue_.writeEntry("refValue", os); - valueFraction_.writeEntry("valueFraction", os); + writeEntry(os, "refValue", refValue_); + writeEntry(os, "valueFraction", valueFraction_); } diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.C index 0ea2e0fd28..002ca35fe9 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -119,7 +119,7 @@ void Foam::fixedRhoFvPatchScalarField::write(Ostream& os) const writeEntryIfDifferent(os, "p", "p", this->pName_); writeEntryIfDifferent(os, "psi", "thermo:psi", psiName_); - writeEntry("value", os); + writeEntry(os, "value", *this); } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C index c3ff1dc5d1..1eb28e81a2 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -108,7 +108,7 @@ void Foam::adjointOutletPressureFvPatchScalarField::updateCoeffs() void Foam::adjointOutletPressureFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); - writeEntry("value", os); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.C b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.C index 197ad0d81e..d22db41465 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.C +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -109,7 +109,7 @@ void Foam::adjointOutletVelocityFvPatchVectorField::updateCoeffs() void Foam::adjointOutletVelocityFvPatchVectorField::write(Ostream& os) const { fvPatchVectorField::write(os); - writeEntry("value", os); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index ebb9725299..61de72e85e 100644 --- a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -125,8 +125,8 @@ alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField void alphaContactAngleFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "thetaProperties", thetaProps_); - writeEntry("value", os); + writeEntry(os, "thetaProperties", thetaProps_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index 896a93437d..42bc40bec1 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -125,8 +125,8 @@ alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField void alphaContactAngleFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "thetaProperties", thetaProps_); - writeEntry("value", os); + writeEntry(os, "thetaProperties", thetaProps_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index 896a93437d..42bc40bec1 100644 --- a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -125,8 +125,8 @@ alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField void alphaContactAngleFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "thetaProperties", thetaProps_); - writeEntry("value", os); + writeEntry(os, "thetaProperties", thetaProps_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C index 0cd31c93e3..8456d861f4 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C @@ -191,12 +191,12 @@ void alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::write ) const { fvPatchField::write(os); - Foam::writeEntry(os, "vaporPhase", vaporPhaseName_); - Foam::writeEntry(os, "relax", relax_); - Foam::writeEntry(os, "fixedDmdt", fixedDmdt_); - Foam::writeEntry(os, "L", L_); - dmdt_.writeEntry("dmdt", os); - writeEntry("value", os); + writeEntry(os, "vaporPhase", vaporPhaseName_); + writeEntry(os, "relax", relax_); + writeEntry(os, "fixedDmdt", fixedDmdt_); + writeEntry(os, "L", L_); + writeEntry(os, "dmdt", dmdt_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C index dfce09c5a5..0d366a01cb 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C @@ -323,12 +323,12 @@ void alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::write ) const { fvPatchField::write(os); - Foam::writeEntry(os, "Prt", Prt_); - Foam::writeEntry(os, "Cmu", Cmu_); - Foam::writeEntry(os, "kappa", kappa_); - Foam::writeEntry(os, "E", E_); - dmdt_.writeEntry("dmdt", os); - writeEntry("value", os); + writeEntry(os, "Prt", Prt_); + writeEntry(os, "Cmu", Cmu_); + writeEntry(os, "kappa", kappa_); + writeEntry(os, "E", E_); + writeEntry(os, "dmdt", dmdt_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C index 99ec9ad8b5..98ac854868 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -124,9 +124,9 @@ void alphatPhaseChangeWallFunctionFvPatchScalarField:: write(Ostream& os) const { fvPatchField::write(os); - dmdt_.writeEntry("dmdt", os); - mDotL_.writeEntry("mDotL", os); - writeEntry("value", os); + writeEntry(os, "dmdt", dmdt_); + writeEntry(os, "mDotL", mDotL_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C index aaa8359de4..c3a4c98d41 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C @@ -682,9 +682,9 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::write(Ostream& os) const { fvPatchField::write(os); - Foam::writeEntry(os, "phaseType", phaseTypeNames_[phaseType_]); + writeEntry(os, "phaseType", phaseTypeNames_[phaseType_]); - Foam::writeEntry(os, "relax", relax_); + writeEntry(os, "relax", relax_); switch (phaseType_) { @@ -722,12 +722,12 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::write(Ostream& os) const } } - Foam::writeEntry(os, "otherPhase", otherPhaseName_); - dmdt_.writeEntry("dmdt", os); - dDep_.writeEntry("dDep", os); - qq_.writeEntry("qQuenching", os); - alphatConv_.writeEntry("alphatConv", os); - writeEntry("value", os); + writeEntry(os, "otherPhase", otherPhaseName_); + writeEntry(os, "dmdt", dmdt_); + writeEntry(os, "dDep", dDep_); + writeEntry(os, "qQuenching", qq_); + writeEntry(os, "alphatConv", alphatConv_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C index cf346d1ba7..87491268d3 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C @@ -109,8 +109,8 @@ void Foam::copiedFixedValueFvPatchScalarField::updateCoeffs() void Foam::copiedFixedValueFvPatchScalarField::write(Ostream& os) const { fvPatchField::write(os); - Foam::writeEntry(os, "sourceFieldName", sourceFieldName_); - writeEntry("value", os); + writeEntry(os, "sourceFieldName", sourceFieldName_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C index f071a2a2fa..7f28c3d746 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C @@ -170,9 +170,9 @@ void Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::updateCoeffs() void Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::write(Ostream& os) const { fvPatchField::write(os); - Foam::writeEntry(os, "relax", relax_); - q_.writeEntry("q", os); - writeEntry("value", os); + writeEntry(os, "relax", relax_); + writeEntry(os, "q", q_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index 896a93437d..42bc40bec1 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -125,8 +125,8 @@ alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField void alphaContactAngleFvPatchScalarField::write(Ostream& os) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "thetaProperties", thetaProps_); - writeEntry("value", os); + writeEntry(os, "thetaProperties", thetaProps_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C index 2a0bad5b6b..cc41c54b8c 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C @@ -245,8 +245,8 @@ void Foam::JohnsonJacksonParticleSlipFvPatchVectorField::write ) const { fvPatchVectorField::write(os); - Foam::writeEntry(os, "specularityCoefficient", specularityCoefficient_); - writeEntry("value", os); + writeEntry(os, "specularityCoefficient", specularityCoefficient_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C index 4903799fb1..65c290f2f0 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C @@ -289,9 +289,9 @@ void Foam::JohnsonJacksonParticleThetaFvPatchScalarField::write ) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "restitutionCoefficient", restitutionCoefficient_); - Foam::writeEntry(os, "specularityCoefficient", specularityCoefficient_); - writeEntry("value", os); + writeEntry(os, "restitutionCoefficient", restitutionCoefficient_); + writeEntry(os, "specularityCoefficient", specularityCoefficient_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C b/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C index e3eacd9456..68d5e2a1b9 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C @@ -245,8 +245,8 @@ void Foam::JohnsonJacksonParticleSlipFvPatchVectorField::write ) const { fvPatchVectorField::write(os); - Foam::writeEntry(os, "specularityCoefficient", specularityCoefficient_); - writeEntry("value", os); + writeEntry(os, "specularityCoefficient", specularityCoefficient_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C b/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C index cb9909180d..3b555764e2 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kineticTheoryModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C @@ -289,9 +289,9 @@ void Foam::JohnsonJacksonParticleThetaFvPatchScalarField::write ) const { fvPatchScalarField::write(os); - Foam::writeEntry(os, "restitutionCoefficient", restitutionCoefficient_); - Foam::writeEntry(os, "specularityCoefficient", specularityCoefficient_); - writeEntry("value", os); + writeEntry(os, "restitutionCoefficient", restitutionCoefficient_); + writeEntry(os, "specularityCoefficient", specularityCoefficient_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C index 530f4b6163..2b71c81e22 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C @@ -125,10 +125,10 @@ void Foam::hydrostaticDisplacementFvPatchVectorField::updateCoeffs() void Foam::hydrostaticDisplacementFvPatchVectorField::write(Ostream& os) const { fvPatchVectorField::write(os); - Foam::writeEntry(os, "rhoLiquid", rhoLiquid_); - Foam::writeEntry(os, "liquidSurfacePressure", liquidSurfacePressure_); - Foam::writeEntry(os, "liquidSurfacePoint", liquidSurfacePoint_); - writeEntry("value", os); + writeEntry(os, "rhoLiquid", rhoLiquid_); + writeEntry(os, "liquidSurfacePressure", liquidSurfacePressure_); + writeEntry(os, "liquidSurfacePoint", liquidSurfacePoint_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C index 2f7158c195..3138dbc410 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -200,9 +200,9 @@ void Foam::tractionDisplacementFvPatchVectorField::updateCoeffs() void Foam::tractionDisplacementFvPatchVectorField::write(Ostream& os) const { fvPatchVectorField::write(os); - traction_.writeEntry("traction", os); - pressure_.writeEntry("pressure", os); - writeEntry("value", os); + writeEntry(os, "traction", traction_); + writeEntry(os, "pressure", pressure_); + writeEntry(os, "value", *this); } diff --git a/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C index 33ce32bb34..d621311e74 100644 --- a/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -187,13 +187,12 @@ void tractionDisplacementCorrectionFvPatchVectorField::updateCoeffs() } -// Write void tractionDisplacementCorrectionFvPatchVectorField::write(Ostream& os) const { fvPatchVectorField::write(os); - traction_.writeEntry("traction", os); - pressure_.writeEntry("pressure", os); - writeEntry("value", os); + writeEntry(os, "traction", traction_); + writeEntry(os, "pressure", pressure_); + writeEntry(os, "value", *this); } diff --git a/applications/test/PackedList4/Test-PackedList4.C b/applications/test/PackedList4/Test-PackedList4.C index 55d1712e16..24c0bf5aa9 100644 --- a/applications/test/PackedList4/Test-PackedList4.C +++ b/applications/test/PackedList4/Test-PackedList4.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -198,7 +198,7 @@ int main(int argc, char *argv[]) list4.write(Info, true) << endl; - list4.writeEntry("PackedBoolList", Info); + writeEntry(Info, "PackedBoolList", list4); return 0; } diff --git a/applications/utilities/preProcessing/wallFunctionTable/wallFunctionTable.C b/applications/utilities/preProcessing/wallFunctionTable/wallFunctionTable.C index 68198d539b..8137cd3e2a 100644 --- a/applications/utilities/preProcessing/wallFunctionTable/wallFunctionTable.C +++ b/applications/utilities/preProcessing/wallFunctionTable/wallFunctionTable.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -54,8 +54,6 @@ int main(int argc, char *argv[]) autoPtr twf(tabulatedWallFunctions::tabulatedWallFunction::New(dict, mesh)); -// twf->writeData(Info); - twf->write(); Info<< "End\n" << endl; diff --git a/etc/caseDicts/setConstraintTypes b/etc/caseDicts/setConstraintTypes index e7b46482dc..bfd6d50fdd 100644 --- a/etc/caseDicts/setConstraintTypes +++ b/etc/caseDicts/setConstraintTypes @@ -27,6 +27,11 @@ cyclicSlip type cyclicSlip; } +conformalCoupled +{ + type conformalCoupled; +} + empty { type empty; diff --git a/etc/codeTemplates/BC/BC.C b/etc/codeTemplates/BC/BC.C index 1f56e21e9d..4c715a6730 100644 --- a/etc/codeTemplates/BC/BC.C +++ b/etc/codeTemplates/BC/BC.C @@ -220,12 +220,12 @@ void Foam::CLASS::write ) const { FVPATCHF::write(os); - Foam::writeEntry(os, "scalarData", scalarData_); - Foam::writeEntry(os, "data", data_); - fieldData_.writeEntry("fieldData", os); - timeVsData_->writeData(os); - Foam::writeEntry(os, "wordData", wordData_); - this->writeEntry("value", os); + writeEntry(os, "scalarData", scalarData_); + writeEntry(os, "data", data_); + writeEntry(os, "fieldData", fieldData_); + writeEntry(os, timeVsData_()); + writeEntry(os, "wordData", wordData_); + writeEntry(os, "value", *this); } diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H index 260540e69c..61d81c7b8c 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,6 +66,9 @@ template class HashPtrTable; template class Tuple2; +template +void writeEntry(Ostream& os, const HashTable& ht); + template Istream& operator>>(Istream&, HashTable&); diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C b/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C index 7e7f445efd..207f76814c 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -90,6 +90,15 @@ Foam::HashTable::printInfo(Ostream& os) const } +// * * * * * * * * * * * * * * * IOstream Functions * * * * * * * * * * * * // + +template +void Foam::writeEntry(Ostream& os, const HashTable& ht) +{ + os << ht; +} + + // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // template diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedList.H b/src/OpenFOAM/containers/Lists/FixedList/FixedList.H index b37d1724d1..d83f63b14d 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedList.H +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -54,6 +54,9 @@ namespace Foam template class FixedList; +template +void writeEntry(Ostream& os, const FixedList&); + template Istream& operator>>(Istream&, FixedList&); @@ -207,12 +210,6 @@ public: // needed to make FixedList consistent with List void transfer(const FixedList&); - //- Write the FixedList as a dictionary entry - void writeEntry(Ostream&) const; - - //- Write the FixedList as a dictionary entry with keyword - void writeEntry(const word& keyword, Ostream&) const; - // Member operators diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C b/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C index 1a3d8a7ce0..f7c653dd06 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,6 +29,15 @@ License #include "token.H" #include "contiguous.H" +// * * * * * * * * * * * * * * * IOstream Functions * * * * * * * * * * * * // + +template +void Foam::writeEntry(Ostream& os, const FixedList& l) +{ + writeListEntry(os, l); +} + + // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // template @@ -133,34 +142,6 @@ Foam::Istream& Foam::operator>>(Foam::Istream& is, FixedList& L) // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * // -template -void Foam::FixedList::writeEntry(Ostream& os) const -{ - if - ( - token::compound::isCompound("List<" + word(pTraits::typeName) + '>') - ) - { - os << word("List<" + word(pTraits::typeName) + '>') << " "; - } - - os << *this; -} - - -template -void Foam::FixedList::writeEntry -( - const word& keyword, - Ostream& os -) const -{ - os.writeKeyword(keyword); - writeEntry(os); - os << token::END_STATEMENT << endl; -} - - template Foam::Ostream& Foam::operator<<(Ostream& os, const FixedList& L) { diff --git a/src/OpenFOAM/containers/Lists/PackedList/PackedList.C b/src/OpenFOAM/containers/Lists/PackedList/PackedList.C index 2f615cec62..92dcb83cbe 100644 --- a/src/OpenFOAM/containers/Lists/PackedList/PackedList.C +++ b/src/OpenFOAM/containers/Lists/PackedList/PackedList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ License #if (UINT_MAX == 0xFFFFFFFF) // 32-bit counting, Hamming weight method - #define COUNT_PACKEDBITS(sum, x) \ +#define COUNT_PACKEDBITS(sum, x) \ { \ x -= (x >> 1) & 0x55555555; \ x = (x & 0x33333333) + ((x >> 2) & 0x33333333); \ @@ -39,7 +39,7 @@ License } #elif (UINT_MAX == 0xFFFFFFFFFFFFFFFF) // 64-bit counting, Hamming weight method - #define COUNT_PACKEDBITS(sum, x) \ +#define COUNT_PACKEDBITS(sum, x) \ { \ x -= (x >> 1) & 0x5555555555555555; \ x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333); \ @@ -490,26 +490,6 @@ Foam::Ostream& Foam::PackedList::write } -template -void Foam::PackedList::writeEntry(Ostream& os) const -{ - os << *this; -} - - -template -void Foam::PackedList::writeEntry -( - const word& keyword, - Ostream& os -) const -{ - os.writeKeyword(keyword); - writeEntry(os); - os << token::END_STATEMENT << endl; -} - - // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template @@ -546,6 +526,15 @@ void Foam::PackedList::operator=(const UIndirectList