Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

pymrm.convect

Back to modules overview

Convective-flux operators and TVD limiter functions.

View module source on GitHub

Public API

SymbolTypeSummary
clamfunctionCompute the CLAM TVD correction in normalized-variable space.
construct_convflux_bcfunctionConstruct boundary-face upwind corrections and source terms.
construct_convflux_upwindfunctionConstruct a first-order upwind convective-flux operator.
construct_convflux_upwind_intfunctionConstruct the internal-face upwind advection operator.
minmodfunctionCompute the Minmod TVD correction in normalized-variable space.
musclfunctionCompute the MUSCL TVD correction in normalized-variable space.
osherfunctionCompute the Osher TVD correction in normalized-variable space.
smartfunctionCompute the SMART TVD correction in normalized-variable space.
stoicfunctionCompute the STOIC TVD correction in normalized-variable space.
upwindfunctionReturn zero correction (first-order upwind limiter).
vanleerfunctionCompute the van-Leer TVD correction in normalized-variable space.

clam(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the CLAM TVD correction in normalized-variable space.

View source on GitHub

construct_convflux_bc(shape, x_f, x_c = None, bc = (None, None), v = 1.0, axis = 0, shapes_d = (None, None), format = 'csc')

Open dedicated reference page

Construct boundary-face upwind corrections and source terms.

Parameters

Returns

View source on GitHub

construct_convflux_upwind(shape, x_f, x_c = None, bc = (None, None), v = 1.0, axis = 0, shapes_d = (None, None), format = 'csc')

Open dedicated reference page

Construct a first-order upwind convective-flux operator.

Parameters

Returns

View source on GitHub

construct_convflux_upwind_int(shape, v = 1.0, axis = 0, format = 'csc')

Open dedicated reference page

Construct the internal-face upwind advection operator.

Parameters

Returns

View source on GitHub

minmod(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the Minmod TVD correction in normalized-variable space.

View source on GitHub

muscl(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the MUSCL TVD correction in normalized-variable space.

View source on GitHub

osher(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the Osher TVD correction in normalized-variable space.

View source on GitHub

smart(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the SMART TVD correction in normalized-variable space.

View source on GitHub

stoic(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the STOIC TVD correction in normalized-variable space.

View source on GitHub

upwind(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Return zero correction (first-order upwind limiter).

View source on GitHub

vanleer(normalized_c_c, normalized_x_c, normalized_x_d)

Open dedicated reference page

Compute the van-Leer TVD correction in normalized-variable space.

View source on GitHub