butterfly.decomposeParDict module

decomposeParDict class.

Decompose parameters for parallel runs.

class butterfly.decomposeParDict.DecomposeParDict(values=None)[source]

Bases: butterfly.foamfile.FoamFile

DecomposeParDict class.

classmethod from_file(filepath)[source]

Create a FoamFile from a file.

Parameters:filepath – Full file path to dictionary.
numberOfSubdomains

Get number of total subdomains.

classmethod scotch(numberOfSubdomains=2)[source]

Scotch method.

Parameters:numberOfSubdomains – Total number of subdomains (default: 2).
classmethod simple(numberOfSubdomains_xyz=None, delta=0.001)[source]

Simple method.

Parameters:
  • numberOfSubdomains_xyz – Number of subdomains in x, y, z as a tuple (default: (2, 1, 1))
  • delta – Cell skew factor (default: 0.001).