$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: Daniel Lagrava 00026 **/ 00027 00032 #ifndef GRID_REFINEMENT_DYNAMICS_H 00033 #define GRID_REFINEMENT_DYNAMICS_H 00034 00035 #include "core/globalDefs.h" 00036 #include "core/blockStatistics.h" 00037 #include "boundaryCondition/boundaryDynamics.h" 00038 #include <vector> 00039 00040 namespace plb { 00041 00043 00049 template<typename T, template<typename U> class Descriptor> 00050 class FineGridBoundaryDynamics : public BoundaryCompositeDynamics<T,Descriptor> { 00051 public: 00053 00057 FineGridBoundaryDynamics ( 00058 Dynamics<T,Descriptor>* baseDynamics_, 00059 TimeCounter const& timeCounter_, 00060 plint numTimeSteps_, 00061 plint orderOfDecomposition_ ); 00062 FineGridBoundaryDynamics(HierarchicUnserializer& unserializer); 00063 virtual FineGridBoundaryDynamics<T,Descriptor>* clone() const; 00064 bool isComposeable() const; 00066 virtual int getId() const; 00068 virtual void serialize(HierarchicSerializer& serializer) const; 00070 virtual void unserialize(HierarchicUnserializer& unserializer); 00072 virtual void completePopulations(Cell<T,Descriptor>& cell) const; 00073 std::vector<T>& getDecomposedValues(plint whichTime); 00074 std::vector<T> const& getDecomposedValues(plint whichTime) const; 00075 private: 00076 TimeCounter const& timeCounter; 00077 plint numTimeSteps; 00078 plint orderOfDecomposition; 00079 std::vector<T> decomposedValuesT0; 00080 std::vector<T> decomposedValuesT1; 00081 private: 00082 static int id; 00083 }; 00084 00085 00086 } // namespace plb 00087 00088 #endif // GRID_REFINEMENT_DYNAMICS_H
1.6.3
1.6.3