/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \*---------------------------------------------------------------------------*/ #include "zeroGradientFvPatchField.H" #include "fvPatchFieldMapper.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template zeroGradientFvPatchField::zeroGradientFvPatchField ( const fvPatch& p, const DimensionedField& iF ) : fvPatchField(p, iF) {} template zeroGradientFvPatchField::zeroGradientFvPatchField ( const zeroGradientFvPatchField& ptf, const fvPatch& p, const DimensionedField& iF, const fvPatchFieldMapper& mapper ) : fvPatchField(ptf, p, iF, mapper) {} template zeroGradientFvPatchField::zeroGradientFvPatchField ( const fvPatch& p, const DimensionedField& iF, const dictionary& dict ) : fvPatchField(p, iF, dict) { fvPatchField::operator=(this->patchInternalField()); } template zeroGradientFvPatchField::zeroGradientFvPatchField ( const zeroGradientFvPatchField& zgpf ) : fvPatchField(zgpf) {} template zeroGradientFvPatchField::zeroGradientFvPatchField ( const zeroGradientFvPatchField& zgpf, const DimensionedField& iF ) : fvPatchField(zgpf, iF) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template void zeroGradientFvPatchField::evaluate(const Pstream::commsTypes) { if (!this->updated()) { this->updateCoeffs(); } fvPatchField::operator==(this->patchInternalField()); fvPatchField::evaluate(); } template tmp > zeroGradientFvPatchField::valueInternalCoeffs ( const tmp& ) const { return tmp > ( new Field(this->size(), pTraits::one) ); } template tmp > zeroGradientFvPatchField::valueBoundaryCoeffs ( const tmp& ) const { return tmp > ( new Field(this->size(), pTraits::zero) ); } template tmp > zeroGradientFvPatchField::gradientInternalCoeffs() const { return tmp > ( new Field(this->size(), pTraits::zero) ); } template tmp > zeroGradientFvPatchField::gradientBoundaryCoeffs() const { return tmp > ( new Field(this->size(), pTraits::zero) ); } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // ************************************************************************* //