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

Back to modules overview

Grid-generation utilities for one-dimensional coordinates.

View module source on GitHub

Public API

SymbolTypeSummary
generate_gridfunctionReturn face coordinates and optionally cell-center coordinates.
non_uniform_gridfunctionGenerate a one-dimensional stretched face grid.

generate_grid(size, x_f = None, generate_x_c = False, x_c = None)

Open dedicated reference page

Return face coordinates and optionally cell-center coordinates.

Parameters

Returns

Raises

View source on GitHub

non_uniform_grid(left_bound, right_bound, num_points, dx_inf, factor)

Open dedicated reference page

Generate a one-dimensional stretched face grid.

Parameters

Returns

View source on GitHub