Example #1
0
 def __init__(self,analyzer,
              argv=None,
              silent=False,
              logname="PyFoamSolve",
              server=False,
              lam=None,
              compressLog=False,
              restart=False,
              noLog=False,
              logTail=None,
              remark=None,
              jobId=None,
              smallestFreq=60.):
     """ @param analyzer: the analyzer for the output
     argv, silent, logname, server, lam, noLog - see BasicRunner"""
     BasicRunner.__init__(self,argv,silent,logname,
                          server=server,
                          lam=lam,
                          restart=restart,
                          compressLog=compressLog,
                          noLog=noLog,
                          logTail=logTail,
                          remark=remark,
                          jobId=jobId)
     StepAnalyzedCommon.__init__(self,
                                 logname,
                                 analyzer,
                                 smallestFreq=smallestFreq)
Example #2
0
 def __init__(self,
              analyzer,
              argv=None,
              silent=False,
              logname="PyFoamSolve",
              smallestFreq=0.,
              server=False,
              remark=None,
              jobId=None):
     """@param smallestFreq: the smallest intervall of real time (in seconds) that the time change is honored"""
     BasicRunner.__init__(self,
                          argv,
                          silent,
                          logname,
                          server=server,
                          remark=remark,
                          jobId=jobId)
     StepAnalyzedCommon.__init__(self,
                                 logname,
                                 analyzer,
                                 smallestFreq=smallestFreq)
Example #3
0
    def stopHandle(self):
        BasicRunner.stopHandle(self)
        StepAnalyzedCommon.stopHandle(self)

        self.tearDown()
Example #4
0
 def lineHandle(self,line):
     """Not to be called: calls the analyzer for the current line"""
     StepAnalyzedCommon.lineHandle(self,line)
     BasicRunner.lineHandle(self,line)
Example #5
0
 def __init__(self,
              argv=None,
              smallestFreq=0.,
              persist=None,
              plotLinear=True,
              plotCont=True,
              plotBound=True,
              plotIterations=False,
              plotCourant=False,
              plotExecution=False,
              plotDeltaT=False,
              customRegexp=None,
              hardcopy=False,
              hardcopyFormat="png",
              hardcopyPrefix=None,         
              writeFiles=False,
              server=False,
              lam=None,
              raiseit=False,
              steady=False,
              progress=False,
              restart=False,
              logname=None,
              compressLog=False,
              noLog=False,
              logTail=None,
              singleFile=False,
              writePickled=True,
              plottingImplementation=None,
              remark=None,
              jobId=None):
     """@param smallestFreq: smallest Frequency of output
     @param persist: Gnuplot window persistst after run
     @param steady: Is it a steady run? Then stop it after convergence"""
     BasicRunner.__init__(self,
                          argv=argv,
                          silent=progress,
                          server=server,
                          lam=lam,
                          restart=restart,
                          logname=logname,
                          compressLog=compressLog,
                          noLog=noLog,
                          logTail=logTail,
                          remark=remark,
                          jobId=jobId)
     GnuplotCommon.__init__(self,
                            "Gnuplotting",
                            smallestFreq=smallestFreq,
                            persist=persist,
                            plotLinear=plotLinear,
                            plotCont=plotCont,
                            plotBound=plotBound,
                            plotIterations=plotIterations,
                            plotCourant=plotCourant,
                            plotExecution=plotExecution,
                            plotDeltaT=plotDeltaT,
                            customRegexp=customRegexp,
                            hardcopy=hardcopy,
                            hardcopyFormat=hardcopyFormat,
                            hardcopyPrefix=hardcopyPrefix,
                            writeFiles=writeFiles,
                            raiseit=raiseit,
                            progress=progress,
                            singleFile=singleFile,
                            writePickled=writePickled,
                            plottingImplementation=plottingImplementation)
     self.steady=steady
     if self.steady:
         self.steadyAnalyzer=SteadyConvergedLineAnalyzer()
         self.addAnalyzer("Convergence",self.steadyAnalyzer)
Example #6
0
 def stopHandle(self):
     """Not to be called: Restores controlDict"""
     GnuplotCommon.stopHandle(self)
     BasicRunner.stopHandle(self)