|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Legacy simple sinusoidal forcing operator (single-mode driver). More...


Go to the source code of this file.
Classes | |
| struct | StimulusOperatorConfig |
| Configuration parameters for the legacy sinusoidal stimulus operator. More... | |
Typedefs | |
| typedef struct StimulusOperatorConfig | StimulusOperatorConfig |
| Configuration parameters for the legacy sinusoidal stimulus operator. | |
Functions | |
| SimResult | sim_add_stimulus_operator (struct SimContext *context, const StimulusOperatorConfig *config, size_t *out_index) |
| Register the legacy single-mode sinusoidal stimulus operator. | |
| SimResult | sim_stimulus_config (struct SimContext *context, size_t operator_index, StimulusOperatorConfig *out_config) |
| Copy the current legacy stimulus configuration from a registered operator. | |
| SimResult | sim_stimulus_update (struct SimContext *context, size_t operator_index, const StimulusOperatorConfig *config) |
| Replace or renormalize a registered legacy stimulus configuration. | |
Legacy simple sinusoidal forcing operator (single-mode driver).
For richer stimuli (chirp, traveling Gaussian), prefer the operators in sinusoidal.h and gaussian.h. Supports real and complex fields; complex writes can include a phase rotation.
| SimResult sim_add_stimulus_operator | ( | struct SimContext * | context, |
| const StimulusOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register the legacy single-mode sinusoidal stimulus operator.
The implementation copies and normalizes config, then registers a split operator that adds a real sinusoidal forcing term to the target field. Complex targets receive the forcing in the real component.
| context | Simulation context that will own the operator. | |
| config | Optional stimulus configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| StimulusOperatorConfig * | out_config | ||
| ) |
Copy the current legacy stimulus configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const StimulusOperatorConfig * | config | ||
| ) |
Replace or renormalize a registered legacy stimulus configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the legacy stimulus operator to update. |
| config | Optional replacement configuration. |