Minor changes: Rename T_e to T_e0
This commit is contained in:
parent
e74508cfec
commit
4d44d8adf0
1 changed files with 12 additions and 12 deletions
|
|
@ -53,7 +53,7 @@ program VlaPlEx
|
|||
real(dp), allocatable, dimension(:):: phi, phi_old, E, db_dphi
|
||||
real(dp):: phiConv
|
||||
real(dp):: phi0
|
||||
real(dp):: T_e
|
||||
real(dp):: T_e0
|
||||
! real(dp):: phiF
|
||||
integer:: k
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ program VlaPlEx
|
|||
E_i = 0.0_dp
|
||||
T_i = 0.0_dp
|
||||
n_e = 0.0_dp
|
||||
T_e = 0.0_dp
|
||||
T_e0 = 0.0_dp
|
||||
Zave = 0.0_dp
|
||||
Zave_bc_old = 0.0_dp
|
||||
phi = 0.0_dp
|
||||
|
|
@ -211,7 +211,7 @@ program VlaPlEx
|
|||
|
||||
! Get boundary conditions for specific time
|
||||
call boundaryConditions%get(time, n_bc, u_bc, Temp_bc)
|
||||
! Find new \bar{Z}_i based on T_e = Temp_bc and n_e = n_bc
|
||||
! Find new \bar{Z}_i based on T_e0 = Temp_bc and n_e = n_bc
|
||||
call Tene_to_Z%get(Temp_bc, n_bc, Zave_bc)
|
||||
! Assign Z(T,n) to bin
|
||||
z_inj = minloc(abs(Zlist - Zave_bc),1)
|
||||
|
|
@ -229,7 +229,7 @@ program VlaPlEx
|
|||
f_i_old(z_inj,1,j0:nv) = f0
|
||||
f_i(:,1,j0:nv) = f_i_old(:,1,j0:nv)
|
||||
|
||||
T_e = Temp_bc
|
||||
T_e0 = Temp_bc
|
||||
|
||||
! r = rf, v<0
|
||||
f_i_old(:,nr,1:j0-1) = 0.0_dp
|
||||
|
|
@ -308,12 +308,12 @@ program VlaPlEx
|
|||
! phi0=phi(1) ! Neumann
|
||||
|
||||
! Calculate distribution of electrons
|
||||
! n_e = sum_ni(1) * exp((phi- phi0) / T_e) ! Isothermal (Boltzmann)
|
||||
n_e = sum_ni(1) * (1.0_dp + (gamma_e - 1.0_dp)/gamma_e*(phi-phi0)/T_e)**gamma_e_exp !Polytropic
|
||||
! n_e = sum_ni(1) * exp((phi- phi0) / T_e0) ! Isothermal (Boltzmann)
|
||||
n_e = sum_ni(1) * (1.0_dp + (gamma_e - 1.0_dp)/gamma_e*(phi-phi0)/T_e0)**gamma_e_exp !Polytropic
|
||||
! Diagonal matrix for Newton integration scheme
|
||||
! db_dphi = n_e / T_e ! Isothermal (Boltzmann)
|
||||
db_dphi = sum_ni(1) / (gamma_e * T_e) * &
|
||||
(1.0_dp + (gamma_e - 1.0_dp)/gamma_e*(phi-phi0)/T_e)**gamma_e_dexp !Polytropic
|
||||
! db_dphi = n_e / T_e0 ! Isothermal (Boltzmann)
|
||||
db_dphi = sum_ni(1) / (gamma_e * T_e0) * &
|
||||
(1.0_dp + (gamma_e - 1.0_dp)/gamma_e*(phi-phi0)/T_e0)**gamma_e_dexp !Polytropic
|
||||
|
||||
! Check if the solution has converged
|
||||
phiConv = maxval(abs(Res),1)
|
||||
|
|
@ -324,7 +324,7 @@ program VlaPlEx
|
|||
|
||||
! ! Calculate new potential to ensure 0 current at the edge
|
||||
! if (n_i(nr) > n_epsilon) then
|
||||
! phiF = phi0 + T_e * log((2.0_dp*sqrt(pi)*Zave(nr)*n_i(nr)*u_i(nr)) / (Zave(1)*n_i(1)*sqrt(m_i*T_e/m_e)))
|
||||
! phiF = phi0 + T_e0 * log((2.0_dp*sqrt(pi)*Zave(nr)*n_i(nr)*u_i(nr)) / (Zave(1)*n_i(1)*sqrt(m_i*T_e0/m_e)))
|
||||
!
|
||||
! else
|
||||
! phiF = phi(nr-5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue