gbspy.pe module

This file compute the terms on the RHS of the electron pressure equation, as if it was calculated by gbs

gbspy.pe.pe_lhs(gsim, verbose=True, t1=None, t2=None)

Compute the LHS term of pe equation

Parameters
  • gsim (gbspy.Sim) – Simulation object.

  • verbose (bool, optional) – If True, plots the result before returning.

  • t1 (float, optional) – First time slice to load. By default, only the last available slice is loaded.

  • t2 (float, optional) – Last time slice to load. By default, only the last available slice is loaded.

Return type

pe_LHS

gbspy.pe.pe_rhs(gsim, verbose=True, t1=None, t2=None)

Compute RHS terms of tempe equation

A documentation for the returned variables can be found in the GBS documentation.

Parameters
  • gsim (gbspy.Sim) – Simulation object.

  • verbose (bool, optional) – If True, plots the result before returning.

  • t1 (float, optional) – First time slice to load. By default, only the last available slice is loaded.

  • t2 (float, optional) – Last time slice to load. By default, only the last available slice is loaded.

Returns

  • pe_rhs_nl, pe_rhs_cu, pe_rhs_pa, pe_rhs_em, pe_rhs_pd,

  • pe_rhs_so, pe_rhs_di (numpy.ndarray)