extendedfinitedifferenceboundary3d.hh

来自「open lattice boltzmann project www.open」· HH 代码 · 共 451 行 · 第 1/2 页

HH
451
字号
}////////// Class ExtendedFdBoundaryManager3D /////////////////////////////////////////template<typename T, template<typename U> class Lattice, class MixinDynamics>class ExtendedFdBoundaryManager3D {public:    template<int direction, int orientation> static Momenta<T,Lattice>*        getVelocityBoundaryMomenta();    template<int direction, int orientation> static Dynamics<T,Lattice>*        getVelocityBoundaryDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int direction, int orientation> static PostProcessorGenerator3D<T,Lattice>*        getVelocityBoundaryProcessor(int x0, int x1, int y0, int y1, int z0, int z1);    template<int direction, int orientation> static Momenta<T,Lattice>*        getPressureBoundaryMomenta();    template<int direction, int orientation> static Dynamics<T,Lattice>*        getPressureBoundaryDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int direction, int orientation> static PostProcessorGenerator3D<T,Lattice>*        getPressureBoundaryProcessor(int x0, int x1, int y0, int y1, int z0, int z1);    template<int plane, int normal1, int normal2> static Momenta<T,Lattice>*        getExternalVelocityEdgeMomenta();    template<int plane, int normal1, int normal2> static Dynamics<T,Lattice>*        getExternalVelocityEdgeDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int plane, int normal1, int normal2> static PostProcessorGenerator3D<T,Lattice>*        getExternalVelocityEdgeProcessor(int x0, int x1, int y0, int y1, int z0, int z1);    template<int plane, int normal1, int normal2> static Momenta<T,Lattice>*        getInternalVelocityEdgeMomenta();    template<int plane, int normal1, int normal2> static Dynamics<T,Lattice>*        getInternalVelocityEdgeDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int plane, int normal1, int normal2> static PostProcessorGenerator3D<T,Lattice>*        getInternalVelocityEdgeProcessor(int x0, int x1, int y0, int y1, int z0, int z1);    template<int xNormal, int yNormal, int zNormal> static Momenta<T,Lattice>*        getExternalVelocityCornerMomenta();    template<int xNormal, int yNormal, int zNormal> static Dynamics<T,Lattice>*        getExternalVelocityCornerDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int xNormal, int yNormal, int zNormal> static PostProcessorGenerator3D<T,Lattice>*        getExternalVelocityCornerProcessor(int x, int y, int z);    template<int xNormal, int yNormal, int zNormal> static Momenta<T,Lattice>*        getInternalVelocityCornerMomenta();    template<int xNormal, int yNormal, int zNormal> static Dynamics<T,Lattice>*        getInternalVelocityCornerDynamics(T omega, Momenta<T,Lattice>& momenta);    template<int xNormal, int yNormal, int zNormal> static PostProcessorGenerator3D<T,Lattice>*        getInternalVelocityCornerProcessor(int x, int y, int z);};template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getVelocityBoundaryMomenta(){    return new BasicDirichletBM<T,Lattice,VelocityBM, direction,orientation>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>Dynamics<T,Lattice>* ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::    getVelocityBoundaryDynamics(T omega, Momenta<T,Lattice>& momenta){    return new MixinDynamics(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getVelocityBoundaryProcessor(int x0, int x1, int y0, int y1, int z0, int z1){     return new ExtendedFdPlaneBoundaryProcessorGenerator3D                   <T,Lattice, direction,orientation>(x0,x1, y0,y1, z0,z1);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getPressureBoundaryMomenta(){    return new BasicDirichletBM<T,Lattice,PressureBM, direction,orientation>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>Dynamics<T,Lattice>* ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::    getPressureBoundaryDynamics(T omega, Momenta<T,Lattice>& momenta){    return new MixinDynamics(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int direction, int orientation>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getPressureBoundaryProcessor(int x0, int x1, int y0, int y1, int z0, int z1){     return new ExtendedFdPlaneBoundaryProcessorGenerator3D                   <T,Lattice, direction,orientation>(x0,x1, y0,y1, z0,z1);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getExternalVelocityEdgeMomenta(){    return new FixedVelocityBM<T,Lattice>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>Dynamics<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getExternalVelocityEdgeDynamics(T omega, Momenta<T,Lattice>& momenta){    return new MixinDynamics(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getExternalVelocityEdgeProcessor(int x0, int x1, int y0, int y1, int z0, int z1){    return new OuterVelocityEdgeProcessorGenerator3D<T,Lattice, plane,normal1,normal2>(x0,x1, y0,y1, z0,z1);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getInternalVelocityEdgeMomenta(){    return new InnerEdgeVelBM3D<T,Lattice, plane,normal1,normal2>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>Dynamics<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getInternalVelocityEdgeDynamics(T omega, Momenta<T,Lattice>& momenta){    return new CombinedRLBdynamics<T,Lattice, MixinDynamics>(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int plane, int normal1, int normal2>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getInternalVelocityEdgeProcessor(int x0, int x1, int y0, int y1, int z0, int z1){    return 0;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getExternalVelocityCornerMomenta(){    return new FixedVelocityBM<T,Lattice>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>Dynamics<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getExternalVelocityCornerDynamics(T omega, Momenta<T,Lattice>& momenta){    return new MixinDynamics(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getExternalVelocityCornerProcessor(int x, int y, int z){    return new OuterVelocityCornerProcessorGenerator3D<T,Lattice, xNormal,yNormal,zNormal> (x,y,z);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>Momenta<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::getInternalVelocityCornerMomenta(){    return new InnerCornerVelBM3D<T,Lattice, xNormal,yNormal,zNormal>;}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>Dynamics<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getInternalVelocityCornerDynamics(T omega, Momenta<T,Lattice>& momenta){    return new CombinedRLBdynamics<T,Lattice, MixinDynamics>(omega, momenta);}template<typename T, template<typename U> class Lattice, class MixinDynamics>template<int xNormal, int yNormal, int zNormal>PostProcessorGenerator3D<T,Lattice>*    ExtendedFdBoundaryManager3D<T,Lattice,MixinDynamics>::        getInternalVelocityCornerProcessor(int x, int y, int z){    return 0;}////////// Factory function //////////////////////////////////////////////////template<typename T, template<typename U> class Lattice, typename MixinDynamics>OnLatticeBoundaryCondition3D<T,Lattice>*    createExtendedFdBoundaryCondition3D(BlockStructure3D<T,Lattice>& block){    return new BoundaryConditionInstantiator3D <                   T, Lattice,                   ExtendedFdBoundaryManager3D<T,Lattice, MixinDynamics> > (block);}}  // namespace olb#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?