/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2016-2017 Wikki Ltd ------------------------------------------------------------------------------- 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 3 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, see . \*---------------------------------------------------------------------------*/ #include "zeroGradientFaPatchField.H" #include "faPatchFieldMapper.H" // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template Foam::zeroGradientFaPatchField::zeroGradientFaPatchField ( const faPatch& p, const DimensionedField& iF ) : faPatchField(p, iF) {} template Foam::zeroGradientFaPatchField::zeroGradientFaPatchField ( const zeroGradientFaPatchField& ptf, const faPatch& p, const DimensionedField& iF, const faPatchFieldMapper& mapper ) : faPatchField(ptf, p, iF, mapper) {} template Foam::zeroGradientFaPatchField::zeroGradientFaPatchField ( const faPatch& p, const DimensionedField& iF, const dictionary& dict ) : faPatchField(p, iF, dict, IOobjectOption::NO_READ) { faPatchField::extrapolateInternal(); // Zero-gradient patch values } template Foam::zeroGradientFaPatchField::zeroGradientFaPatchField ( const zeroGradientFaPatchField& zgpf ) : faPatchField(zgpf) {} template Foam::zeroGradientFaPatchField::zeroGradientFaPatchField ( const zeroGradientFaPatchField& zgpf, const DimensionedField& iF ) : faPatchField(zgpf, iF) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template void Foam::zeroGradientFaPatchField::evaluate(const Pstream::commsTypes) { if (!this->updated()) { this->updateCoeffs(); } faPatchField::extrapolateInternal(); // Zero-gradient patch values faPatchField::evaluate(); } template Foam::tmp> Foam::zeroGradientFaPatchField::valueInternalCoeffs ( const tmp& ) const { return tmp>::New(this->size(), pTraits::one); } template Foam::tmp> Foam::zeroGradientFaPatchField::valueBoundaryCoeffs ( const tmp& ) const { return tmp>::New(this->size(), Zero); } template Foam::tmp> Foam::zeroGradientFaPatchField::gradientInternalCoeffs() const { return tmp>::New(this->size(), Zero); } template Foam::tmp> Foam::zeroGradientFaPatchField::gradientBoundaryCoeffs() const { return tmp>::New(this->size(), Zero); } // ************************************************************************* //