1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "multiphaseAlphaContactAngleFvPatchScalarField.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "fvPatchFieldMapper.H"
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 Foam::multiphaseAlphaContactAngleFvPatchScalarField::
33 interfaceThetaProps::interfaceThetaProps
38 theta0_(readScalar(is)),
39 uTheta_(readScalar(is)),
40 thetaA_(readScalar(is)),
41 thetaR_(readScalar(is))
45 Foam::Istream& Foam::operator>>
48 multiphaseAlphaContactAngleFvPatchScalarField::interfaceThetaProps& tp
51 is >> tp.theta0_ >> tp.uTheta_ >> tp.thetaA_ >> tp.thetaR_;
56 Foam::Ostream& Foam::operator<<
60 multiphaseAlphaContactAngleFvPatchScalarField::interfaceThetaProps& tp
63 os << tp.theta0_ << token::SPACE
64 << tp.uTheta_ << token::SPACE
65 << tp.thetaA_ << token::SPACE
72 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
74 Foam::multiphaseAlphaContactAngleFvPatchScalarField::
75 multiphaseAlphaContactAngleFvPatchScalarField
78 const DimensionedField<scalar, volMesh>& iF
81 zeroGradientFvPatchScalarField(p, iF)
85 Foam::multiphaseAlphaContactAngleFvPatchScalarField::
86 multiphaseAlphaContactAngleFvPatchScalarField
88 const multiphaseAlphaContactAngleFvPatchScalarField& gcpsf,
90 const DimensionedField<scalar, volMesh>& iF,
91 const fvPatchFieldMapper& mapper
94 zeroGradientFvPatchScalarField(gcpsf, p, iF, mapper),
95 thetaProps_(gcpsf.thetaProps_)
99 Foam::multiphaseAlphaContactAngleFvPatchScalarField::
100 multiphaseAlphaContactAngleFvPatchScalarField
103 const DimensionedField<scalar, volMesh>& iF,
104 const dictionary& dict
107 zeroGradientFvPatchScalarField(p, iF),
108 thetaProps_(dict.lookup("thetaProperties"))
114 Foam::multiphaseAlphaContactAngleFvPatchScalarField::
115 multiphaseAlphaContactAngleFvPatchScalarField
117 const multiphaseAlphaContactAngleFvPatchScalarField& gcpsf,
118 const DimensionedField<scalar, volMesh>& iF
121 zeroGradientFvPatchScalarField(gcpsf, iF),
122 thetaProps_(gcpsf.thetaProps_)
126 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
129 Foam::multiphaseAlphaContactAngleFvPatchScalarField::write
134 fvPatchScalarField::write(os);
135 os.writeKeyword("thetaProperties")
136 << thetaProps_ << token::END_STATEMENT << nl;
137 writeEntry("value", os);
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 multiphaseAlphaContactAngleFvPatchScalarField
152 } // End namespace Foam
154 // ************************************************************************* //