|
|
|
fixedRhoEFvPatchScalarField.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 \*---------------------------------------------------------------------------*/ 00026 00027 #ifndef fixedRhoEFvPatchScalarField_H 00028 #define fixedRhoEFvPatchScalarField_H 00029 00030 #include "fixedValueFvPatchFields.H" 00031 00032 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00033 00034 namespace Foam 00035 { 00036 00037 /*---------------------------------------------------------------------------*\ 00038 Class fixedRhoEFvPatch Declaration 00039 \*---------------------------------------------------------------------------*/ 00040 00041 class fixedRhoEFvPatchScalarField 00042 : 00043 public fixedValueFvPatchScalarField 00044 { 00045 00046 public: 00047 00048 //- Runtime type information 00049 TypeName("fixedRhoE"); 00050 00051 00052 // Constructors 00053 00054 //- Construct from patch and internal field 00055 fixedRhoEFvPatchScalarField 00056 ( 00057 const fvPatch&, 00058 const DimensionedField<scalar, volMesh>& 00059 ); 00060 00061 //- Construct from patch, internal field and dictionary 00062 fixedRhoEFvPatchScalarField 00063 ( 00064 const fvPatch&, 00065 const DimensionedField<scalar, volMesh>&, 00066 const dictionary& 00067 ); 00068 00069 //- Construct by mapping given fixedRhoEFvPatchScalarField 00070 // onto a new patch 00071 fixedRhoEFvPatchScalarField 00072 ( 00073 const fixedRhoEFvPatchScalarField&, 00074 const fvPatch&, 00075 const DimensionedField<scalar, volMesh>&, 00076 const fvPatchFieldMapper& 00077 ); 00078 00079 //- Construct as copy 00080 fixedRhoEFvPatchScalarField 00081 ( 00082 const fixedRhoEFvPatchScalarField& 00083 ); 00084 00085 //- Construct and return a clone 00086 virtual tmp<fvPatchScalarField> clone() const 00087 { 00088 return tmp<fvPatchScalarField> 00089 ( 00090 new fixedRhoEFvPatchScalarField(*this) 00091 ); 00092 } 00093 00094 //- Construct as copy setting internal field reference 00095 fixedRhoEFvPatchScalarField 00096 ( 00097 const fixedRhoEFvPatchScalarField&, 00098 const DimensionedField<scalar, volMesh>& 00099 ); 00100 00101 //- Construct and return a clone setting internal field reference 00102 virtual tmp<fvPatchScalarField> clone 00103 ( 00104 const DimensionedField<scalar, volMesh>& iF 00105 ) const 00106 { 00107 return tmp<fvPatchScalarField> 00108 ( 00109 new fixedRhoEFvPatchScalarField(*this, iF) 00110 ); 00111 } 00112 00113 00114 // Member functions 00115 00116 // Access 00117 00118 // Evaluation functions 00119 00120 //- Update the coefficients associated with the patch field 00121 virtual void updateCoeffs(); 00122 00123 //- Write 00124 virtual void write(Ostream&) const; 00125 }; 00126 00127 00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00129 00130 } // End namespace Foam 00131 00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00133 00134 #endif 00135 00136 // ************************************************************************* // |