PyFoam.IPythonHelpers.Case module

Encapsulate a case and give convenient access to certain applications

class PyFoam.IPythonHelpers.Case.Case(input)[source]

Bases: object

This class is initialized with a path and gives access to reporting functions

_Case__callCaseReport(region=None, level=3, **kwargs)

Helper function that does the actual calling of CaseReport and returning of the HTML-formatted output

_Case__getObjectName(obj)
_Case__getStorageName()
__dict__ = dict_proxy({'timelineInfo': <function timelineInfo>, '__module__': 'PyFoam.IPythonHelpers.Case', 'sampleInfo': <function sampleInfo>, 'sol': <property object>, 'longBoundaryConditions': <function longBoundaryConditions>, '__dict__': <attribute '__dict__' of 'Case' objects>, '__weakref__': <attribute '__weakref__' of 'Case' objects>, '__init__': <function __init__>, 'size': <function size>, 'dimensions': <function dimensions>, 'relaxationFactors': <function relaxationFactors>, 'regions': <property object>, 'decomposition': <function decomposition>, '_Case__getStorageName': <function __getStorageName>, 'timelineSelector': <function timelineSelector>, 'sampleField': <function sampleField>, '_Case__getObjectName': <function __getObjectName>, '__doc__': 'This class is initialized with a path and gives access to\n reporting functions\n\n ', 'distributionInfo': <function distributionInfo>, 'pickledData': <function pickledData>, 'boundaryConditions': <function boundaryConditions>, 'sampleSelector': <function sampleSelector>, 'timeline': <function timeline>, 'internalField': <function internalField>, 'path': <property object>, 'distribution': <function distribution>, '_Case__callCaseReport': <function __callCaseReport>, 'processorMatrix': <function processorMatrix>, 'sampleTime': <function sampleTime>, 'linearSolvers': <function linearSolvers>, 'pickledPlots': <function pickledPlots>, 'distributionSelector': <function distributionSelector>, 'pickledDataSelector': <function pickledDataSelector>, 'pickledPlotSelector': <function pickledPlotSelector>})
__init__(input)[source]
Parameters:input – either a SolutionDirectory-instance or a string

with a pathname

__module__ = 'PyFoam.IPythonHelpers.Case'
__weakref__

list of weak references to the object (if defined)

boundaryConditions(region=None, **kwargs)[source]
decomposition(region=None, **kwargs)[source]
dimensions(region=None, **kwargs)[source]
distribution(directory, line, time)[source]
distributionInfo(directory)[source]
distributionSelector(directoryName)[source]
internalField(region=None, **kwargs)[source]
linearSolvers(region=None, **kwargs)[source]
longBoundaryConditions(region=None, **kwargs)[source]
path

The path to the solution

pickledData(pickleFile)[source]
pickledDataSelector()[source]
pickledPlotSelector()[source]
pickledPlots(pickleFile)[source]
processorMatrix(region=None, **kwargs)[source]
regions

Regions in the case

relaxationFactors(region=None, **kwargs)[source]
sampleField(directory, line, field)[source]
sampleInfo(directory)[source]
sampleSelector(directoryName)[source]
sampleTime(directory, line, time)[source]
size(region=None, **kwargs)[source]
sol

The actual solution directory

timeline(directory, fieldname)[source]
timelineInfo(directory)[source]
timelineSelector(directoryName)[source]