butterfly.fvSolution module

Finite Volume Solution class.

class butterfly.fvSolution.FvSolution(values=None)[source]

Bases: butterfly.foamfile.FoamFile

Finite Volume Solution class.

classmethod from_file(filepath)[source]

Create a FoamFile from a file.

Parameters:filepath – Full file path to dictionary.
classmethod from_recipe(recipe=0)[source]

Generate fvSolution for a particular recipe.

Parameters:recipe – 0: incompressible, 1: heat transfer.
relaxationFactors

Get and set residual controls.

residualControl

Get and set residual controls.

class butterfly.fvSolution.RelaxationFactors(values)[source]

Bases: object

relaxationFactors class.

values

Values as a dictionary.

ToString()[source]

Overwrite .NET ToString method.

isRelaxationFactors

Return True.

values
class butterfly.fvSolution.ResidualControl(values)[source]

Bases: object

Residual Control class.

values

Values as a dictionary.

ToString()[source]

Overwrite .NET ToString method.

isResidualControl

Return True.

values