30 #include "twoPhaseSystem.H" 43 const DimensionedField<scalar, volMesh>& iF
46 fixedValueFvPatchScalarField(p, iF),
56 const DimensionedField<scalar, volMesh>& iF,
57 const dictionary&
dict 60 fixedValueFvPatchScalarField(p, iF, dict),
61 q_(
"q", dict, p.size()),
62 relax_(dict.lookupOrDefault<scalar>(
"relax", 1.0))
69 const fixedMultiPhaseHeatFluxFvPatchScalarField& psf,
71 const DimensionedField<scalar, volMesh>& iF,
72 const fvPatchFieldMapper& mapper
75 fixedValueFvPatchScalarField(psf, p, iF, mapper),
84 const fixedMultiPhaseHeatFluxFvPatchScalarField& psf
87 fixedValueFvPatchScalarField(psf),
96 const fixedMultiPhaseHeatFluxFvPatchScalarField& psf,
97 const DimensionedField<scalar, volMesh>& iF
100 fixedValueFvPatchScalarField(psf, iF),
117 const ThermalPhaseChangePhaseSystem
119 MomentumTransferPhaseSystem<twoPhaseSystem>
123 const ThermalPhaseChangePhaseSystem
125 MomentumTransferPhaseSystem<twoPhaseSystem>
129 db().lookupObject<phaseSystem>(
"phaseProperties")
141 const fluidThermo& thermo = phase.thermo();
144 phase.boundaryField()[patch().index()];
147 thermo.T().boundaryField()[patch().index()];
153 phase.turbulence().alphat(patch().index()),
163 Info<< patch().name() <<
" " << phase.name()
164 <<
": Heat flux " <<
gMin(q0) <<
" - " <<
gMax(q0) <<
endl;
167 A += T.patchInternalField()*alpha*kappaEff*patch().deltaCoeffs();
168 B += alpha*kappaEff*patch().deltaCoeffs();
173 Info<< patch().name() <<
" " <<
": overall heat flux " 177 operator==((1 - relax_)*Tp + relax_*(q_ + A)/(B));
179 fixedValueFvPatchScalarField::updateCoeffs();
187 q_.writeEntry(
"q", os);
188 writeEntry(
"value", os);
199 fixedMultiPhaseHeatFluxFvPatchScalarField
#define forAll(list, i)
Loop across all elements in list.
Type gMin(const FieldField< Field, Type > &f)
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
fixedMultiPhaseHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
fvPatchField< scalar > fvPatchScalarField
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
Type gMax(const FieldField< Field, Type > &f)
virtual void write(Ostream &) const
Write.