Пример #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