uniformFixedGradientFvPatchField: Corrected constructor

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1827
This commit is contained in:
Henry Weller 2015-08-13 19:09:57 +01:00
parent d6ca7f7740
commit e7e54e156c
2 changed files with 13 additions and 20 deletions

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -25,15 +25,10 @@ License
#include "uniformFixedGradientFvPatchField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -45,7 +40,7 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -58,7 +53,7 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const uniformFixedGradientFvPatchField<Type>& ptf,
const fvPatch& p,
@ -76,7 +71,7 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -95,11 +90,13 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
const scalar t = this->db().time().timeOutputValue();
this->gradient() = uniformGradient_->value(t);
}
fixedGradientFvPatchField<Type>::evaluate();
}
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const uniformFixedGradientFvPatchField<Type>& ptf
)
@ -115,7 +112,7 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
template<class Type>
uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
(
const uniformFixedGradientFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -142,7 +139,7 @@ uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void uniformFixedGradientFvPatchField<Type>::updateCoeffs()
void Foam::uniformFixedGradientFvPatchField<Type>::updateCoeffs()
{
if (this->updated())
{
@ -157,7 +154,7 @@ void uniformFixedGradientFvPatchField<Type>::updateCoeffs()
template<class Type>
void uniformFixedGradientFvPatchField<Type>::write(Ostream& os) const
void Foam::uniformFixedGradientFvPatchField<Type>::write(Ostream& os) const
{
fixedGradientFvPatchField<Type>::write(os);
uniformGradient_->writeData(os);
@ -165,8 +162,4 @@ void uniformFixedGradientFvPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,7 @@ namespace Foam
template<class Type> class uniformFixedGradientFvPatchField;
makePatchTypeFieldTypedefs(uniform);
makePatchTypeFieldTypedefs(uniformFixedGradient);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //