/* * Multi-relaxation time LBM Model */ #include #include #include #include #include #include #include #include "common/ScaLBL.h" #include "common/Communication.h" #include "common/MPI_Helpers.h" #include "analysis/Minkowski.h" #include "ProfilerApp.h" class ScaLBL_MRTModel{ public: ScaLBL_MRTModel(int RANK, int NP, MPI_Comm COMM); ~ScaLBL_MRTModel(); // functions in they should be run void ReadParams(string filename); void ReadParams(std::shared_ptr db0); void SetDomain(); void ReadInput(); void Create(); void Initialize(); void Run(); void VelocityField(); bool Restart,pBC; int timestep,timestepMax; int BoundaryCondition; double tau,mu; double Fx,Fy,Fz,flux; double din,dout; double tolerance; int Nx,Ny,Nz,N,Np; int rank,nprocx,nprocy,nprocz,nprocs; double Lx,Ly,Lz; std::shared_ptr Dm; // this domain is for analysis std::shared_ptr Mask; // this domain is for lbm std::shared_ptr ScaLBL_Comm; // input database std::shared_ptr db; std::shared_ptr domain_db; std::shared_ptr mrt_db; IntArray Map; DoubleArray Distance; int *NeighborList; double *fq; double *Velocity; double *Pressure; //Minkowski Morphology; DoubleArray Velocity_x; DoubleArray Velocity_y; DoubleArray Velocity_z; private: MPI_Comm comm; // filenames char LocalRankString[8]; char LocalRankFilename[40]; char LocalRestartFile[40]; //int rank,nprocs; void LoadParams(std::shared_ptr db0); };