예제 #1
0
    def __init__(self, src="", id="", loglevel=0, debug=0):

        self.ckin = 0
        self._owner = 0
        self.verbose = 1
        fname = os.path.basename(src)
        ff = os.path.splitext(fname)

        if src:
            root = XML.XML_Node(name="doc", src=src, preprocess=1, debug=debug)

        if id:
            s = root.child(id=id)

        else:
            s = root.child(name="phase")

        self._name = s["id"]

        # initialize the equation of state
        ThermoPhase.__init__(self, xml_phase=s)

        # initialize the kinetics model
        ph = [self]
        Kinetics.__init__(self, xml_phase=s, phases=ph)

        # initialize the transport model
        Transport.__init__(self, xml_phase=s, phase=self, model="", loglevel=loglevel)
예제 #2
0
파일: solution.py 프로젝트: minhbau/Cantera
    def __init__(self, src="", id="", loglevel=0, debug=0):

        self.ckin = 0
        self._owner = 0
        self.verbose = 1
        fname = os.path.basename(src)
        ff = os.path.splitext(fname)

        if src:
            root = XML.XML_Node(name='doc', src=src, preprocess=1, debug=debug)

        if id:
            s = root.child(id=id)

        else:
            s = root.child(name="phase")

        self._name = s['id']

        # initialize the equation of state
        ThermoPhase.__init__(self, xml_phase=s)

        # initialize the kinetics model
        ph = [self]
        Kinetics.__init__(self, xml_phase=s, phases=ph)

        # initialize the transport model
        Transport.__init__(self,
                           xml_phase=s,
                           phase=self,
                           model='',
                           loglevel=loglevel)
예제 #3
0
    def __init__(self, src="", root=None):
        
        self.ckin = 0
        self._owner = 0
        self.verbose = 1

        # get the 'phase' element
        s = XML.find_XML(src=src, root=root, name="phase")

        # get the equation of state model
        ThermoPhase.__init__(self, xml_phase=s)

        # get the kinetics model
        Kinetics.__init__(self, xml_phase=s, phases=[self])

        SolidTransport.__init__(self, phase=self)
예제 #4
0
파일: solid.py 프로젝트: anujg1991/cantera
    def __init__(self, src="", root=None):

        self.ckin = 0
        self._owner = 0
        self.verbose = 1

        # get the 'phase' element
        s = XML.find_XML(src=src, root=root, name="phase")

        # get the equation of state model
        ThermoPhase.__init__(self, xml_phase=s)

        # get the kinetics model
        Kinetics.__init__(self, xml_phase=s, phases=[self])

        SolidTransport.__init__(self, phase=self)
예제 #5
0
    def __init__(self, src="", id=""):

        self.ckin = 0
        self._owner = 0
        self.verbose = 1
        fname = os.path.basename(src)
        ff = os.path.splitext(fname)

        if src:
            root = XML.XML_Node(name = 'doc', src = src, preprocess = 1)

        if id:
            s = root.child(id = id)

        else:
            s = root.child(name = "phase")

        self._name = s['id']

        # initialize the equation of state
        ThermoPhase.__init__(self, xml_phase=s)
예제 #6
0
    def __init__(self, src="", id=""):

        self.ckin = 0
        self._owner = 0
        self.verbose = 1
        fname = os.path.basename(src)
        ff = os.path.splitext(fname)

        if src:
            root = XML.XML_Node(name='doc', src=src, preprocess=1)

        if id:
            s = root.child(id=id)

        else:
            s = root.child(name="phase")

        self._name = s['id']

        # initialize the equation of state
        ThermoPhase.__init__(self, xml_phase=s)
예제 #7
0
 def __del__(self):
     ThermoPhase.__del__(self)
예제 #8
0
파일: solution.py 프로젝트: minhbau/Cantera
 def __del__(self):
     Transport.__del__(self)
     Kinetics.__del__(self)
     ThermoPhase.__del__(self)
예제 #9
0
 def __init__(self, xml_phase=None, index=-1):
     ThermoPhase.__init__(self, xml_phase=xml_phase, index=index)
예제 #10
0
파일: solid.py 프로젝트: anujg1991/cantera
 def __del__(self):
     SolidTransport.__del__(self)
     Kinetics.__del__(self)
     ThermoPhase.__del__(self)
예제 #11
0
 def __init__(self, xml_phase=None, index=-1):
     ThermoPhase.__init__(self, xml_phase=xml_phase, index=index)
예제 #12
0
 def __del__(self):
     ThermoPhase.__del__(self)