$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 #ifndef OFF_LATTICE_BOUNDARY_CONDITION_3D_H 00026 #define OFF_LATTICE_BOUNDARY_CONDITION_3D_H 00027 00028 #include "core/globalDefs.h" 00029 #include "offLattice/triangularSurfaceMesh.h" 00030 #include "offLattice/offLatticeBoundaryProfiles3D.h" 00031 #include "offLattice/triangleBoundary3D.h" 00032 #include "offLattice/triangleToDef.h" 00033 #include "offLattice/guoOffLatticeModel3D.h" 00034 00035 namespace plb { 00036 00037 template< typename T, 00038 template<typename U> class Descriptor, 00039 class BoundaryType > 00040 class OffLatticeBoundaryCondition3D { 00041 public: 00042 OffLatticeBoundaryCondition3D ( 00043 OffLatticeModel3D<T,BoundaryType>* offLatticeModel_, 00044 VoxelizedDomain3D<T>& voxelizedDomain_, 00045 MultiBlockLattice3D<T,Descriptor>& lattice_ ); 00046 OffLatticeBoundaryCondition3D ( 00047 OffLatticeModel3D<T,BoundaryType>* offLatticeModel_, 00048 VoxelizedDomain3D<T>& voxelizedDomain_, 00049 MultiBlockLattice3D<T,Descriptor>& lattice_, 00050 MultiParticleField3D<DenseParticleField3D<T,Descriptor> >& particleField_ ); 00051 OffLatticeBoundaryCondition3D ( 00052 OffLatticeBoundaryCondition3D<T,Descriptor,BoundaryType> const& rhs ); 00053 ~OffLatticeBoundaryCondition3D(); 00054 MultiBlockLattice3D<T,Descriptor> const& getLattice() const { return lattice; } 00055 VoxelizedDomain3D<T> const& getVoxelizedDomain() const { return voxelizedDomain; } 00056 VoxelizedDomain3D<T>& getVoxelizedDomain() { return voxelizedDomain; } 00057 void apply(); 00058 void insert(); 00059 void apply(std::vector<MultiBlock3D*> const& completionArg); 00060 void insert(std::vector<MultiBlock3D*> const& completionArg); 00061 Array<T,3> getForceOnObject(); 00062 std::auto_ptr<MultiTensorField3D<T,3> > computeVelocity(Box3D domain); 00063 std::auto_ptr<MultiTensorField3D<T,3> > computeVelocity(); 00064 std::auto_ptr<MultiTensorField3D<T,3> > computeVorticity(Box3D domain); 00065 std::auto_ptr<MultiTensorField3D<T,3> > computeVorticity(); 00066 std::auto_ptr<MultiScalarField3D<T> > computeVelocityNorm(Box3D domain); 00067 std::auto_ptr<MultiScalarField3D<T> > computeVelocityNorm(); 00068 std::auto_ptr<MultiScalarField3D<T> > computeVelocityComponent(Box3D domain, plint iComp); 00069 std::auto_ptr<MultiScalarField3D<T> > computeVelocityComponent(plint iComp); 00070 std::auto_ptr<MultiScalarField3D<T> > computePressure(Box3D domain); 00071 std::auto_ptr<MultiScalarField3D<T> > computePressure(); 00072 std::auto_ptr<MultiScalarField3D<T> > computeDensity(Box3D domain, T solidDensity=T()); 00073 std::auto_ptr<MultiScalarField3D<T> > computeDensity(T solidDensity=T()); 00074 std::auto_ptr<MultiScalarField3D<T> > computeStrainRateNorm(); 00075 std::auto_ptr<MultiScalarField3D<T> > computeStrainRateNorm(Box3D domain); 00076 T computeAverageVelocityComponent(Box3D domain, plint iComponent); 00077 T computeAverageDensity(Box3D domain); 00078 T computeAverageDensity(); 00079 T computeAverageEnergy(Box3D domain); 00080 T computeAverageEnergy(); 00081 T computeRMSvorticity(Box3D domain); 00082 T computeRMSvorticity(); 00083 private: 00084 VoxelizedDomain3D<T>& voxelizedDomain; 00085 MultiBlockLattice3D<T,Descriptor>& lattice; 00086 MultiBlock3D& boundaryShapeArg; 00087 OffLatticeModel3D<T,BoundaryType>* offLatticeModel; 00088 MultiContainerBlock3D offLatticePattern; 00089 }; 00090 00091 } // namespace plb 00092 00093 #endif // OFF_LATTICE_BOUNDARY_CONDITION_3D_H
1.6.3
1.6.3