![]() |
Sapphire++
v1.3.0-121-g2682132 |
Calculate the matrices of the PDE system. More...
#include <pde-system.h>
Public Member Functions | |
| PDESystem (const unsigned int expansion_order) | |
| void | compute_coupling_tables (const unsigned int dim_cs, const VFPFlags vfp_flags, dealii::Table< 2, dealii::DoFTools::Coupling > &cell_integrals_mask, dealii::Table< 2, dealii::DoFTools::Coupling > &face_integrals_mask) const |
| Compute the coupling tables. | |
| const std::vector< dealii::LAPACKFullMatrix< double > > & | get_advection_matrices () const |
| Get the advection matrices object. | |
| const std::vector< dealii::LAPACKFullMatrix< double > > & | get_generator_rotation_matrices () const |
| Get the generator rotation matrices object. | |
| const dealii::Vector< double > & | get_collision_matrix () const |
| Get the collision matrix object. | |
| const std::vector< dealii::LAPACKFullMatrix< double > > & | get_adv_mat_products () const |
| Get the adv mat products object. | |
| const std::vector< dealii::LAPACKFullMatrix< double > > & | get_adv_cross_gen () const |
| Get the adv cross gen object. | |
| const std::vector< dealii::LAPACKFullMatrix< double > > & | get_t_matrices () const |
| Get the t matrices object. | |
| template<typename StreamType> | |
| void | print_lms_indices (StreamType &os) const |
| Print the lms indices ordering. | |
| void | print_advection_matrices (std::ostream &os) const |
| Print the advection matrices. | |
| void | print_generator_rotation_matrices (std::ostream &os) const |
| Print the generator rotation matrices. | |
| void | print_collision_matrix (std::ostream &os) const |
| Print the collision matrix. | |
| void | print_adv_mat_products (std::ostream &os) const |
| Print the adv mat products. | |
| void | print_adv_cross_gen (std::ostream &os) const |
| Print the adv cross gen. | |
| void | print_t_matrices (std::ostream &os) const |
| Print the t matrices. | |
| void | print_pde_system (std::ostream &os) const |
| Print the full PDE system. | |
Static Public Member Functions | |
| static std::vector< std::array< unsigned int, 3 > > | create_lms_indices (const unsigned int system_size) |
| Create a mapping between the system index \( i \) and the spherical harmonic indices \( (l,m,s) \). | |
| static std::vector< std::string > | create_component_name_list (const unsigned int system_size, const std::string &prefix="f_") |
| Create a list of component names, f_lms. | |
Public Attributes | |
| const unsigned int | expansion_order |
| const unsigned int | system_size |
| Size of the system. | |
| const std::vector< std::array< unsigned int, 3 > > | lms_indices |
| Map between system index \( i \) and spherical harmonic indices \( (l,m,s) \). | |
Calculate the matrices of the PDE system.
This class calculates everything related to the PDE system resulting from the VFP equation, including the mapping between the indices and the matrices resulting from the expansion.
| sapphirepp::VFP::PDESystem::PDESystem | ( | const unsigned int | expansion_order | ) |
Constructor
| void sapphirepp::VFP::PDESystem::compute_coupling_tables | ( | const unsigned int | dim_cs, |
| const VFPFlags | vfp_flags, | ||
| dealii::Table< 2, dealii::DoFTools::Coupling > & | cell_integrals_mask, | ||
| dealii::Table< 2, dealii::DoFTools::Coupling > & | face_integrals_mask ) const |
|
static |
Create a list of component names, f_lms.
| system_size | Number of expansion coefficients, normally \( (l_{\rm max} + 1)^2 \). |
| prefix | Prefix for the component names. |
|
static |
Create a mapping between the system index \( i \) and the spherical harmonic indices \( (l,m,s) \).
| system_size | Number of expansion coefficients, normally \( (l_{\rm max} + 1)^2 \). |
| const std::vector< dealii::LAPACKFullMatrix< double > > & sapphirepp::VFP::PDESystem::get_adv_cross_gen | ( | ) | const |
Get the adv cross gen object.
| const std::vector< dealii::LAPACKFullMatrix< double > > & sapphirepp::VFP::PDESystem::get_adv_mat_products | ( | ) | const |
Get the adv mat products object.
| const std::vector< dealii::LAPACKFullMatrix< double > > & sapphirepp::VFP::PDESystem::get_advection_matrices | ( | ) | const |
Get the advection matrices object.
| const dealii::Vector< double > & sapphirepp::VFP::PDESystem::get_collision_matrix | ( | ) | const |
Get the collision matrix object.
| const std::vector< dealii::LAPACKFullMatrix< double > > & sapphirepp::VFP::PDESystem::get_generator_rotation_matrices | ( | ) | const |
Get the generator rotation matrices object.
| const std::vector< dealii::LAPACKFullMatrix< double > > & sapphirepp::VFP::PDESystem::get_t_matrices | ( | ) | const |
Get the t matrices object.
| void sapphirepp::VFP::PDESystem::print_adv_cross_gen | ( | std::ostream & | os | ) | const |
Print the adv cross gen.
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_adv_mat_products | ( | std::ostream & | os | ) | const |
Print the adv mat products.
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_advection_matrices | ( | std::ostream & | os | ) | const |
Print the advection matrices.
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_collision_matrix | ( | std::ostream & | os | ) | const |
Print the collision matrix.
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_generator_rotation_matrices | ( | std::ostream & | os | ) | const |
Print the generator rotation matrices.
| os | Output stream |
|
inline |
Print the lms indices ordering.
| StreamType | Type of the output stream |
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_pde_system | ( | std::ostream & | os | ) | const |
Print the full PDE system.
| os | Output stream |
| void sapphirepp::VFP::PDESystem::print_t_matrices | ( | std::ostream & | os | ) | const |
Print the t matrices.
| os | Output stream |
| const unsigned int sapphirepp::VFP::PDESystem::expansion_order |
Order of the spherical harmonic expansion
| const std::vector<std::array<unsigned int, 3> > sapphirepp::VFP::PDESystem::lms_indices |
Map between system index \( i \) and spherical harmonic indices \( (l,m,s) \).
The mapping is given by lms_indices[i] = {l,m,s}.
| const unsigned int sapphirepp::VFP::PDESystem::system_size |
Size of the system.
Size of system, i.e. the number of expansion coefficients and the size the quadratic matrices