pyoomph.equations.SUPG module

class pyoomph.equations.SUPG.ElementSizeForSUPG(*, varname='_supg_elemsize')[source]

Bases: Equations

Projects the size (length/area/volume) of each element to a discontinuous "D0" space. Can be used for SUPG stabilization by getting the characteristic element length scale via get_element_h().

Parameters:

varname (str) – Name of the variable to store the element size (length/area/volume)

get_element_h(domain=None)[source]

Returns the characteristic element length scale by taking the d-th root of the element size (length/area/volume), where d is the dimension of the element.

Parameters:

domain (Union[str, FiniteElementCodeGenerator, None]) – Can be used for code generation to specify the domain of the variable. If None, the domain is inferred from the context.

Return type:

Expression

Returns:

The typical length scale of the element.