$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 THERMAL_DATA_ANALYSIS_3D_H 00032 #define THERMAL_DATA_ANALYSIS_3D_H 00033 00034 #include "core/globalDefs.h" 00035 #include "core/blockLatticeBase3D.h" 00036 #include "core/dataFieldBase3D.h" 00037 #include "atomicBlock/dataProcessorWrapper3D.h" 00038 #include "atomicBlock/reductiveDataProcessorWrapper3D.h" 00039 00040 namespace plb { 00041 00042 template< typename T, 00043 template<typename U1> class FluidDescriptor, 00044 template<typename U2> class TemperatureDescriptor 00045 > 00046 T computeNusseltNumber(BlockLattice3D<T,FluidDescriptor>& fluid, 00047 BlockLattice3D<T,TemperatureDescriptor>& temperature, 00048 Box3D domain, 00049 int direction, T deltaX, T kappa, T deltaTemperature); 00050 00051 template< typename T, 00052 template<typename U1> class FluidDescriptor, 00053 template<typename U2> class TemperatureDescriptor 00054 > 00055 T computeNusseltNumber(MultiBlockLattice3D<T,FluidDescriptor>& fluid, 00056 MultiBlockLattice3D<T,TemperatureDescriptor>& temperature, 00057 Box3D domain, 00058 int direction, T deltaX, T kappa, T deltaTemperature); 00059 00065 template< typename T, 00066 template<typename U1> class FluidDescriptor, 00067 template<typename U2> class TemperatureDescriptor 00068 > 00069 class BoxSumVelocityTemperatureFunctional3D : 00070 public ReductiveBoxProcessingFunctional3D_LL<T,FluidDescriptor,T,TemperatureDescriptor> 00071 { 00072 public: 00073 BoxSumVelocityTemperatureFunctional3D(int direction_); 00074 virtual void process(Box3D domain, 00075 BlockLattice3D<T,FluidDescriptor>& fluid, 00076 BlockLattice3D<T,TemperatureDescriptor>& temperature); 00077 virtual BoxSumVelocityTemperatureFunctional3D<T,FluidDescriptor,TemperatureDescriptor>* clone() const; 00078 virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const { 00079 modified[0] = modif::nothing; 00080 modified[1] = modif::nothing; 00081 } 00082 T getSumVelocityTemperature() const; 00083 private: 00084 int direction; 00085 plint sumVelocityTemperatureId; 00086 }; 00087 00088 } // namespace plb 00089 00090 #endif // THERMAL_DATA_ANALYSIS_3D_H
1.6.3
1.6.3