built passed

This commit is contained in:
Rex Zhe Li
2021-02-08 00:00:26 -05:00
parent 98491ccd80
commit e34170d232
3 changed files with 9 additions and 10 deletions

View File

@@ -1738,12 +1738,11 @@ extern "C" void ScaLBL_D3Q19_AAeven_FreeLeeModel_SingleFluid_BGK(double *dist, d
m18 = dist[17*Np+n]; m18 = dist[17*Np+n];
//compute fluid velocity //compute fluid velocity
ux = 3.0/rho0*(m1-m2+m7-m8+m9-m10+m11-m12+m13-m14+0.5*(chem*nx+Fx)); ux = 3.0/rho0*(m1-m2+m7-m8+m9-m10+m11-m12+m13-m14+0.5*(Fx));
uy = 3.0/rho0*(m3-m4+m7-m8-m9+m10+m15-m16+m17-m18+0.5*(chem*ny+Fy)); uy = 3.0/rho0*(m3-m4+m7-m8-m9+m10+m15-m16+m17-m18+0.5*(Fy));
uz = 3.0/rho0*(m5-m6+m11-m12-m13+m14+m15-m16-m17+m18+0.5*(chem*nz+Fz)); uz = 3.0/rho0*(m5-m6+m11-m12-m13+m14+m15-m16-m17+m18+0.5*(Fz));
//compute pressure //compute pressure
p = (m0+m2+m1+m4+m3+m6+m5+m8+m7+m10+m9+m12+m11+m14+m13+m16+m15+m18+m17) p = (m0+m2+m1+m4+m3+m6+m5+m8+m7+m10+m9+m12+m11+m14+m13+m16+m15+m18+m17);
+0.5*(rhoA-rhoB)/2.0/3.0*(ux*nx+uy*ny+uz*nz);
//------------------------------------------------- BCK collison ------------------------------------------------------------// //------------------------------------------------- BCK collison ------------------------------------------------------------//
// q=0 // q=0

View File

@@ -1006,7 +1006,7 @@ void ScaLBL_FreeLeeModel::WriteDebug_TwoFluid(){
void ScaLBL_FreeLeeModel::WriteDebug_SingleFluid(){ void ScaLBL_FreeLeeModel::WriteDebug_SingleFluid(){
DoubleArray PhaseData(Nxh,Nyh,Nzh); DoubleArray PhaseField(Nx,Ny,Nz);
// Copy back final phase indicator field and convert to regular layout // Copy back final phase indicator field and convert to regular layout
ScaLBL_Comm->RegularLayout(Map,Pressure,PhaseField); ScaLBL_Comm->RegularLayout(Map,Pressure,PhaseField);

View File

@@ -51,10 +51,10 @@ int main( int argc, char **argv )
LeeModel.ReadParams( filename ); LeeModel.ReadParams( filename );
LeeModel.SetDomain(); LeeModel.SetDomain();
LeeModel.ReadInput(); LeeModel.ReadInput();
LeeModel.Create_SingleFluid()(); LeeModel.Create_SingleFluid();
LeeModel.Initialize_SingleFluid()(); LeeModel.Initialize_SingleFluid();
LeeModel.Run_SingleFluid()(); LeeModel.Run_SingleFluid();
LeeModel.WriteDebug_SingleFluid()(); LeeModel.WriteDebug_SingleFluid();
PROFILE_STOP("Main"); PROFILE_STOP("Main");
auto file = db->getWithDefault<std::string>( "TimerFile", "lbpm_freelee_SingleFluidBGK_simulator" ); auto file = db->getWithDefault<std::string>( "TimerFile", "lbpm_freelee_SingleFluidBGK_simulator" );