@@ -19,9 +19,8 @@ class Full(BaseModel):
19
19
**Extends:** :class:`pybamm.electrode.ohm.BaseModel`
20
20
"""
21
21
22
- def __init__ (self , param , domain , reactions , operating_mode ):
22
+ def __init__ (self , param , domain , reactions ):
23
23
super ().__init__ (param , domain , reactions )
24
- self .operating_mode = operating_mode
25
24
26
25
def get_fundamental_variables (self ):
27
26
@@ -80,14 +79,11 @@ def set_boundary_conditions(self, variables):
80
79
81
80
elif self .domain == "Positive" :
82
81
lbc = (pybamm .Scalar (0 ), "Neumann" )
83
- if self .operating_mode == "current" :
84
- sigma_eff = self .param .sigma_p * tor
85
- rbc = (
86
- i_boundary_cc / pybamm .boundary_value (- sigma_eff , "right" ),
87
- "Neumann" ,
88
- )
89
- elif self .operating_mode == "voltage" :
90
- rbc = (self .param .voltage_with_time , "Dirichlet" )
82
+ sigma_eff = self .param .sigma_p * tor
83
+ rbc = (
84
+ i_boundary_cc / pybamm .boundary_value (- sigma_eff , "right" ),
85
+ "Neumann" ,
86
+ )
91
87
92
88
self .boundary_conditions [phi_s ] = {"left" : lbc , "right" : rbc }
93
89
0 commit comments