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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef cfdemCloudMS_H
00039 #define cfdemCloudMS_H
00040
00041 #include "cfdemCloud.H"
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048
00049
00050
00051 class cfdemCloudMS
00052 :
00053 public cfdemCloud
00054 {
00055 private:
00056
00057 mutable double **positionsCM_;
00058 mutable double **velocitiesCM_;
00059 mutable double **cellIDsCM_;
00060 mutable int **bodies_;
00061 mutable int **nrigids_;
00062
00063 mutable double **exCM_;
00064 mutable double **eyCM_;
00065 mutable double **ezCM_;
00066
00067 mutable double **VclumpCM_;
00068 mutable double **SclumpCM_;
00069
00070 mutable double **scalingCM_;
00071 mutable double **typeCM_;
00072
00073 mutable double **Cclump_ex_;
00074 mutable double **Cclump_ey_;
00075
00076 mutable double **impForcesCM_;
00077 mutable double **expForcesCM_;
00078 mutable double **DEMForcesCM_;
00079
00080 int numberOfClumps_;
00081 bool numberOfClumpsChanged_;
00082
00083 const wordList forceModels_;
00084 autoPtr<class forceModelMS>* forceModel_;
00085
00086
00087 void getDEMdata();
00088 void giveDEMdata();
00089 bool reAllocArrays() const;
00090 void setNumberOfParticles(int);
00091 void findCells();
00092 void setForces();
00093
00094 public:
00095
00096
00097
00098
00099 cfdemCloudMS
00100 (
00101 const fvMesh& mesh
00102 );
00103
00104
00105
00106 virtual ~cfdemCloudMS();
00107
00108
00109
00110
00111
00112 vector positionCM(int);
00113
00114 vector velocityCM(int);
00115
00116 label cellIDCM(int);
00117
00118 label body(int);
00119
00120 label nrigid(int);
00121
00122 inline double **& positionsCM() const;
00123
00124 inline double **& velocitiesCM() const;
00125
00126 inline double **& impForcesCM() const;
00127
00128 inline double **& expForcesCM() const;
00129
00130 inline double **& DEMForcesCM() const;
00131
00132 inline int numberOfClumps() const;
00133
00134 inline bool numberOfClumpsChanged() const;
00135
00136 const forceModel& forceM(int);
00137
00138 int nrForceModels();
00139
00140 bool evolve(volScalarField&,volVectorField&,volVectorField&);
00141 };
00142
00143
00144
00145
00146 }
00147
00148
00149
00150 #include "cfdemCloudMSI.H"
00151
00152 #endif
00153
00154