fixedUnburntEnthalpyFvPatchScalarField.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "fixedUnburntEnthalpyFvPatchScalarField.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 #include "fvPatchFieldMapper.H"
00030 #include "volFields.H"
00031 #include "hhuCombustionThermo.H"
00032
00033
00034
00035 namespace Foam
00036 {
00037
00038
00039
00040 fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
00041 (
00042 const fvPatch& p,
00043 const DimensionedField<scalar, volMesh>& iF
00044 )
00045 :
00046 fixedValueFvPatchScalarField(p, iF)
00047 {}
00048
00049
00050 fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
00051 (
00052 const fixedUnburntEnthalpyFvPatchScalarField& ptf,
00053 const fvPatch& p,
00054 const DimensionedField<scalar, volMesh>& iF,
00055 const fvPatchFieldMapper& mapper
00056 )
00057 :
00058 fixedValueFvPatchScalarField(ptf, p, iF, mapper)
00059 {}
00060
00061
00062 fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
00063 (
00064 const fvPatch& p,
00065 const DimensionedField<scalar, volMesh>& iF,
00066 const dictionary& dict
00067 )
00068 :
00069 fixedValueFvPatchScalarField(p, iF, dict)
00070 {}
00071
00072
00073 fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
00074 (
00075 const fixedUnburntEnthalpyFvPatchScalarField& tppsf
00076 )
00077 :
00078 fixedValueFvPatchScalarField(tppsf)
00079 {}
00080
00081
00082 fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
00083 (
00084 const fixedUnburntEnthalpyFvPatchScalarField& tppsf,
00085 const DimensionedField<scalar, volMesh>& iF
00086 )
00087 :
00088 fixedValueFvPatchScalarField(tppsf, iF)
00089 {}
00090
00091
00092
00093
00094 void fixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
00095 {
00096 if (updated())
00097 {
00098 return;
00099 }
00100
00101 const hhuCombustionThermo& thermo = db().lookupObject<hhuCombustionThermo>
00102 (
00103 "thermophysicalProperties"
00104 );
00105
00106 const label patchi = patch().index();
00107
00108 fvPatchScalarField& Tw =
00109 const_cast<fvPatchScalarField&>(thermo.Tu().boundaryField()[patchi]);
00110 Tw.evaluate();
00111 operator==(thermo.hu(Tw, patchi));
00112
00113 fixedValueFvPatchScalarField::updateCoeffs();
00114 }
00115
00116
00117
00118
00119 makePatchTypeField(fvPatchScalarField, fixedUnburntEnthalpyFvPatchScalarField);
00120
00121
00122
00123 }
00124
00125
Copyright © 2000-2009 OpenCFD Ltd