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.interpolate

Back to modules overview

Interpolation utilities between cell-centered and staggered grids.

View module source on GitHub

Public API

SymbolTypeSummary
compute_boundary_valuesfunctionCompute boundary values and boundary-normal gradients.
construct_boundary_value_matricesfunctionBuild matrices that evaluate boundary values from cell-centered unknowns.
create_staggered_arrayfunctionCreate a face/staggered field from scalar, centered, or staggered input.
interp_cntr_to_staggfunctionInterpolate cell-centered values to face/staggered locations.
interp_cntr_to_stagg_tvdfunctionPerform TVD interpolation from cell centers to faces.
interp_stagg_to_cntrfunctionInterpolate face/staggered values to cell centers.

compute_boundary_values(cell_centered_values, x_f, x_c = None, bc = None, axis = 0, bound_id = None)

Open dedicated reference page

Compute boundary values and boundary-normal gradients.

Parameters

Returns

View source on GitHub

construct_boundary_value_matrices(shape, x_f, x_c = None, bc = None, axis = 0, bound_id = 0, shape_d = None, format = 'csc')

Open dedicated reference page

Build matrices that evaluate boundary values from cell-centered unknowns.

Parameters

Returns

View source on GitHub

create_staggered_array(array, shape, axis, x_f = None, x_c = None)

Open dedicated reference page

Create a face/staggered field from scalar, centered, or staggered input.

Parameters

Returns

View source on GitHub

interp_cntr_to_stagg(cell_centered_values, x_f, x_c = None, axis = 0)

Open dedicated reference page

Interpolate cell-centered values to face/staggered locations.

Parameters

Returns

View source on GitHub

interp_cntr_to_stagg_tvd(cell_centered_values, x_f, x_c = None, bc = None, v = 0, tvd_limiter = None, axis = 0)

Open dedicated reference page

Perform TVD interpolation from cell centers to faces.

Parameters

Returns

View source on GitHub

interp_stagg_to_cntr(staggered_values, x_f, x_c = None, axis = 0)

Open dedicated reference page

Interpolate face/staggered values to cell centers.

Parameters

Returns

View source on GitHub