Loading...
Searching...
No Matches
dynamic_engine_diagnostics.cpp File Reference
`#include "gridfire/engine/diagnostics/dynamic_engine_diagnostics.h"`
`#include "gridfire/engine/engine_abstract.h"`
`#include "gridfire/utils/table_format.h"`
`#include "fourdst/atomic/species.h"`
`#include "gridfire/engine/scratchpads/blob.h"`
`#include <vector>`
`#include <string>`
`#include <algorithm>`
Include dependency graph for dynamic_engine_diagnostics.cpp:

## Namespaces

namespace | gridfire
namespace | gridfire::engine
namespace | gridfire::engine::diagnostics

## Functions

std::optional< nlohmann::json > | gridfire::engine::diagnostics::report_limiting_species (scratch::StateBlob &ctx, const DynamicEngine &engine, const std::vector< double > &Y_full, const std::vector< double > &E_full, double relTol, double absTol, size_t top_n=10, bool json=false)
| Report the species that are limiting the accuracy of the integration. This is useful for identifying species that may be limiting the timestepping due to their high relative errors compared to the specified tolerances.
std::optional< nlohmann::json > | gridfire::engine::diagnostics::inspect_species_balance (scratch::StateBlob &ctx, const DynamicEngine &engine, const std::string &species_name, const fourdst::composition::Composition &comp, double T9, double rho, bool json)
| Inspect the production and destruction balance of a specific species in the reaction network. This function analyzes the reactions that create and destroy the specified species, providing insights into potential imbalances that may affect the accuracy of the simulation.
std::optional< nlohmann::json > | gridfire::engine::diagnostics::inspect_jacobian_stiffness (scratch::StateBlob &ctx, const DynamicEngine &engine, const fourdst::composition::Composition &comp, double T9, double rho, bool json)
| Inspect the stiffness of the Jacobian matrix for the reaction network at the given temperature and density. This function evaluates the diagonal and off-diagonal elements of the Jacobian to identify potential numerical issues related to stiffness.