hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::pde::Navier_stokes< visc >::Pde< n_dim, row_size >::Characteristics Class Reference

#include <pde.hpp>

Public Member Functions

 Characteristics (Mat< n_var > state, Mat< n_dim > direction)
 
Mat< 3 > eigvals ()
 get eigenvalues of Jacobian
 
Mat< n_var, 3 > decomp (Mat< n_var > state)
 Decompose a state vector into eigenspaces. Column j should be an eigenvector of the Jacobian with eigenvalue eigvals()(j) and the sum of the columns should be state.
 

Detailed Description

template<bool visc = false>
template<int n_dim, int row_size>
class hexed::pde::Navier_stokes< visc >::Pde< n_dim, row_size >::Characteristics

Decomposes state vectors into characteristics which are eigenvectors of the Jacobian of the inviscid flux function. This is useful for characteristic-based boundary conditions.

Constructor & Destructor Documentation

◆ Characteristics()

template<bool visc = false>
template<int n_dim, int row_size>
hexed::pde::Navier_stokes< visc >::Pde< n_dim, row_size >::Characteristics::Characteristics ( Mat< n_var > state,
Mat< n_dim > direction )
inline

construct with a direction in which to compute the flux and a reference state vector about which to compute the Jacobian

Member Function Documentation

◆ decomp()

template<bool visc = false>
template<int n_dim, int row_size>
Mat< n_var, 3 > hexed::pde::Navier_stokes< visc >::Pde< n_dim, row_size >::Characteristics::decomp ( Mat< n_var > state)
inline

Decompose a state vector into eigenspaces. Column j should be an eigenvector of the Jacobian with eigenvalue eigvals()(j) and the sum of the columns should be state.

Todo
shouldn't this have a 0.5*?

The documentation for this class was generated from the following file: