$treeview $search $mathjax
Palabos  Version 1.1
$projectbrief
$projectbrief
$searchbox

thermalDataAnalysis2D.h

Go to the documentation of this file.
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_2D_H
00032 #define THERMAL_DATA_ANALYSIS_2D_H
00033 
00034 #include "core/globalDefs.h"
00035 #include "core/blockLatticeBase2D.h"
00036 #include "core/dataFieldBase2D.h"
00037 #include "atomicBlock/dataProcessorWrapper2D.h"
00038 #include "atomicBlock/reductiveDataProcessorWrapper2D.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(BlockLattice2D<T,FluidDescriptor>& fluid,
00047                        BlockLattice2D<T,TemperatureDescriptor>& temperature,
00048                        Box2D 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(MultiBlockLattice2D<T,FluidDescriptor>& fluid,
00056                        MultiBlockLattice2D<T,TemperatureDescriptor>& temperature,
00057                        Box2D 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 class BoxSumVelocityTemperatureFunctional2D :
00069     public ReductiveBoxProcessingFunctional2D_LL<T,FluidDescriptor,T,TemperatureDescriptor>
00070 {
00071 public:
00072     BoxSumVelocityTemperatureFunctional2D(int direction_);
00073     virtual void process(Box2D domain,
00074                          BlockLattice2D<T,FluidDescriptor>& fluid,
00075                          BlockLattice2D<T,TemperatureDescriptor>& temperature);
00076     virtual BoxSumVelocityTemperatureFunctional2D<T,FluidDescriptor,TemperatureDescriptor>* clone() const;
00077     virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const {
00078         modified[0] = modif::nothing;
00079         modified[1] = modif::nothing;
00080     }
00081     T getSumVelocityTemperature() const;
00082 private:
00083     int  direction;
00084     plint sumVelocityTemperatureId;
00085 };
00086 
00087 }  // namespace plb
00088 
00089 #endif  // THERMAL_DATA_ANALYSIS_2D_H