Skip to content

Commit

Permalink
#1322 fixed dimensionless parameters to take dimensionless temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Jan 13, 2021
1 parent 6712839 commit 7567868
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions pybamm/parameters/thermal_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,43 +237,67 @@ def T_amb(self, t):

def rho_cn(self, T):
"Dimensionless negative current collector density"
return self.rho_cn_dim(T) * self.c_p_cn_dim(T) / self.rho_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return (
self.rho_cn_dim(T_dim)
* self.c_p_cn_dim(T_dim)
/ self.rho_eff_dim(self.T_ref)
)

def rho_n(self, T):
"Dimensionless negative electrode density"
return self.rho_n_dim(T) * self.c_p_n_dim(T) / self.rho_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return (
self.rho_n_dim(T_dim) * self.c_p_n_dim(T_dim) / self.rho_eff_dim(self.T_ref)
)

def rho_s(self, T):
"Dimensionless separator density"
return self.rho_s_dim(T) * self.c_p_s_dim(T) / self.rho_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return (
self.rho_s_dim(T_dim) * self.c_p_s_dim(T_dim) / self.rho_eff_dim(self.T_ref)
)

def rho_p(self, T):
"Dimensionless positive electrode density"
return self.rho_p_dim(T) * self.c_p_p_dim(T) / self.rho_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return (
self.rho_p_dim(T_dim) * self.c_p_p_dim(T_dim) / self.rho_eff_dim(self.T_ref)
)

def rho_cp(self, T):
"Dimensionless positive current collector density"
return self.rho_cp_dim(T) * self.c_p_cp_dim(T) / self.rho_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return (
self.rho_cp_dim(T_dim)
* self.c_p_cp_dim(T_dim)
/ self.rho_eff_dim(self.T_ref)
)

def lambda_cn(self, T):
"Dimensionless negative current collector thermal conductivity"
return self.lambda_cn_dim(T) / self.lambda_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return self.lambda_cn_dim(T_dim) / self.lambda_eff_dim(self.T_ref)

def lambda_n(self, T):
"Dimensionless negative electrode thermal conductivity"
return self.lambda_n_dim(T) / self.lambda_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return self.lambda_n_dim(T_dim) / self.lambda_eff_dim(self.T_ref)

def lambda_s(self, T):
"Dimensionless separator thermal conductivity"
return self.lambda_s_dim(T) / self.lambda_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return self.lambda_s_dim(T_dim) / self.lambda_eff_dim(self.T_ref)

def lambda_p(self, T):
"Dimensionless positive electrode thermal conductivity"
return self.lambda_p_dim(T) / self.lambda_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return self.lambda_p_dim(T_dim) / self.lambda_eff_dim(self.T_ref)

def lambda_cp(self, T):
"Dimensionless positive current collector thermal conductivity"
return self.lambda_cp_dim(T) / self.lambda_eff_dim(self.T_ref)
T_dim = self.Delta_T * T + self.T_ref
return self.lambda_cp_dim(T_dim) / self.lambda_eff_dim(self.T_ref)


thermal_parameters = ThermalParameters()

0 comments on commit 7567868

Please sign in to comment.