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

#include <Navier_stokes.hpp>

Public Member Functions

 Characteristics (Mat< n_var_euler > state, Mat< n_dim > direction)
 
Mat< 3 > eigvals ()
 get eigenvalues of Jacobian
 
Mat< dyn, 3 > decomp (Mat< dyn > 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, Turbulence_model turb = laminar>
template<int n_dim, int row_size>
class hexed::Navier_stokes< visc, turb >::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, Turbulence_model turb = laminar>
template<int n_dim, int row_size>
hexed::Navier_stokes< visc, turb >::Pde< n_dim, row_size >::Characteristics::Characteristics ( Mat< n_var_euler > 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, Turbulence_model turb = laminar>
template<int n_dim, int row_size>
Mat< dyn, 3 > hexed::Navier_stokes< visc, turb >::Pde< n_dim, row_size >::Characteristics::decomp ( Mat< dyn > 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: