/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2007-2022 PCOpt/NTUA Copyright (C) 2013-2022 FOSS GP ------------------------------------------------------------------------------- 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 "adjointOutletFluxFvPatchField.H" #include "addToRunTimeSelectionTable.H" #include "volFields.H" #include "fvPatchFieldMapper.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template Foam::adjointOutletFluxFvPatchField::adjointOutletFluxFvPatchField ( const fvPatch& p, const DimensionedField& iF ) : fixedValueFvPatchField(p, iF) {} template Foam::adjointOutletFluxFvPatchField::adjointOutletFluxFvPatchField ( const adjointOutletFluxFvPatchField& ptf, const fvPatch& p, const DimensionedField& iF, const fvPatchFieldMapper& mapper ) : fixedValueFvPatchField(ptf, p, iF, mapper) {} template Foam::adjointOutletFluxFvPatchField::adjointOutletFluxFvPatchField ( const fvPatch& p, const DimensionedField& iF, const dictionary& dict ) : fixedValueFvPatchField(p, iF, dict, IOobjectOption::MUST_READ) {} template Foam::adjointOutletFluxFvPatchField::adjointOutletFluxFvPatchField ( const adjointOutletFluxFvPatchField& tppsf, const DimensionedField& iF ) : fixedValueFvPatchField(tppsf, iF) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template void Foam::adjointOutletFluxFvPatchField::updateCoeffs() { if (this->updated()) { return; } this->operator==(Field(this->patch().size(), Zero)); fixedValueFvPatchField::updateCoeffs(); } template Foam::tmp> Foam::adjointOutletFluxFvPatchField::valueInternalCoeffs ( const tmp& ) const { return tmp>::New(this->size(), Zero); } template Foam::tmp> Foam::adjointOutletFluxFvPatchField::valueBoundaryCoeffs ( const tmp& ) const { return tmp>::New(this->size(), Zero); } template Foam::tmp> Foam::adjointOutletFluxFvPatchField::gradientBoundaryCoeffs() const { return tmp>::New(this->size(), Zero); } template Foam::tmp> Foam::adjointOutletFluxFvPatchField::gradientInternalCoeffs() const { return tmp>::New(this->size(), Zero); } template void Foam::adjointOutletFluxFvPatchField::write(Ostream& os) const { fvPatchField::write(os); fvPatchField::writeValueEntry(os); } // ************************************************************************* //