|
SpECTRE
v2026.09.05
|
Holds the system-agnostic subcell parameters, such as numbers controlling when to switch between DG and subcell. More...
#include <SubcellOptions.hpp>
Classes | |
| struct | AlwaysUseSubcells |
| If true, then we always use the subcell method, not DG. More... | |
| struct | EnableExtensionDirections |
| If true, then we allow extension directions to be used for computing the ghost points in the FD subcell method to avoid extrapolation. More... | |
| struct | FdInterpolationOrder |
| FD to FD interpolation order. More... | |
| struct | FdToDgTci |
| struct | FiniteDifferenceDerivativeOrder |
| The order of the FD derivative used. More... | |
| struct | MinimumClearTcis |
| The number of time steps/TCI calls that the TCI needs to have decided switching to DG is fine before we actually do the switch. More... | |
| struct | MinTciCallsAfterRollback |
| The number of time steps/TCI calls after a switch from DG to FD before we allow switching back to DG. More... | |
| struct | NumberOfStepsBetweenTciCalls |
| The number of time steps taken between calls to the TCI to check if we can go back to the DG grid. A value of 1 means every time step, while 2 means every other time step. More... | |
| struct | PerssonExponent |
| The exponent \(\alpha\) passed to the Persson troubled-cell indicator. More... | |
| struct | PerssonNumHighestModes |
| The number of highest modes the Persson troubled-cell indicator monitors. More... | |
| struct | PerssonTci |
| struct | RdmpDelta0 |
| The \(\delta_0\) parameter in the relaxed discrete maximum principle troubled-cell indicator. More... | |
| struct | RdmpEpsilon |
| The \(\epsilon\) parameter in the relaxed discrete maximum principle troubled-cell indicator. More... | |
| struct | RdmpTci |
| struct | SubcellToDgReconstructionMethod |
| Method to use for reconstructing the DG solution from the subcell solution. More... | |
| struct | TroubledCellIndicator |
| Parameters related to the troubled cell indicator (TCI) that determines when to switch between DG and FD. More... | |
| struct | UseHalo |
| Use a width-one halo of FD elements around any troubled element. More... | |
Public Types | |
| using | options |
Public Member Functions | |
| SubcellOptions (double persson_exponent, size_t persson_num_highest_modes, double rdmp_delta0, double rdmp_epsilon, bool always_use_subcells, bool enable_extension_directions, fd::ReconstructionMethod recons_method, bool use_halo, ::fd::DerivativeOrder finite_difference_derivative_order, size_t number_of_steps_between_tci_calls, size_t min_tci_calls_after_rollback, size_t min_clear_tci_before_dg, size_t fd_to_fd_interp_order=1_st) | |
| void | pup (PUP::er &p) |
| double | persson_exponent () const |
| size_t | persson_num_highest_modes () const |
| double | rdmp_delta0 () const |
| double | rdmp_epsilon () const |
| bool | always_use_subcells () const |
| bool | enable_extension_directions () const |
| fd::ReconstructionMethod | reconstruction_method () const |
| bool | use_halo () const |
| size_t | get_fd_to_fd_interp_order () const |
| ::fd::DerivativeOrder | finite_difference_derivative_order () const |
| size_t | number_of_steps_between_tci_calls () const |
| The number of time steps between when we check the TCI to see if we can switch from FD back to DG. | |
| size_t | min_tci_calls_after_rollback () const |
| The number of time steps after a rollback before we check the TCI to see if we can switch from FD back to DG. | |
| size_t | min_clear_tci_before_dg () const |
| The number of times the TCI must have flagged that we can switch back to DG before doing so. | |
Static Public Attributes | |
| static constexpr Options::String | help |
Friends | |
| bool | operator== (const SubcellOptions &lhs, const SubcellOptions &rhs) |
Holds the system-agnostic subcell parameters, such as numbers controlling when to switch between DG and subcell.
| using evolution::dg::subcell::SubcellOptions::options |
|
inline |
The number of times the TCI must have flagged that we can switch back to DG before doing so.
Note that if we only check the TCI every number_of_steps_between_tci_calls() then it takes number_of_steps_between_tci_calls * min_clear_tci_before_dg time steps before switching from FD back to DG.
`0 means
|
staticconstexpr |