def simulate( self, simTime, simDt = 1e-3, plotDt = None ):
        '''Simulate the cable '''

        if plotDt is None:
            plotDt = simDt / 2
        self.simDt = simDt
        self.plotDt = plotDt
        self.setupDUT( )
 
        # Setup clocks 
        utils.dump("STEP", "Setting up the clocks ... ")
        moose.setClock( 0, self.simDt )
        moose.setClock( 1, self.simDt )
        moose.setClock( 2, self.simDt )

        ## Use clocksc
        moose.useClock( 0, '/cable/##'.format(self.cablePath), 'process' )
        moose.useClock( 1, '/cable/##'.format(self.cablePath), 'init' )
        moose.useClock( 2, '{}/##'.format(self.tablePath), 'process' )

        utils.dump("STEP"
                , [ "Simulating cable for {} sec".format(simTime)
                    , " simDt: %s, plotDt: %s" % ( self.simDt, self.plotDt )
                    ]
                )
        self.setupHSolve( )
        moose.reinit( )
        utils.verify( )
        moose.start( simTime )
示例#2
0
    def simulate(self, simTime, simDt=1e-3, plotDt=None):
        '''Simulate the cable '''

        if plotDt is None:
            plotDt = simDt / 2
        self.simDt = simDt
        self.plotDt = plotDt
        self.setupDUT()

        # Setup clocks
        utils.dump("STEP", "Setting up the clocks ... ")
        moose.setClock(0, self.simDt)
        moose.setClock(1, self.simDt)
        moose.setClock(2, self.simDt)

        ## Use clocksc
        moose.useClock(0, '/cable/##'.format(self.cablePath), 'process')
        moose.useClock(1, '/cable/##'.format(self.cablePath), 'init')
        moose.useClock(2, '{}/##'.format(self.tablePath), 'process')

        utils.dump("STEP", [
            "Simulating cable for {} sec".format(simTime),
            " simDt: %s, plotDt: %s" % (self.simDt, self.plotDt)
        ])
        self.setupHSolve()
        moose.reinit()
        utils.verify()
        moose.start(simTime)
示例#3
0
def simulate(runTime, dt):
    """ Simulate the cable """
    moose.useClock(0, '/cable/##', 'process')
    moose.useClock(0, '/cable/##', 'init')
    moose.useClock(1, '/##', 'process')
    moose.reinit()
    setupSolver(hsolveDt=dt)
    utils.verify()
    moose.start(runTime)
def simulate( runTime, dt):
    """ Simulate the cable """
    moose.useClock(0, '/cable/##', 'process')
    moose.useClock(0, '/cable/##', 'init')
    moose.useClock(1, '/##', 'process')
    moose.reinit()
    setupSolver( hsolveDt = dt )
    utils.verify()
    moose.start( runTime )
    def simulate(self, simTime, simDt, plotDt=None):
        """Simulate the cable 
        """
        self.simDt = simDt
        self.setupDUT()

        # Setup clocks
        moose.setClock(0, self.simDt)

        # Use clocks
        moose.useClock(0, "/##", "process")
        moose.useClock(0, "/##", "init")

        utils.dump("STEP", ["Simulating cable for {} sec".format(simTime), " simDt: %s" % self.simDt])
        utils.verify()
        moose.reinit()
        self.setupSolver()
        moose.start(simTime)
示例#6
0
    def simulate(self, simTime, simDt, plotDt=None):
        '''Simulate the cable
        '''
        self.simDt = simDt
        self.setupDUT()

        # Setup clocks
        moose.setClock(0, self.simDt)

        # Use clocks
        moose.useClock(0, '/##', 'process')
        moose.useClock(0, '/##', 'init')

        utils.dump("STEP", [
            "Simulating cable for {} sec".format(simTime),
            " simDt: %s" % self.simDt
        ])
        utils.verify()
        moose.reinit()
        self.setupSolver()
        moose.start(simTime)