fixedRhoFvPatchScalarField.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 "fixedRhoFvPatchScalarField.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 #include "fvPatchFieldMapper.H"
00030 #include "volFields.H"
00031 #include "surfaceFields.H"
00032 #include "fvCFD.H"
00033
00034
00035
00036 namespace Foam
00037 {
00038
00039
00040
00041 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
00042 (
00043 const fvPatch& p,
00044 const DimensionedField<scalar, volMesh>& iF
00045 )
00046 :
00047 fixedValueFvPatchScalarField(p, iF)
00048 {}
00049
00050
00051 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
00052 (
00053 const fixedRhoFvPatchScalarField& ptf,
00054 const fvPatch& p,
00055 const DimensionedField<scalar, volMesh>& iF,
00056 const fvPatchFieldMapper& mapper
00057 )
00058 :
00059 fixedValueFvPatchScalarField(ptf, p, iF, mapper)
00060 {}
00061
00062
00063 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
00064 (
00065 const fvPatch& p,
00066 const DimensionedField<scalar, volMesh>& iF,
00067 const dictionary& dict
00068 )
00069 :
00070 fixedValueFvPatchScalarField(p, iF, dict)
00071 {}
00072
00073
00074 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
00075 (
00076 const fixedRhoFvPatchScalarField& tppsf
00077 )
00078 :
00079 fixedValueFvPatchScalarField(tppsf)
00080 {}
00081
00082
00083 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
00084 (
00085 const fixedRhoFvPatchScalarField& tppsf,
00086 const DimensionedField<scalar, volMesh>& iF
00087 )
00088 :
00089 fixedValueFvPatchScalarField(tppsf, iF)
00090 {}
00091
00092
00093
00094
00095 void fixedRhoFvPatchScalarField::updateCoeffs()
00096 {
00097 if (updated())
00098 {
00099 return;
00100 }
00101
00102 const fvPatchField<scalar>& psip =
00103 patch().lookupPatchField<volScalarField, scalar>("psi");
00104
00105 const fvPatchField<scalar>& pp =
00106 patch().lookupPatchField<volScalarField, scalar>("p");
00107
00108 operator==(psip*pp);
00109
00110 fixedValueFvPatchScalarField::updateCoeffs();
00111 }
00112
00113
00114
00115
00116 makePatchTypeField(fvPatchScalarField, fixedRhoFvPatchScalarField);
00117
00118
00119
00120 }
00121
00122
Copyright © 2000-2009 OpenCFD Ltd