File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
pybamm/models/submodels/interface/open_circuit_potential Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 77
88class CurrentSigmoidOpenCircuitPotential (BaseOpenCircuitPotential ):
99 def get_coupled_variables (self , variables ):
10+ domain , Domain = self .domain_Domain
1011 current = variables ["Total current density" ]
1112 k = 100
12- m_lith = pybamm .sigmoid (current , 0 , k ) # for lithation (current < 0)
13- m_delith = 1 - m_lith # for delithiation (current > 0)
1413
15- domain , Domain = self .domain_Domain
14+ if Domain == "Negative" :
15+ m_lith = pybamm .sigmoid (current , 0 , k ) # for lithation (current < 0)
16+ m_delith = 1 - m_lith # for delithiation (current > 0)
17+ elif Domain == "Positive" :
18+ m_delith = pybamm .sigmoid (current , 0 , k ) # for delithation (current < 0)
19+ m_lith = 1 - m_delith # for lithiation (current > 0)
20+
1621 phase_name = self .phase_name
1722
1823 if self .reaction == "lithium-ion main" :
You can’t perform that action at this time.
0 commit comments