|
|
|
FreeStream.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) 2009-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 Class 00026 Foam::FreeStream 00027 00028 Description 00029 Inserting new particles across the faces of a all patched of type 00030 "patch" for a free stream. Uniform values number density, temperature 00031 and velocity sourced face-by-face from the boundaryT and boundaryU fields 00032 of the cloud. 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef FreeStream_H 00037 #define FreeStream_H 00038 00039 #include "InflowBoundaryModel.H" 00040 #include "polyMesh.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 /*---------------------------------------------------------------------------*\ 00047 Class FreeStream Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 template<class CloudType> 00051 class FreeStream 00052 : 00053 public InflowBoundaryModel<CloudType> 00054 { 00055 // Private data 00056 00057 //- The indices of patches to introduce molecules across 00058 labelList patches_; 00059 00060 //- The molecule types to be introduced 00061 List<label> moleculeTypeIds_; 00062 00063 //- The number density of the species in the inflow 00064 Field<scalar> numberDensities_; 00065 00066 //- A List of Lists of Fields specifying carry-over of mass flux from 00067 // one timestep to the next 00068 // + Outer List - one inner List for each patch 00069 // + Inner List - one Field for every species to be introduced 00070 // + Each field entry corresponding to a face to be injected across 00071 // with a particular species 00072 List<List<Field<scalar> > > particleFluxAccumulators_; 00073 00074 00075 public: 00076 00077 //- Runtime type information 00078 TypeName("FreeStream"); 00079 00080 00081 // Constructors 00082 00083 //- Construct from dictionary 00084 FreeStream 00085 ( 00086 const dictionary& dict, 00087 CloudType& cloud 00088 ); 00089 00090 00091 // Destructor 00092 virtual ~FreeStream(); 00093 00094 00095 // Member Functions 00096 00097 //- Introduce particles 00098 virtual void inflow(); 00099 }; 00100 00101 00102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00103 00104 } // End namespace Foam 00105 00106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00107 00108 #ifdef NoRepository 00109 # include "FreeStream.C" 00110 #endif 00111 00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00113 00114 #endif 00115 00116 // ************************************************************************* // |