$treeview $search $mathjax
|
Palabos
Version 1.1
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /* This file is part of the Palabos library. 00002 * 00003 * Copyright (C) 2011 FlowKit Sarl 00004 * Avenue de Chailly 23 00005 * 1012 Lausanne, Switzerland 00006 * E-mail contact: contact@flowkit.com 00007 * 00008 * The most recent release of Palabos can be downloaded at 00009 * <http://www.palabos.org/> 00010 * 00011 * The library Palabos is free software: you can redistribute it and/or 00012 * modify it under the terms of the GNU Affero General Public License as 00013 * published by the Free Software Foundation, either version 3 of the 00014 * License, or (at your option) any later version. 00015 * 00016 * The library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Affero General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Affero General Public License 00022 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 /* Main author: Orestis Malaspinas 00026 */ 00027 00031 #ifndef EXTERNAL_FORCE_DYNAMICS_H 00032 #define EXTERNAL_FORCE_DYNAMICS_H 00033 00034 #include "core/globalDefs.h" 00035 #include "core/dynamics.h" 00036 #include "basicDynamics/isoThermalDynamics.h" 00037 00038 namespace plb { 00039 00043 template<typename T, template<typename U> class Descriptor> 00044 class ExternalForceDynamics : public IsoThermalBulkDynamics<T,Descriptor> { 00045 public: 00046 /* *************** Construction / Destruction ************************ */ 00047 ExternalForceDynamics(T omega_); 00048 00049 /* *************** Velocity computation ************************* */ 00050 00052 virtual void computeVelocity( Cell<T,Descriptor> const& cell, 00053 Array<T,Descriptor<T>::d>& u ) const; 00054 }; 00055 00056 00058 template<typename T, template<typename U> class Descriptor> 00059 class NaiveExternalForceBGKdynamics : public ExternalForceDynamics<T,Descriptor> { 00060 public: 00061 /* *************** Construction / Destruction ************************ */ 00062 NaiveExternalForceBGKdynamics(T omega_); 00063 00065 virtual NaiveExternalForceBGKdynamics<T,Descriptor>* clone() const; 00066 00068 virtual int getId() const; 00069 00070 /* *************** Collision and Equilibrium ************************* */ 00071 00073 virtual void collide(Cell<T,Descriptor>& cell, 00074 BlockStatistics& statistics_); 00075 00077 virtual T computeEquilibrium(plint iPop, T rhoBar, Array<T,Descriptor<T>::d> const& j, 00078 T jSqr, T thetaBar=T()) const; 00079 private: 00080 static int id; 00081 }; 00082 00084 template<typename T, template<typename U> class Descriptor> 00085 class GuoExternalForceBGKdynamics : public ExternalForceDynamics<T,Descriptor> { 00086 public: 00087 /* *************** Construction / Destruction ************************ */ 00088 GuoExternalForceBGKdynamics(T omega_); 00089 00091 virtual GuoExternalForceBGKdynamics<T,Descriptor>* clone() const; 00092 00094 virtual int getId() const; 00095 00096 /* *************** Collision and Equilibrium ************************* */ 00097 00099 virtual void collide(Cell<T,Descriptor>& cell, 00100 BlockStatistics& statistics_); 00101 00103 virtual T computeEquilibrium(plint iPop, T rhoBar, Array<T,Descriptor<T>::d> const& j, 00104 T jSqr, T thetaBar=T()) const; 00105 private: 00106 static int id; 00107 }; 00108 00110 template<typename T, template<typename U> class Descriptor> 00111 class ShanChenExternalForceBGKdynamics : public ExternalForceDynamics<T,Descriptor> { 00112 public: 00113 /* *************** Construction / Destruction ************************ */ 00114 ShanChenExternalForceBGKdynamics(T omega_); 00115 00117 virtual ShanChenExternalForceBGKdynamics<T,Descriptor>* clone() const; 00118 00120 virtual int getId() const; 00121 00122 /* *************** Collision and Equilibrium ************************* */ 00123 00125 virtual void collide(Cell<T,Descriptor>& cell, 00126 BlockStatistics& statistics_); 00127 00129 virtual T computeEquilibrium(plint iPop, T rhoBar, Array<T,Descriptor<T>::d> const& j, 00130 T jSqr, T thetaBar=T()) const; 00131 private: 00132 static int id; 00133 }; 00134 00136 template<typename T, template<typename U> class Descriptor> 00137 class HeExternalForceBGKdynamics : public ExternalForceDynamics<T,Descriptor> { 00138 public: 00139 /* *************** Construction / Destruction ************************ */ 00140 HeExternalForceBGKdynamics(T omega_); 00141 00143 virtual HeExternalForceBGKdynamics<T,Descriptor>* clone() const; 00144 00146 virtual int getId() const; 00147 00148 /* *************** Collision and Equilibrium ************************* */ 00149 00151 virtual void collide(Cell<T,Descriptor>& cell, 00152 BlockStatistics& statistics_); 00153 00155 virtual T computeEquilibrium(plint iPop, T rhoBar, Array<T,Descriptor<T>::d> const& j, 00156 T jSqr, T thetaBar=T()) const; 00157 private: 00158 static int id; 00159 }; 00160 00161 00163 template<typename T, template<typename U> class Descriptor> 00164 class IncGuoExternalForceBGKdynamics : public ExternalForceDynamics<T,Descriptor> { 00165 public: 00166 /* *************** Construction / Destruction ************************ */ 00167 IncGuoExternalForceBGKdynamics(T omega_); 00168 00170 virtual IncGuoExternalForceBGKdynamics<T,Descriptor>* clone() const; 00171 00173 virtual int getId() const; 00174 00175 /* *************** Collision and Equilibrium ************************* */ 00176 00178 virtual void collide(Cell<T,Descriptor>& cell, 00179 BlockStatistics& statistics_); 00180 00182 virtual T computeEquilibrium(plint iPop, T rhoBar, Array<T,Descriptor<T>::d> const& j, 00183 T jSqr, T thetaBar=T()) const; 00184 00186 virtual bool velIsJ() const; 00187 private: 00188 static int id; 00189 }; 00190 00191 } // namespace plb 00192 00193 #endif // EXTERNAL_FORCE_DYNAMICS_H
1.6.3
1.6.3