feat(discretization): Added SystemLayout and associated helpers to allow for more robust access to parts of the block system

This commit is contained in:
2026-10-14 10:57:52 -04:00
parent 3ca1385a8c
commit d3ff5add71
6 changed files with 379 additions and 1 deletions

View File

@@ -14,6 +14,17 @@ namespace serif::discretization::blocks {
*/
struct block {};
/**
* @enum RepresentedValueKind
* @brief Enum representing the kind of value a block represents, either a physical quantity (value) or a residual (residual).
*
* Generally this is mostly used in the solver/normalization system.
*/
enum class RepresentedValueKind {
value, ///< A value representing a physical quantity (e.g., temperature, pressure).
residual ///< A residual representing the difference between the current state and the desired state in a numerical method.
};
/**
* @struct residual_block_base
* @brief Base class for residual blocks, derived from block.