Skip to content

Commit

Permalink
Fixing tabs and spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gkogekar committed Aug 7, 2019
1 parent 99a4180 commit 132af54
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions interfaces/cython/cantera/ctml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,15 @@ def build(self,a):
f= a.addChild("pureFluidParameters")
f['species'] = self._species
s = '%.10g, %.10g\n' % (self._acoeff[0], self._acoeff[1])
ac = f.addChild("a_coeff",s)
ac = f.addChild("a_coeff", s)
ac["units"] = _upres+'-'+_ulen+'6/'+_umol+'2'
ac["model"] = "linear_a"
s = '%.10g\n' % self._bcoeff
bc = f.addChild("b_coeff",s)
bc = f.addChild("b_coeff", s)
bc["units"] = _ulen+'3/'+_umol
if self._w_ac:
s = '%.10g\n' % self._w_ac
cc = f.addChild("acentric_factor",s)
cc = f.addChild("acentric_factor", s)


class crossFluidParameters(activityCoefficients):
Expand All @@ -869,12 +869,12 @@ def build(self,a):
f["species2"] = self._species2
f["species1"] = self._species1
s = '%.10g, %.10g\n' % (self._acoeff[0], self._acoeff[1])
ac = f.addChild("a_coeff",s)
ac = f.addChild("a_coeff", s)
ac["units"] = _upres+'-'+_ulen+'6/'+_umol+'2'
ac["model"] = "linear_a"
if self._bcoeff:
s = '%.10g\n' % self._bcoeff
bc = f.addChild("b_coeff",s)
bc = f.addChild("b_coeff", s)
bc["units"] = _ulen+'3/'+_umol


Expand Down Expand Up @@ -2469,8 +2469,7 @@ def build(self, p):
k['model'] = self._kin

class PengRobinsonMFTP(phase):
"""A multi-component fluid model for non-ideal gas fluids.
"""
"""A multi-component fluid model for non-ideal gas fluids. """

def __init__(self,
name = '',
Expand All @@ -2484,15 +2483,15 @@ def __init__(self,
transport = 'None',
options = []):

phase.__init__(self,name, 3, elements, species, note, reactions,
initial_state,options)
phase.__init__(self, name, 3, elements, species, note, reactions,
initial_state, options)
self._pure = 0
self._kin = kinetics
self._tr = transport
self._activityCoefficients = activity_coefficients

def build(self, p):
ph = phase.build(self,p)
ph = phase.build(self, p)
e = ph.child("thermo")
e['model'] = 'PengRobinsonMFTP'
if self._activityCoefficients:
Expand Down

0 comments on commit 132af54

Please sign in to comment.