flow360.AdaptiveCFL#

class AdaptiveCFL[source]#

Bases: Flow360BaseModel

AdaptiveCFL class for Adaptive CFL setting of time stepping.

Example

  • Set up Adaptive CFL with convergence limiting factor:

    >>> fl.AdaptiveCFL(convergence_limiting_factor=0.5)
    
  • Set up Adaptive CFL with max relative change:

    >>> fl.AdaptiveCFL(
    ...     min=1,
    ...     max=100000,
    ...     max_relative_change=50
    ... )
    

type: Literal['adaptive'] = 'adaptive'#
min: Annotated[float, Gt(gt=0)] = 0.1#

The minimum allowable value for Adaptive CFL.

Constraints:
  • gt = 0

max: Annotated[float, Gt(gt=0)] | None = None#

The maximum allowable value for Adaptive CFL.

max_relative_change: Annotated[float, Gt(gt=0)] | None = None#

The maximum allowable relative change of CFL (%) at each pseudo step. In unsteady simulations, the value of AdaptiveCFL.max_relative_change is updated automatically depending on how well the solver converges in each physical step.

convergence_limiting_factor: Annotated[float, Gt(gt=0)] | None = None#

This factor specifies the level of conservativeness when using Adaptive CFL. Smaller values correspond to a more conservative limitation on the value of CFL.

classmethod default_unsteady()[source]#

returns default unsteady Adaptive CFL settings

classmethod default_steady()[source]#

returns default steady Adaptive CFL settings