$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 00029 #ifndef REGULARIZED_BOUNDARY_DYNAMICS_2D_H 00030 #define REGULARIZED_BOUNDARY_DYNAMICS_2D_H 00031 00032 #include "core/globalDefs.h" 00033 #include "boundaryCondition/regularizedBoundaryDynamics.h" 00034 00035 namespace plb { 00036 00038 00042 template<typename T, template<typename U> class Descriptor, 00043 int normalX, int normalY> 00044 class RegularizedVelocityInnerCornerDynamics2D : public BoundaryCompositeDynamics<T,Descriptor> { 00045 public: 00046 /* *************** Construction and Destruction ********************** */ 00047 00048 RegularizedVelocityInnerCornerDynamics2D(Dynamics<T,Descriptor>* baseDynamics_, 00049 bool automaticPrepareCollision_=true); 00050 00052 virtual RegularizedVelocityInnerCornerDynamics2D<T,Descriptor,normalX,normalY>* clone() const; 00053 00054 virtual void replaceBaseDynamics(Dynamics<T,Descriptor>* newBaseDynamics); 00055 00056 /* *************** Computation of macroscopic variables ************** */ 00057 00059 virtual void computeVelocity( Cell<T,Descriptor> const& cell, 00060 Array<T,Descriptor<T>::d>& u_ ) const; 00061 00063 virtual void defineVelocity(Cell<T,Descriptor>& cell, Array<T,Descriptor<T>::d> const& u_); 00064 00066 virtual T computeDensity(Cell<T,Descriptor> const& cell) const; 00067 00068 /* *************** Other virtual methods ***************************** */ 00069 00071 virtual T computeRhoBar(Cell<T,Descriptor> const& cell) const; 00072 00074 virtual void computeRhoBarJ(Cell<T,Descriptor> const& cell, 00075 T& rhoBar_, Array<T,Descriptor<T>::d>& j) const; 00076 00079 virtual void computeRhoBarJPiNeq(Cell<T,Descriptor> const& cell, 00080 T& rhoBar, Array<T,Descriptor<T>::d>& j, 00081 Array<T,SymmetricTensor<T,Descriptor>::n>& PiNeq) const; 00082 00084 virtual void completePopulations(Cell<T,Descriptor>& cell) const; 00085 private: 00086 RegularizedVelocityBoundaryDynamics<T,Descriptor,0,normalX> xDynamics; 00087 RegularizedVelocityBoundaryDynamics<T,Descriptor,1,normalY> yDynamics; 00088 }; 00089 00090 } // namespace plb 00091 00092 #endif // REGULARIZED_BOUNDARY_DYNAMICS_2D_H
1.6.3
1.6.3