def __init__(self, analyzer, argv=None, silent=False, splitThres=2048, logname="PyFoamSolve", server=False, lam=None, restart=False, compressLog=False, noLog=False, logTail=None, remark=None, parameters=None, jobId=None, echoCommandLine=None): """See AnalyzedRunner""" AnalyzedRunner.__init__(self, analyzer, argv, silent, logname, splitThres=splitThres, server=server, lam=lam, compressLog=compressLog, restart=restart, noLog=noLog, logTail=logTail, remark=remark, parameters=parameters, echoCommandLine=echoCommandLine, jobId=jobId) self.analyzer.addAnalyzer("Convergence", SteadyConvergedLineAnalyzer())
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, hardcopyTerminalOptions=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, gnuplotTerminal=None, remark=None, parameters=None, jobId=None, echoCommandLine=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, parameters=parameters, echoCommandLine=echoCommandLine, 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, hardcopyTerminalOptions=hardcopyTerminalOptions, writeFiles=writeFiles, raiseit=raiseit, progress=progress, singleFile=singleFile, writePickled=writePickled, gnuplotTerminal=gnuplotTerminal, plottingImplementation=plottingImplementation) self.steady = steady if self.steady: self.steadyAnalyzer = SteadyConvergedLineAnalyzer() self.addAnalyzer("Convergence", self.steadyAnalyzer)
class GnuplotRunner(GnuplotCommon, BasicRunner): def __init__(self, argv=None, smallestFreq=0., persist=None, quiet=False, splitThres=2048, plotLinear=True, plotCont=True, plotBound=True, plotIterations=False, plotCourant=False, plotExecution=False, plotDeltaT=False, customRegexp=None, hardcopy=False, hardcopyFormat="png", hardcopyPrefix=None, hardcopyTerminalOptions=None, writeFiles=False, server=False, lam=None, raiseit=False, steady=False, progress=False, longProgress=False, silent=False, restart=False, logname=None, compressLog=False, noLog=False, logTail=None, singleFile=False, writePickled=True, plottingImplementation=None, gnuplotTerminal=None, remark=None, parameters=None, jobId=None, echoCommandLine=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 or longProgress or silent, server=server, lam=lam, restart=restart, logname=logname, compressLog=compressLog, noLog=noLog, logTail=logTail, remark=remark, parameters=parameters, echoCommandLine=echoCommandLine, jobId=jobId) GnuplotCommon.__init__(self, "Gnuplotting", smallestFreq=smallestFreq, persist=persist, quiet=quiet, splitThres=splitThres, plotLinear=plotLinear, plotCont=plotCont, plotBound=plotBound, plotIterations=plotIterations, plotCourant=plotCourant, plotExecution=plotExecution, plotDeltaT=plotDeltaT, customRegexp=customRegexp, hardcopy=hardcopy, hardcopyFormat=hardcopyFormat, hardcopyPrefix=hardcopyPrefix, hardcopyTerminalOptions=hardcopyTerminalOptions, writeFiles=writeFiles, raiseit=raiseit, progress=progress, longProgress=longProgress, singleFile=singleFile, writePickled=writePickled, gnuplotTerminal=gnuplotTerminal, plottingImplementation=plottingImplementation) self.steady = steady if self.steady: self.steadyAnalyzer = SteadyConvergedLineAnalyzer() self.addAnalyzer("Convergence", self.steadyAnalyzer) def lineHandle(self, line): """Not to be called: Stops the solver""" GnuplotCommon.lineHandle(self, line) if self.steady: if not self.steadyAnalyzer.goOn(): self.stopGracefully() def stopHandle(self): """Not to be called: Restores controlDict""" GnuplotCommon.stopHandle(self) BasicRunner.stopHandle(self)
class GnuplotRunner(GnuplotCommon,BasicRunner): 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, parameters=None, jobId=None, echoCommandLine=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, parameters=parameters, echoCommandLine=echoCommandLine, 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) def lineHandle(self,line): """Not to be called: Stops the solver""" GnuplotCommon.lineHandle(self,line) if self.steady: if not self.steadyAnalyzer.goOn(): self.stopGracefully() def stopHandle(self): """Not to be called: Restores controlDict""" GnuplotCommon.stopHandle(self) BasicRunner.stopHandle(self)
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, hardcopyTerminalOptions=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, gnuplotTerminal=None, remark=None, parameters=None, jobId=None, echoCommandLine=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, parameters=parameters, echoCommandLine=echoCommandLine, 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, hardcopyTerminalOptions=hardcopyTerminalOptions, writeFiles=writeFiles, raiseit=raiseit, progress=progress, singleFile=singleFile, writePickled=writePickled, gnuplotTerminal=gnuplotTerminal, plottingImplementation=plottingImplementation) self.steady=steady if self.steady: self.steadyAnalyzer=SteadyConvergedLineAnalyzer() self.addAnalyzer("Convergence",self.steadyAnalyzer)