$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 00028 #ifndef DYNAMICS_PROCESSOR_2D_H 00029 #define DYNAMICS_PROCESSOR_2D_H 00030 00031 #include "core/globalDefs.h" 00032 #include "atomicBlock/dataProcessingFunctional2D.h" 00033 #include "core/dynamics.h" 00034 00035 namespace plb { 00036 00037 /* *************** Class ExternalRhoJcollideAndStream2D ******************* */ 00038 00039 template<typename T, template<typename U> class Descriptor> 00040 class ExternalRhoJcollideAndStream2D : public BoxProcessingFunctional2D 00041 { 00042 public: 00043 // Block 0: lattice; Block 1: rhoBar; Block 2: j. 00044 virtual void processGenericBlocks( Box2D domain, 00045 std::vector<AtomicBlock2D*> atomicBlocks ); 00046 virtual ExternalRhoJcollideAndStream2D<T,Descriptor>* clone() const; 00047 virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const; 00048 private: 00049 void collide ( 00050 BlockLattice2D<T,Descriptor>& lattice, Box2D const& domain, 00051 ScalarField2D<T> const& rhoBarField, Dot2D const& offset1, 00052 TensorField2D<T,2> const& jField, Dot2D const& offset2, BlockStatistics& stat ); 00053 void bulkCollideAndStream ( 00054 BlockLattice2D<T,Descriptor>& lattice, Box2D const& domain, 00055 ScalarField2D<T> const& rhoBarField, Dot2D const& offset1, 00056 TensorField2D<T,2> const& jField, Dot2D const& offset2, BlockStatistics& stat ); 00057 void boundaryStream ( 00058 BlockLattice2D<T,Descriptor>& lattice, 00059 Box2D const& bound, Box2D const& domain ); 00060 }; 00061 00062 00063 template<typename T, template<typename U> class Descriptor> 00064 class Tau1CollideAndStream2D : public BoxProcessingFunctional2D_L<T,Descriptor> 00065 { 00066 public: 00067 virtual void process( Box2D domain, BlockLattice2D<T,Descriptor>& lattice ); 00068 virtual Tau1CollideAndStream2D<T,Descriptor>* clone() const; 00069 virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const; 00070 private: 00071 void bulkStream ( 00072 Array<T,Descriptor<T>::q> const& f, plint iX, plint iY ); 00073 void boundaryStream ( 00074 Array<T,Descriptor<T>::q> const& f, plint iX, plint iY ); 00075 }; 00076 00077 } // namespace plb 00078 00079 #endif // DYNAMICS_PROCESSOR_2D_H
1.6.3
1.6.3