示例#1
0
    def __init__(self, name, facility):
        Coupler.__init__(self, name, facility)

        # time of containing coupler
        self.ccplr_t = 0

        # time of embedded coupler
        self.ecplr_t = 0

        # whether to apply boundary conditions
        self.toApplyBC = True
        return
示例#2
0
    def __init__(self, name, facility):
        Coupler.__init__(self, name, facility)

        # time of containing coupler
        self.ccplr_t = 0

        # time of embedded coupler
        self.ecplr_t = 0

        # whether to apply boundary conditions
        self.toApplyBC = True
        return
示例#3
0
    def initialize(self, solver):
        Coupler.initialize(self, solver)

        # the embedded solver should set its solver.bc.side_sbcs to on
        # otherwise, we have to stop
        assert solver.inventory.bc.inventory.side_sbcs == True, \
               'Error: esolver.bc.side_sbcs must be on!'

        # XXX: model/Exchanger/AreaWeightedNormal.cc
        # computeOutflow() and reduceOutflow() needs to be modified
        # to support compressible flow
        assert (not self.inventory.amending_outflow) or \
               solver.inventory.gruneisen == 0, \
               'Error, amending_outflow is not implemented for compressible flow!'
        return
示例#4
0
    def initialize(self, solver):
        Coupler.initialize(self, solver)

        # the embedded solver should set its solver.bc.side_sbcs to on
        # otherwise, we have to stop
        assert solver.inventory.bc.inventory.side_sbcs == True, \
               'Error: esolver.bc.side_sbcs must be on!'

        # XXX: model/Exchanger/AreaWeightedNormal.cc
        # computeOutflow() and reduceOutflow() needs to be modified
        # to support compressible flow
        assert (not self.inventory.amending_outflow) or \
               solver.inventory.gruneisen == 0, \
               'Error, amending_outflow is not implemented for compressible flow!'
        return
示例#5
0
 def initialize(self, solver):
     Coupler.initialize(self, solver)
     return
示例#6
0
 def __init__(self, name, facility):
     Coupler.__init__(self, name, facility)
     return