$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 00025 /* Main author: Orestis Malaspinas. 00026 */ 00027 00031 #ifndef ADIABATIC_BOUNDARY_PROCESSOR_3D_HH 00032 #define ADIABATIC_BOUNDARY_PROCESSOR_3D_HH 00033 00034 #include "complexDynamics/adiabaticBoundaryProcessor3D.h" 00035 #include "finiteDifference/fdStencils1D.h" 00036 00037 namespace plb { 00038 00039 template<typename T, template<typename U> class Descriptor, int direction, int orientation> 00040 void FlatAdiabaticBoundaryFunctional3D<T,Descriptor,direction,orientation>::process ( 00041 Box3D domain, BlockLattice3D<T,Descriptor>& lattice ) 00042 { 00043 for (plint iX=domain.x0; iX<=domain.x1; ++iX) 00044 { 00045 plint iX_prev = iX + ( (direction==0) ? (-orientation) : 0 ); 00046 for (plint iY=domain.y0; iY<=domain.y1; ++iY) 00047 { 00048 plint iY_prev = iY + ( (direction==1) ? (-orientation) : 0 ); 00049 for (plint iZ=domain.z0; iZ<=domain.z1; ++iZ) 00050 { 00051 plint iZ_prev = iZ + ( (direction==2) ? (-orientation) : 0 ); 00052 00053 T temperature_1 = lattice.get(iX_prev,iY_prev,iZ_prev).computeDensity(); 00054 lattice.get(iX,iY,iZ).defineDensity(temperature_1); 00055 } 00056 } 00057 } 00058 } 00059 00060 template<typename T, template<typename U> class Descriptor, int direction, int orientation> 00061 FlatAdiabaticBoundaryFunctional3D<T,Descriptor,direction,orientation>* 00062 FlatAdiabaticBoundaryFunctional3D<T,Descriptor,direction,orientation>::clone() const 00063 { 00064 return new FlatAdiabaticBoundaryFunctional3D<T,Descriptor,direction,orientation>(*this); 00065 } 00066 00067 template<typename T, template<typename U> class Descriptor, int direction, int orientation> 00068 void FlatAdiabaticBoundaryFunctional3D<T,Descriptor,direction,orientation>::getTypeOfModification ( 00069 std::vector<modif::ModifT>& modified ) const 00070 { 00071 modified[0] = modif::dynamicVariables; 00072 } 00073 00074 } // namespace plb 00075 00076 #endif // NEUMANN_CONDITION_3D_HH 00077
1.6.3
1.6.3