PyFoam.Applications.FunkyDoCalcFiles module

Application class that implements pyFoamFunkyDoCalcFiles.py

class PyFoam.Applications.FunkyDoCalcFiles.FunkyDoCalcData(d)[source]

Bases: object

_FunkyDoCalcData__binop(other, op)
__dict__ = mappingproxy({'__module__': 'PyFoam.Applications.FunkyDoCalcFiles', '__init__': <function FunkyDoCalcData.__init__>, '__repr__': <function FunkyDoCalcData.__repr__>, '_FunkyDoCalcData__binop': <function FunkyDoCalcData.__binop>, '__getitem__': <function FunkyDoCalcData.__getitem__>, '__sub__': <function FunkyDoCalcData.__sub__>, '__div__': <function FunkyDoCalcData.__div__>, '__dict__': <attribute '__dict__' of 'FunkyDoCalcData' objects>, '__weakref__': <attribute '__weakref__' of 'FunkyDoCalcData' objects>, '__doc__': None})
__div__(other)[source]
__getitem__(k)[source]
__init__(d)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'PyFoam.Applications.FunkyDoCalcFiles'
__repr__()[source]

Return repr(self).

__sub__(other)[source]
__weakref__

list of weak references to the object (if defined)

class PyFoam.Applications.FunkyDoCalcFiles.FunkyDoCalcFile(fName)[source]

Bases: object

The actual file

_FunkyDoCalcFile__accumulate(func)
__dict__ = mappingproxy({'__module__': 'PyFoam.Applications.FunkyDoCalcFiles', '__doc__': 'The actual file', '__init__': <function FunkyDoCalcFile.__init__>, 'compare': <function FunkyDoCalcFile.compare>, 'calcTolerances': <function FunkyDoCalcFile.calcTolerances>, '_FunkyDoCalcFile__accumulate': <function FunkyDoCalcFile.__accumulate>, 'min': <property object>, 'max': <property object>, 'absmax': <property object>, 'span': <property object>, 'spec': <property object>, 'expressions': <property object>, 'times': <property object>, '__getitem__': <function FunkyDoCalcFile.__getitem__>, '__dict__': <attribute '__dict__' of 'FunkyDoCalcFile' objects>, '__weakref__': <attribute '__weakref__' of 'FunkyDoCalcFile' objects>})
__getitem__(tm)[source]
__init__(fName)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'PyFoam.Applications.FunkyDoCalcFiles'
__weakref__

list of weak references to the object (if defined)

property absmax
calcTolerances(digits)[source]
compare(other, digits=5, times=None, additionalDigits=0)[source]
property expressions
property max
property min
property span
property spec
property times
class PyFoam.Applications.FunkyDoCalcFiles.FunkyDoCalcFiles(args=None, **kwargs)[source]

Bases: PyFoam.Applications.PyFoamApplication.PyFoamApplication

__init__(args=None, **kwargs)[source]
Parameters
  • description – description of the command

  • epilog – text to be printed after the options-help

  • examples – usage examples to be printed after the epilog

  • usage – Usage

  • interspersed – Is the command line allowed to be interspersed (options after the arguments)

  • args – Command line arguments when using the Application as a ‘class’ from a script

  • nr – Number of required arguments

  • changeVersion – May this application change the version of OF used?

  • exactNr – Must not have more than the required number of arguments

  • subcommands – parse and use subcommands from the command line. Either True or a list with subcommands

  • inputApp – Application with input data. Used to allow a ‘pipe-like’ behaviour if the class is used from a Script

  • localConfigurationFile – Use this file (or list of files) as a local configuration

  • findLocalConfigurationFile – Method to find a configuration file BEFORE the actual parameters are parsed

  • allowCurses – This application can wrap the output in a curses-window

__module__ = 'PyFoam.Applications.FunkyDoCalcFiles'
addOptions()[source]

Add options to the parser

run()[source]

Run the real application