From 55e98c86f5d5e4b11168c6398f12f868e00a1a2c Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Mon, 19 Dec 2005 06:10:17 +0000 Subject: [PATCH] added size attribute to species class --- Cantera/python/ctml_writer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cantera/python/ctml_writer.py b/Cantera/python/ctml_writer.py index a3f29dcc5..69a05334c 100644 --- a/Cantera/python/ctml_writer.py +++ b/Cantera/python/ctml_writer.py @@ -423,7 +423,8 @@ class species: note = '', thermo = None, transport = None, - charge = -999): + charge = -999, + size = 1.0): self._name = name self._atoms = getAtomicComp(atoms) @@ -444,7 +445,7 @@ class species: raise CTI_Error('specified charge inconsistent with number of electrons') else: self._charge = chrg - # self.type = SPECIES + self._size = size global _species global _enames @@ -488,6 +489,8 @@ class species: s.addChild("note",self._comment) if self._charge <> -999: s.addChild("charge",self._charge) + if self._size <> 1.0: + s.addChild("size",self._size) if self._thermo: t = s.addChild("thermo") if type(self._thermo) == types.InstanceType: