/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2024 OpenCFD 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 "fixedValueFvsPatchField.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fvPatch& p,
const DimensionedField& iF
)
:
fvsPatchField(p, iF)
{}
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fvPatch& p,
const DimensionedField& iF,
const Type& value
)
:
fvsPatchField(p, iF, value)
{}
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fvPatch& p,
const DimensionedField& iF,
const dictionary& dict,
IOobjectOption::readOption requireValue
)
:
fvsPatchField(p, iF, dict, IOobjectOption::MUST_READ)
{}
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fixedValueFvsPatchField& ptf,
const fvPatch& p,
const DimensionedField& iF,
const fvPatchFieldMapper& mapper
)
:
fvsPatchField(ptf, p, iF, mapper)
{}
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fixedValueFvsPatchField& ptf,
const DimensionedField& iF
)
:
fvsPatchField(ptf, iF)
{}
template
Foam::fixedValueFvsPatchField::fixedValueFvsPatchField
(
const fixedValueFvsPatchField& ptf
)
:
fixedValueFvsPatchField(ptf, ptf.internalField())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
Foam::tmp>
Foam::fixedValueFvsPatchField::valueInternalCoeffs
(
const tmp&
) const
{
return tmp>::New(this->size(), Foam::zero{});
}
template
Foam::tmp>
Foam::fixedValueFvsPatchField::valueBoundaryCoeffs
(
const tmp&
) const
{
return *this;
}
template
Foam::tmp>
Foam::fixedValueFvsPatchField::gradientInternalCoeffs() const
{
return -pTraits::one*this->patch().deltaCoeffs();
}
template
Foam::tmp>
Foam::fixedValueFvsPatchField::gradientBoundaryCoeffs() const
{
return this->patch().deltaCoeffs()*(*this);
}
template
void Foam::fixedValueFvsPatchField::write(Ostream& os) const
{
fvsPatchField::write(os);
fvsPatchField::writeValueEntry(os);
}
// ************************************************************************* //