GRINS-0.8.0
|
#include <cached_values.h>
Public Member Functions | |
CachedValues () | |
~CachedValues () | |
void | add_quantity (unsigned int quantity) |
void | add_quantities (const std::set< unsigned int > &cache_list) |
void | clear () |
bool | is_active (unsigned int quantity) |
void | set_values (unsigned int quantity, std::vector< libMesh::Number > &values) |
void | set_gradient_values (unsigned int quantity, std::vector< libMesh::Gradient > &values) |
void | set_vector_values (unsigned int quantity, std::vector< std::vector< libMesh::Number > > &values) |
void | set_vector_gradient_values (unsigned int quantity, std::vector< std::vector< libMesh::Gradient > > &values) |
const std::vector< libMesh::Number > & | get_cached_values (unsigned int quantity) const |
const std::vector< libMesh::Gradient > & | get_cached_gradient_values (unsigned int quantity) const |
const std::vector< std::vector< libMesh::Number > > & | get_cached_vector_values (unsigned int quantity) const |
const std::vector< std::vector< libMesh::Gradient > > & | get_cached_vector_gradient_values (unsigned int quantity) const |
unsigned int | size () const |
Protected Attributes | |
std::set< unsigned int > | _cache_list |
std::map< unsigned int, std::vector< libMesh::Number > > | _cached_values |
std::map< unsigned int, std::vector< libMesh::Gradient > > | _cached_gradient_values |
std::map< unsigned int, std::vector< std::vector< libMesh::Number > > > | _cached_vector_values |
std::map< unsigned int, std::vector< std::vector< libMesh::Gradient > > > | _cached_vector_gradient_values |
Definition at line 43 of file cached_values.h.
GRINS::CachedValues::CachedValues | ( | ) |
Definition at line 30 of file cached_values.C.
GRINS::CachedValues::~CachedValues | ( | ) |
Definition at line 35 of file cached_values.C.
void GRINS::CachedValues::add_quantities | ( | const std::set< unsigned int > & | cache_list | ) |
void GRINS::CachedValues::add_quantity | ( | unsigned int | quantity | ) |
void GRINS::CachedValues::clear | ( | ) |
Definition at line 52 of file cached_values.C.
References _cached_gradient_values, _cached_values, _cached_vector_gradient_values, and _cached_vector_values.
Referenced by GRINS::MultiphysicsSystem::_general_residual().
const std::vector< libMesh::Gradient > & GRINS::CachedValues::get_cached_gradient_values | ( | unsigned int | quantity | ) | const |
Definition at line 105 of file cached_values.C.
References _cached_gradient_values.
Referenced by GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_energy_time_deriv(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_mass_time_deriv(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_momentum_time_deriv(), and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::element_time_derivative().
const std::vector< libMesh::Number > & GRINS::CachedValues::get_cached_values | ( | unsigned int | quantity | ) | const |
Definition at line 99 of file cached_values.C.
References _cached_values.
Referenced by GRINS::GasRecombinationCatalyticWall< Chemistry >::apply_fluxes(), GRINS::GasSolidCatalyticWall< Chemistry >::apply_fluxes(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_energy_time_deriv(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_mass_time_deriv(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::assemble_momentum_time_deriv(), and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::element_time_derivative().
const std::vector< std::vector< libMesh::Gradient > > & GRINS::CachedValues::get_cached_vector_gradient_values | ( | unsigned int | quantity | ) | const |
Definition at line 117 of file cached_values.C.
References _cached_vector_gradient_values.
Referenced by GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::element_time_derivative().
const std::vector< std::vector< libMesh::Number > > & GRINS::CachedValues::get_cached_vector_values | ( | unsigned int | quantity | ) | const |
Definition at line 111 of file cached_values.C.
References _cached_vector_values.
Referenced by GRINS::GasRecombinationCatalyticWall< Chemistry >::apply_fluxes(), GRINS::GasSolidCatalyticWall< Chemistry >::apply_fluxes(), and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::element_time_derivative().
bool GRINS::CachedValues::is_active | ( | unsigned int | quantity | ) |
void GRINS::CachedValues::set_gradient_values | ( | unsigned int | quantity, |
std::vector< libMesh::Gradient > & | values | ||
) |
Definition at line 78 of file cached_values.C.
References _cached_gradient_values.
Referenced by GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::compute_element_time_derivative_cache(), and GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::compute_element_time_derivative_cache().
void GRINS::CachedValues::set_values | ( | unsigned int | quantity, |
std::vector< libMesh::Number > & | values | ||
) |
Definition at line 72 of file cached_values.C.
References _cached_values.
Referenced by GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::compute_element_time_derivative_cache(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::compute_element_time_derivative_cache(), and main().
void GRINS::CachedValues::set_vector_gradient_values | ( | unsigned int | quantity, |
std::vector< std::vector< libMesh::Gradient > > & | values | ||
) |
Definition at line 86 of file cached_values.C.
References _cached_vector_gradient_values.
Referenced by GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::compute_element_time_derivative_cache().
void GRINS::CachedValues::set_vector_values | ( | unsigned int | quantity, |
std::vector< std::vector< libMesh::Number > > & | values | ||
) |
Definition at line 93 of file cached_values.C.
References _cached_vector_values.
Referenced by GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::compute_element_time_derivative_cache(), and main().
|
inline |
|
protected |
Definition at line 81 of file cached_values.h.
Referenced by add_quantities(), add_quantity(), is_active(), and size().
|
protected |
Definition at line 84 of file cached_values.h.
Referenced by clear(), get_cached_gradient_values(), and set_gradient_values().
|
protected |
Definition at line 83 of file cached_values.h.
Referenced by clear(), get_cached_values(), and set_values().
|
protected |
Definition at line 86 of file cached_values.h.
Referenced by clear(), get_cached_vector_gradient_values(), and set_vector_gradient_values().
|
protected |
Definition at line 85 of file cached_values.h.
Referenced by clear(), get_cached_vector_values(), and set_vector_values().