Skip to content

Commit 54f6cda

Browse files
committed
set potential in base solver class
1 parent 0c19f20 commit 54f6cda

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rmgpy/solver/base.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ cdef class ReactionSystem(DASx):
213213
self.T = Quantity(conditions['T'], 'K')
214214
if 'P' in keys and hasattr(self, 'P'):
215215
self.P = Quantity(conditions['P'], 'Pa')
216+
if 'potential' in keys and hasattr(self, 'potential'):
217+
self.potential = Quantity(conditions['potential'], 'V')
216218
for k in keys:
217219
if is_conc:
218220
if k in self.initial_concentrations.keys():

0 commit comments

Comments
 (0)