uniformFixedGradientFvPatchField: Corrected constructor
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1827
This commit is contained in:
parent
d6ca7f7740
commit
e7e54e156c
2 changed files with 13 additions and 20 deletions
|
|
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue