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

metaStuffWrapper2D.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 
00028 #ifndef META_STUFF_WRAPPER_2D_H
00029 #define META_STUFF_WRAPPER_2D_H
00030 
00031 #include "core/globalDefs.h"
00032 #include "atomicBlock/blockLattice2D.h"
00033 #include "atomicBlock/dataField2D.h"
00034 #include "multiBlock/multiBlockLattice2D.h"
00035 #include "multiBlock/multiDataField2D.h"
00036 #include "dataProcessors/metaStuffFunctional2D.h"
00037 #include <memory>
00038 
00039 namespace plb {
00040 
00041 template<typename T, template<typename U> class Descriptor>
00042 void extractTopMostDynamics(MultiBlockLattice2D<T,Descriptor>& lattice, MultiScalarField2D<int>& dynamicsId,
00043                             Box2D domain );
00044 
00045 template<typename T, template<typename U> class Descriptor>
00046 std::auto_ptr< MultiScalarField2D<int> > extractTopMostDynamics (
00047                                              MultiBlockLattice2D<T,Descriptor>& lattice );
00048 
00049 template<typename T, template<typename U> class Descriptor>
00050 std::auto_ptr< MultiScalarField2D<int> > extractTopMostDynamics (
00051                                              MultiBlockLattice2D<T,Descriptor>& lattice, Box2D domain );
00052 
00053 
00054 template<typename T, template<typename U> class Descriptor>
00055 void extractBottomMostDynamics(MultiBlockLattice2D<T,Descriptor>& lattice, MultiScalarField2D<int>& dynamicsId,
00056                             Box2D domain );
00057 
00058 template<typename T, template<typename U> class Descriptor>
00059 std::auto_ptr< MultiScalarField2D<int> > extractBottomMostDynamics (
00060                                              MultiBlockLattice2D<T,Descriptor>& lattice );
00061 
00062 template<typename T, template<typename U> class Descriptor>
00063 std::auto_ptr< MultiScalarField2D<int> > extractBottomMostDynamics (
00064                                              MultiBlockLattice2D<T,Descriptor>& lattice, Box2D domain );
00065 
00066 
00067 template<typename T, template<typename U> class Descriptor>
00068 void uniqueDynamicsChains (
00069         MultiBlockLattice2D<T,Descriptor>& lattice, Box2D domain,
00070         std::vector<std::vector<int> >& chains, pluint& maxChainLength );
00071 
00072 template<typename T, template<typename U> class Descriptor>
00073 void uniqueDynamicsIds (
00074         MultiBlockLattice2D<T,Descriptor>& lattice, Box2D domain, std::vector<int>& ids );
00075 
00076 template<typename T, template<typename U> class Descriptor>
00077 void extractDynamicsChain(MultiBlockLattice2D<T,Descriptor>& lattice, MultiScalarField2D<int>& dynamicsId,
00078                           std::map<int,std::string>& nameOfDynamics, Box2D domain );
00079 
00080 template<typename T, template<typename U> class Descriptor>
00081 std::auto_ptr< MultiScalarField2D<int> > extractDynamicsChain (
00082             MultiBlockLattice2D<T,Descriptor>& lattice,
00083             std::map<int,std::string>& nameOfDynamics );
00084 
00085 template<typename T, template<typename U> class Descriptor>
00086 std::auto_ptr< MultiScalarField2D<int> > extractDynamicsChain (
00087             MultiBlockLattice2D<T,Descriptor>& lattice,
00088             std::map<int,std::string>& nameOfDynamics, Box2D domain );
00089 
00090 
00091 template<typename T, template<typename U> class Descriptor>
00092 void copyEntireCells( MultiBlockLattice2D<T,Descriptor>& sourceLattice,
00093                         MultiBlockLattice2D<T,Descriptor>& destinationLattice,
00094                         Box2D domain );
00095 
00096 template<typename T, template<typename U> class Descriptor>
00097 std::auto_ptr< MultiBlockLattice2D<T,Descriptor> > copyEntireCells (
00098             MultiBlockLattice2D<T,Descriptor>& lattice );
00099 
00100 template<typename T, template<typename U> class Descriptor>
00101 std::auto_ptr< MultiBlockLattice2D<T,Descriptor> > copyEntireCells (
00102             MultiBlockLattice2D<T,Descriptor>& lattice, Box2D domain );
00103 
00104 bool allFlagsTrue(MultiBlock2D* multiBlock);
00105 
00106 }  // namespace plb
00107 
00108 #endif  // META_STUFF_WRAPPER_2D_H