Skip to content

Commit

Permalink
Fix DPStokes
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Apr 30, 2024
1 parent b3e5d8f commit 8e5cb8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions solvers/DPStokes/mobility.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ class DPStokes: public libmobility::Mobility{
this->temperature = ipar.temperature;
this->lanczosTolerance = ipar.tolerance;
this->dppar.mode = this->wallmode;
this->dppar.hydrodynamicRadius = ipar.hydrodynamicRadius; //a
this->dppar.w = 6;
this->dppar.beta = 1.714*this->dppar.w;
this->dppar.alpha = this->dppar.w/2.0;
real h = this->dppar.hydrodynamicRadius/1.554;
this->dppar.nx = this->dppar.Lx/h;
this->dppar.ny = this->dppar.Ly/h;
real Lz = this->dppar.zmax - this->dppar.zmin;
this->dppar.nz = M_PI*Lz/h;
dpstokes->initialize(dppar, this->numberParticles);
Mobility::initialize(ipar);
}
Expand Down
6 changes: 0 additions & 6 deletions solvers/DPStokes/python_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ MOBILITY_PYTHONIFY_WITH_EXTRA_CODE(DPStokes,
params.Ly = Ly;
params.zmin = zmin;
params.zmax = zmax;
params.w = 6;
// params.w_d = w_d;
params.beta = 1.714*params.w;
// params.beta_d = beta_d;
params.alpha = params.w/2.0;
// params.alpha_d = alpha_d;
self.setParametersDPStokes(params);
},
"dt"_a, "Lx"_a, "Ly"_a, "zmin"_a,
Expand Down

0 comments on commit 8e5cb8e

Please sign in to comment.