This commit is contained in:
James E McClure
2018-05-16 15:08:47 -04:00
parent 6f2d7283da
commit 4d43977f98
2 changed files with 13 additions and 6 deletions

View File

@@ -3,13 +3,18 @@ color lattice boltzmann model
*/
#include "models/ColorModel.h"
ScaLBL_ColorModel::ScaLBL_ColorModel(){
ScaLBL_ColorModel::ScaLBL_ColorModel():
Restart(0),timestep(0),timestepMax(0),tauA(0),tauB(0),rhoA(0),rhoB(0),alpha(0),beta(0),
Fx(0),Fy(0),Fz(0),flux(0),din(0),dout(0),inletA(0),inletB(0),outletA(0),outletB(0),
Nx(0),Ny(0),Nz(0),N(0),Np(0),nprocx(0),nprocy(0),nprocz(0),BoundaryCondition(0),Lx(0),Ly(0),Lz(0)
{
}
ScaLBL_ColorModel::~ScaLBL_ColorModel(){
}
void ScaLBL_ColorModel::ReadParams(){
void ScaLBL_ColorModel::ReadParams(string filename){
// read the input database
auto db = std::make_shared<Database>( filename );
auto domain_db = db->getDatabase( "Domain" );

View File

@@ -18,23 +18,25 @@ Implementation of color lattice boltzmann model
class ScaLBL_ColorModel{
public:
ScaLBL_ColorModel(string filename);
ScaLBL_ColorModel();
~ScaLBL_ColorModel();
// functions in they should be run
void ReadParams(string filename);
void ReadInput();
void Create();
void Initialize();
void Run();
bool Restart;
bool Restart,pBC;
int timestep,timestepMax;
int BoundaryCondition;
double tauA,tauB,rhoA,rhoB,alpha,beta;
double Fx,Fy,Fz,flux;
double din,dout,inletA,inletB,outletA,outletB;
int Nx,Ny,Nz,N,Np;
int nprocx,nprocy,nprocz,BC;
int nprocx,nprocy,nprocz;
double Lx,Ly,Lz;
private:
@@ -61,7 +63,7 @@ private:
double *Gradient;
double *Pressure;
int rank;
//int rank,nprocs;
};