/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2020 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 "acousticWaveTransmissiveFvPatchField.H" #include "addToRunTimeSelectionTable.H" #include "fvPatchFieldMapper.H" #include "volFields.H" #include "EulerDdtScheme.H" #include "CrankNicolsonDdtScheme.H" #include "backwardDdtScheme.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template Foam::acousticWaveTransmissiveFvPatchField::acousticWaveTransmissiveFvPatchField ( const fvPatch& p, const DimensionedField& iF ) : advectiveFvPatchField(p, iF), advectiveU_(0) {} template Foam::acousticWaveTransmissiveFvPatchField::acousticWaveTransmissiveFvPatchField ( const acousticWaveTransmissiveFvPatchField& ptf, const fvPatch& p, const DimensionedField& iF, const fvPatchFieldMapper& mapper ) : advectiveFvPatchField(ptf, p, iF, mapper), advectiveU_(ptf.advectiveU_) {} template Foam::acousticWaveTransmissiveFvPatchField::acousticWaveTransmissiveFvPatchField ( const fvPatch& p, const DimensionedField& iF, const dictionary& dict ) : advectiveFvPatchField(p, iF, dict), advectiveU_(dict.get("advectiveSpeed")) {} template Foam::acousticWaveTransmissiveFvPatchField::acousticWaveTransmissiveFvPatchField ( const acousticWaveTransmissiveFvPatchField& ptpsf ) : advectiveFvPatchField(ptpsf), advectiveU_(ptpsf.advectiveU_) {} template Foam::acousticWaveTransmissiveFvPatchField::acousticWaveTransmissiveFvPatchField ( const acousticWaveTransmissiveFvPatchField& ptpsf, const DimensionedField& iF ) : advectiveFvPatchField(ptpsf, iF), advectiveU_(ptpsf.advectiveU_) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template Foam::tmp Foam::acousticWaveTransmissiveFvPatchField::advectionSpeed() const { return tmp::New(this->size(), advectiveU_); } template void Foam::acousticWaveTransmissiveFvPatchField::write(Ostream& os) const { fvPatchField::write(os); os.writeEntry("advectiveSpeed", advectiveU_); fvPatchField::writeValueEntry(os); } // ************************************************************************* //