00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2005 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 Class 00026 LaEuScalarDust 00027 00028 Description 00029 two way LaEu Scalar Exchange between DEM and CFD 00030 00031 \*---------------------------------------------------------------------------*/ 00032 00033 #ifndef LaEuScalarDust_H 00034 #define LaEuScalarDust_H 00035 00036 #include "forceModel.H" 00037 #include "regionModel.H" 00038 #include "averagingModel.H" 00039 00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00041 00042 namespace Foam 00043 { 00044 00045 /*---------------------------------------------------------------------------*\ 00046 Class LaEuScalarDust Declaration 00047 \*---------------------------------------------------------------------------*/ 00048 00049 class LaEuScalarDust 00050 : 00051 public forceModel 00052 { 00053 private: 00054 00055 dictionary propsDict_; 00056 00057 /* word dustFieldName_; 00058 00059 const volScalarField& dustField_; // ref to dust field 00060 00061 word dustSourceFieldName_; 00062 00063 const volScalarField& dustSourceField_; // ref to dust source field*/ 00064 00065 word velFieldName_; 00066 00067 const volVectorField& U_; 00068 00069 word partAccelerationName_; 00070 00071 mutable double **partAcceleration_; // Lagrangian array 00072 00073 word partDustFluxName_; 00074 00075 mutable double **partDustFlux_; // Lagrangian array 00076 00077 scalar velModelParam_; 00078 00079 scalar accModelParam_; 00080 00081 void allocateMyArrays() const; 00082 00083 public: 00084 00085 //- Runtime type information 00086 TypeName("LaEuScalarDust"); 00087 00088 // Constructors 00089 00090 //- Construct from components 00091 LaEuScalarDust 00092 ( 00093 const dictionary& dict, 00094 cfdemCloud& sm 00095 ); 00096 00097 // Destructor 00098 00099 ~LaEuScalarDust(); 00100 00101 00102 // Member Functions 00103 void setForce 00104 ( 00105 double** const& mask, 00106 double**&, 00107 double**&, 00108 double**& 00109 ) const; 00110 00111 void manipulateScalarField(volScalarField&) const; 00112 }; 00113 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 } // End namespace Foam 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 #endif 00122 00123 // ************************************************************************* //