Skip to content

Commit 365770c

Browse files
kubagaleckillaniewski
authored andcommitted
Renamed psi0 and phi0 to Psi0 and Phi0
1 parent 96b5fae commit 365770c

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

models/electrokinetic/d2q9_npe_guo/Dynamics.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ AddSetting(name="el_kbT", unit="C/J", comment='')
9999
AddSetting(name="epsilon", unit="C2/J/m", comment='')
100100
AddSetting(name="dt", comment='')
101101

102-
AddSetting(name="psi0", unit="V", default=1., comment='')
103-
AddSetting(name="phi0", unit="V", default=1., comment='')
102+
AddSetting(name="Psi0", unit="V", default=1., comment='')
103+
AddSetting(name="Phi0", unit="V", default=1., comment='')
104104

105105

106106
AddSetting(name="ez", default=1., comment='')

models/electrokinetic/d2q9_npe_guo/Dynamics.c.Rt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,7 @@ CudaDeviceFunction real_t getPsi(){
109109
return ( <?R C( sum( g[2:9] )) ?> ) / (1. - wp0);
110110
}
111111

112-
113-
//CudaDeviceFunction real_t getSubiter(){
114-
// return subiter;
115-
//}
116-
117-
118112
CudaDeviceFunction real_t getrho_e(){
119-
// const real_t psi = getPsi();
120-
// return -2. * n_inf * z * el * sinh( z * el / kb/ T * psi);
121113
return el*(ez*getn0() - ez* getn1());
122114
}
123115

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

289281
<?R
290-
psi0=PV("psi0");
291-
phi0=PV("phi0");
282+
Psi0=PV("Psi0");
283+
Phi0=PV("Phi0");
292284

293-
C( g, psi0 * wp0 );
285+
C( g, Psi0 * wp0 );
294286
C( f, feq );
295287

296288
C( h_0, n_inf_0 * wi);
297289
C( h_1, n_inf_1 * wi);
298-
C(phi, wp0 * phi0);
290+
C(phi, wp0 * Phi0);
299291
?>
300292

301293
<?R if ( any( DensityAll$group=="BC" ) ) { ?>

models/electrokinetic/d2q9_npe_guo/test_0.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<Params ez = "1" />
3636
<Params rho="1000kg/m3" />
3737
<Params Ex = "250V/m" />
38-
<Params psi0="0.025V" />
38+
<Params Psi0="0.025V" />
3939
<Params psi_bc-wall="0.025V"/>
4040
<Params dt="1" />
4141
</Model>

0 commit comments

Comments
 (0)