Skip to content

Commit

Permalink
Renamed psi0 and phi0 to Psi0 and Phi0
Browse files Browse the repository at this point in the history
  • Loading branch information
kubagalecki authored and llaniewski committed Oct 20, 2023
1 parent 96b5fae commit 365770c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions models/electrokinetic/d2q9_npe_guo/Dynamics.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ AddSetting(name="el_kbT", unit="C/J", comment='')
AddSetting(name="epsilon", unit="C2/J/m", comment='')
AddSetting(name="dt", comment='')

AddSetting(name="psi0", unit="V", default=1., comment='')
AddSetting(name="phi0", unit="V", default=1., comment='')
AddSetting(name="Psi0", unit="V", default=1., comment='')
AddSetting(name="Phi0", unit="V", default=1., comment='')


AddSetting(name="ez", default=1., comment='')
Expand Down
16 changes: 4 additions & 12 deletions models/electrokinetic/d2q9_npe_guo/Dynamics.c.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,7 @@ CudaDeviceFunction real_t getPsi(){
return ( <?R C( sum( g[2:9] )) ?> ) / (1. - wp0);
}


//CudaDeviceFunction real_t getSubiter(){
// return subiter;
//}


CudaDeviceFunction real_t getrho_e(){
// const real_t psi = getPsi();
// return -2. * n_inf * z * el * sinh( z * el / kb/ T * psi);
return el*(ez*getn0() - ez* getn1());
}

Expand Down Expand Up @@ -287,15 +279,15 @@ CudaDeviceFunction void Init() {
real_t Jy = u.y / rho;

<?R
psi0=PV("psi0");
phi0=PV("phi0");
Psi0=PV("Psi0");
Phi0=PV("Phi0");

C( g, psi0 * wp0 );
C( g, Psi0 * wp0 );
C( f, feq );

C( h_0, n_inf_0 * wi);
C( h_1, n_inf_1 * wi);
C(phi, wp0 * phi0);
C(phi, wp0 * Phi0);
?>

<?R if ( any( DensityAll$group=="BC" ) ) { ?>
Expand Down
2 changes: 1 addition & 1 deletion models/electrokinetic/d2q9_npe_guo/test_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<Params ez = "1" />
<Params rho="1000kg/m3" />
<Params Ex = "250V/m" />
<Params psi0="0.025V" />
<Params Psi0="0.025V" />
<Params psi_bc-wall="0.025V"/>
<Params dt="1" />
</Model>
Expand Down

0 comments on commit 365770c

Please sign in to comment.