sfepy.solvers.oseen module

class sfepy.solvers.oseen.Oseen(conf, context=None, **kwargs)[source]

The Oseen solver for Navier-Stokes equations.

Kind: ‘nls.oseen’

For common configuration parameters, see Solver.

Specific configuration parameters:

Parameters:
stabil_matstr

The name of stabilization material.

adimensionalizebool (default: False)

If True, adimensionalize the problem (not implemented!).

check_navier_stokes_residualbool (default: False)

If True, check the Navier-Stokes residual after the nonlinear loop.

i_maxint (default: 1)

The maximum number of iterations.

eps_afloat (default: 1e-10)

The absolute tolerance for the residual, i.e. ||f(x^i)||.

eps_rfloat (default: 1.0)

The relative tolerance for the residual, i.e. ||f(x^i)|| /
||f(x^0)||.

machepsfloat (default: 2.220446049250313e-16)

The float considered to be machine “zero”.

lin_redfloat (default: 1.0)

The linear system solution error should be smaller than (eps_a * lin_red), otherwise a warning is printed.

lin_precisionfloat or None

If not None, the linear system solution tolerances are set in each nonlinear iteration relative to the current residual norm by the lin_precision factor. Ignored for direct linear solvers.

name = 'nls.oseen'
class sfepy.solvers.oseen.StabilizationFunction(name_map, gamma=None, delta=None, tau=None, tau_red=1.0, tau_mul=1.0, delta_mul=1.0, gamma_mul=1.0, diameter_mode='max')[source]

Definition of stabilization material function for the Oseen solver.

Notes

  • tau_red <= 1.0; if tau is None: tau = tau_red * delta

  • diameter mode: ‘edge’: longest edge ‘volume’: volume-based, ‘max’: max. of previous

get_maps()[source]

Get the maps of names and indices of variables in state vector.

setup(problem)[source]

Setup common problem-dependent data.

sfepy.solvers.oseen.are_close(a, b, rtol=0.2, atol=1e-08)[source]
sfepy.solvers.oseen.scale_matrix(mtx, indx, factor)[source]