snappy.SmoothControls#

class SmoothControls#

Bases: Flow360BaseModel

Mesh smoothing controls.

Attributes

lambda_factor: float#

Controls the strength of smoothing in a single iteration.

Default:

0.7

mu_factor: float#

Controls the strength of geometry inflation during a single iteration. It is reccomended to set mu to be a little higher than lambda.

Default:

0.71

iterations: int#

Number of smoothing iterations.

Default:

5

Additional Constructors

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None