$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 00036 #ifndef DYNAMIC_SMAGORINSKY_LATTICES_2D_H 00037 #define DYNAMIC_SMAGORINSKY_LATTICES_2D_H 00038 00039 #include "core/globalDefs.h" 00040 #include "latticeBoltzmann/nearestNeighborLattices2D.h" 00041 00042 namespace plb { 00043 00044 namespace descriptors { 00045 00046 struct ExternalOmegaDescriptor2d { 00047 static const int numScalars = 1; 00048 static const int numSpecies = 1; 00049 static const int omegaBeginsAt = 0; 00050 static const int sizeOfOmega = 1; 00051 }; 00052 00053 struct ExternalOmegaAndForceDescriptor2d { 00054 static const int numScalars = 3; 00055 static const int numSpecies = 2; 00056 static const int omegaBeginsAt = 0; 00057 static const int sizeOfOmega = 1; 00058 static const int forceBeginsAt = 1; 00059 static const int sizeOfForce = 2; 00060 }; 00061 00062 template <typename T> struct ExternalOmegaD2Q9Descriptor 00063 : public D2Q9DescriptorBase<T>, public ExternalOmegaDescriptor2d 00064 { 00065 static const char name[]; 00066 }; 00067 00068 template <typename T> struct ForcedExternalOmegaD2Q9Descriptor 00069 : public D2Q9DescriptorBase<T>, public ExternalOmegaAndForceDescriptor2d 00070 { 00071 static const char name[]; 00072 }; 00073 00074 template<typename T> 00075 const char ExternalOmegaD2Q9Descriptor<T>::name[] = "ExternalOmegaD2Q9"; 00076 00077 template<typename T> 00078 const char ExternalOmegaAndForceD2Q9Descriptor<T>::name[] = "ExternalOmegaAndForceD2Q9"; 00079 00080 } // namespace descriptors 00081 00082 } // namespace plb 00083 00084 #endif // DYNAMIC_SMAGORINSKY_LATTICES_2D_H
1.6.3
1.6.3