pg_utils.pg_model.base_utils

Utilities for PG model Jingtao Min @ ETH-EPM, 09.2023

Functions

assemble_background(B0[, Psi0, mode])

Assemble background fields

extract_symbols(var_collection)

Return a collection of symbols, whose names are specified by the input collection items

field_to_moment(B_field)

Convert magnetic field to integrated quadratic moments.

fields_in_term(expr, field_collection)

Extract all fields in a term from a collection.

integrate_asym(field)

equatorially antisymmetric / odd integral

integrate_sym(field)

Equatorially symmetric / even integral

linearize(expr, *subs_maps[, perturb_var])

Linearize expression