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

NLD_boundaries3D.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 
00029 #ifndef NLD_BOUNDARIES_3D_H
00030 #define NLD_BOUNDARIES_3D_H
00031 
00032 #include "core/globalDefs.h"
00033 #include "core/nonLocalDynamics3D.h"
00034 #include "boundaryCondition/boundaryCondition.h"
00035 
00036 namespace plb {
00037 
00038 template<typename T, template<typename U> class Descriptor>
00039 class ExecuteNonLocalDynamics3D : public BoxProcessingFunctional3D_L<T,Descriptor>
00040 {
00041 public:
00042     virtual void process(Box3D domain, BlockLattice3D<T,Descriptor>& lattice);
00043     virtual ExecuteNonLocalDynamics3D<T,Descriptor>* clone() const;
00044     virtual int getStaticId() const { return staticId; }
00045 private:
00046     static const int staticId;
00047 };
00048 
00049 template<typename T, template<typename U> class Descriptor>
00050 class ExecutePlaneNLD_3D : public BoxProcessingFunctional3D_L<T,Descriptor>
00051 {
00052 public:
00053     ExecutePlaneNLD_3D();
00054     ExecutePlaneNLD_3D(int direction_, int orientation_);
00055     virtual void process(Box3D domain, BlockLattice3D<T,Descriptor>& lattice);
00056     virtual ExecutePlaneNLD_3D<T,Descriptor>* clone() const;
00057     virtual int getStaticId() const { return staticId; }
00058     virtual void serialize(std::string& data) const;
00059     virtual void unserialize(std::string& data);
00060     virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const {
00061         modified[0] = modif::staticVariables;
00062     }
00063 private:
00064     int direction, orientation;
00065     static const int staticId;
00066 };
00067 
00068 template<typename T, template<typename U> class Descriptor>
00069 class ExecuteEdgeNLD_3D : public BoxProcessingFunctional3D_L<T,Descriptor>
00070 {
00071 public:
00072     ExecuteEdgeNLD_3D();
00073     ExecuteEdgeNLD_3D(int plane_, int normal1_, int normal2_);
00074     virtual void process(Box3D domain, BlockLattice3D<T,Descriptor>& lattice);
00075     virtual ExecuteEdgeNLD_3D<T,Descriptor>* clone() const;
00076     virtual int getStaticId() const { return staticId; }
00077     virtual void serialize(std::string& data) const;
00078     virtual void unserialize(std::string& data);
00079     virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const {
00080         modified[0] = modif::staticVariables;
00081     }
00082 private:
00083     int plane, normal1, normal2;
00084     static const int staticId;
00085 };
00086 
00087 template<typename T, template<typename U> class Descriptor>
00088 class ExecuteCornerNLD_3D : public BoxProcessingFunctional3D_L<T,Descriptor>
00089 {
00090 public:
00091     ExecuteCornerNLD_3D();
00092     ExecuteCornerNLD_3D(int xNormal_, int yNormal_, int zNormal_);
00093     virtual void process(Box3D domain, BlockLattice3D<T,Descriptor>& lattice);
00094     virtual ExecuteCornerNLD_3D<T,Descriptor>* clone() const;
00095     virtual int getStaticId() const { return staticId; }
00096     virtual void serialize(std::string& data) const;
00097     virtual void unserialize(std::string& data);
00098     virtual void getTypeOfModification(std::vector<modif::ModifT>& modified) const {
00099         modified[0] = modif::staticVariables;
00100     }
00101 private:
00102     int xNormal, yNormal, zNormal;
00103     static const int staticId;
00104 };
00105 
00106 
00107 template<typename T, template<typename U> class Descriptor>
00108 void instantiateOuterNLDboundary(MultiBlockLattice3D<T,Descriptor>& lattice, Box3D bbox);
00109 
00110 template<typename T, template<typename U> class Descriptor>
00111 void setOuterNLDboundaryDynamics (
00112         MultiBlockLattice3D<T,Descriptor>& lattice, Dynamics<T,Descriptor>* baseDynamics,
00113         Box3D bbox, Box3D domain, boundary::BcType bcType );
00114 
00115 template<typename T, template<typename U> class Descriptor>
00116 void setOuterNLDboundaryDynamics (
00117         MultiBlockLattice3D<T,Descriptor>& lattice,
00118         Dynamics<T,Descriptor>* baseDynamics, Box3D domain, boundary::BcType bcType );
00119 
00120 }  // namespace plb
00121 
00122 #endif  // NLD_BOUNDARIES_3D_H