$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 00028 #ifndef BOUSSINESQ_THERMAL_PROCESSOR_3D_H 00029 #define BOUSSINESQ_THERMAL_PROCESSOR_3D_H 00030 00031 #include "core/globalDefs.h" 00032 #include "core/block3D.h" 00033 #include "atomicBlock/dataProcessor3D.h" 00034 #include "atomicBlock/blockLattice3D.h" 00035 00036 namespace plb { 00037 00042 template< typename T, 00043 template<typename U1> class FluidDescriptor, 00044 template<typename U2> class TemperatureDescriptor 00045 > 00046 class BoussinesqThermalProcessor3D : 00047 public BoxProcessingFunctional3D_LL<T,FluidDescriptor,T,TemperatureDescriptor> 00048 { 00049 public: 00050 00051 BoussinesqThermalProcessor3D(T gravity_, T T0_, T deltaTemp_, 00052 Array<T,FluidDescriptor<T>::d> dir_); 00053 00054 virtual void process( Box3D domain, 00055 BlockLattice3D<T,FluidDescriptor>& fluid, 00056 BlockLattice3D<T,TemperatureDescriptor>& temperature ); 00057 virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const { 00058 modified[0] = modif::staticVariables; 00059 modified[1] = modif::staticVariables; 00060 } 00061 virtual BoussinesqThermalProcessor3D<T,FluidDescriptor,TemperatureDescriptor>* clone() const; 00062 00063 private: 00064 T gravity, T0, deltaTemp; 00065 Array<T,FluidDescriptor<T>::d> dir; 00066 }; 00067 00068 /* 00069 template< typename T, 00070 template<typename U1> class FluidDescriptor, 00071 template<typename U2> class TemperatureDescriptor 00072 > 00073 class SmagorinskyBoussinesqThermalProcessor3D : 00074 public BoxProcessingFunctional3D_LL<T,FluidDescriptor,T,TemperatureDescriptor> 00075 { 00076 public: 00077 SmagorinskyBoussinesqThermalProcessor3D ( 00078 T gravity_, T T0_, T deltaTemp_, Array<T,FluidDescriptor<T>::d> dir_, 00079 T cSmagoFluid_, T cSmagoTemp_ ) 00080 00081 virtual void process( Box3D domain, 00082 BlockLattice3D<T,FluidDescriptor>& fluid, 00083 BlockLattice3D<T,TemperatureDescriptor>& temperature ); 00084 virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const { 00085 modified[0] = modif::staticVariables; 00086 modified[1] = modif::staticVariables; 00087 } 00088 virtual SmagorinskyBoussinesqThermalProcessor3D<T,FluidDescriptor,TemperatureDescriptor>* clone() const; 00089 private: 00090 T gravity, T0, deltaTemp; 00091 Array<T,FluidDescriptor<T>::d> dir; 00092 T cSmagoFluid, T cSmagoTemp; 00093 }; 00094 */ 00095 00101 template< typename T, template<typename U> class TemperatureDescriptor > 00102 class VelocityToPassiveAdvDiff3D : 00103 public BoxProcessingFunctional3D_LT<T,TemperatureDescriptor,T,3> 00104 { 00105 public: 00106 00107 virtual void process( Box3D domain, 00108 BlockLattice3D<T,TemperatureDescriptor>& temperature, 00109 TensorField3D<T,3>& velocity ); 00110 virtual VelocityToPassiveAdvDiff3D<T,TemperatureDescriptor>* clone() const; 00111 00112 }; 00113 00114 00120 template< typename T, 00121 template<typename U1> class FluidDescriptor, 00122 template<typename U2> class ScalarDescriptor 00123 > 00124 class LatticeToPassiveAdvDiff3D : 00125 public BoxProcessingFunctional3D_LL<T,FluidDescriptor,T,ScalarDescriptor> 00126 { 00127 public: 00128 LatticeToPassiveAdvDiff3D(T scaling_=1.); 00129 virtual void process( Box3D domain, 00130 BlockLattice3D<T,FluidDescriptor>& fluid, 00131 BlockLattice3D<T,ScalarDescriptor>& scalar ); 00132 virtual LatticeToPassiveAdvDiff3D<T,FluidDescriptor,ScalarDescriptor>* clone() const; 00133 virtual BlockDomain::DomainT appliesTo() const; 00134 void getTypeOfModification(std::vector<modif::ModifT>& modified) const; 00135 private: 00136 T scaling; 00137 }; 00138 00139 } // namespace plb 00140 00141 #endif // BOUSSINESQ_THERMAL_PROCESSOR_3D_H
1.6.3
1.6.3