pg_utils.pg_model.expansion
Define expansions of the fields. The methods and classes in this file are mainly for expanding fields in polar coordinates, in the unit disk (\(s \in (0, 1), \phi \in (0, \pi)\)).
These utilities depend on coordinate variables in the PG formulation, but are not directly linked to PG variables. As a result, classes and methods in this file will no longer be bound to use with PG-formulation-specific classes such as CollectionPG, but work with general LabeledCollection class and its instances.
This is mostly for flexible implementation. For instance, in eigenvalue problems, the radial magnetic field at the boundary and the corresponding evolution equation is often replaced by B-fields in cylindrical coordinates at the boundary; Lorentz force terms may be combined into one single dynamical variable, etc.
Module Attributes
Integers denoting the indices of the radial and azimuthal bases |
|
Integers denoting the indices of the radial and azimuthal bases |
|
Index for the radial test functions |
|
Index for the radial trial functions |
|
Angular frequency |
|
Integration variable for the radial direction |
|
|
|
|
|
Radial placeholder functions of PG fields in 2-D disk. |
|
Radial placeholder functions for conjugate variables in 2-D disk. |
|
Radial placeholder functions for reduced system in 2-D disk. |
Functions
|
Form the basis given on the power of s and H This set of bases is guaranteed to form an orthogonal bases in an approriate Hilbert space. |
|
Build collection of placeholder symbolic functions |
Classes
|
The top-level class used for spectral expansion, which defines the recipe concerning radial and azimuthal expansions. |
|
Fourier expansion for fields |
|
1-D (integration) inner product \(\langle a, b \rangle\) |
|
Inner product defined on 1-D function space \(\langle \cdot, \cdot \rangle\) |
|
Radial expansions, a collection of radial expansions for each field in the collection of dynamical variables. |
|
Collection of inner products |
|
Collection of radial functions used as test functions for reducing differential equations into algebraic form. |
|
Base class for different kinds of spectral expansions |
|
The top-level class for system of equations to be solved The equations are always assumed to be written in the first-order form in time, i.e. LHS = d()/dt. |
|
System matrix |