|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Checkerboard / stripe pattern stimulus (complex-capable). More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusCheckerboardConfig |
| Configuration for checkerboard or stripe pattern stimulus writes. More... | |
Typedefs | |
| typedef struct SimStimulusCheckerboardConfig | SimStimulusCheckerboardConfig |
| Configuration for checkerboard or stripe pattern stimulus writes. | |
Functions | |
| SimResult | sim_add_stimulus_checkerboard_operator (struct SimContext *context, const SimStimulusCheckerboardConfig *config, size_t *out_index) |
| Register a checkerboard or stripe stimulus operator. | |
| SimResult | sim_stimulus_checkerboard_config (struct SimContext *context, size_t operator_index, SimStimulusCheckerboardConfig *out_config) |
| Copy the current checkerboard configuration from a registered operator. | |
| SimResult | sim_stimulus_checkerboard_update (struct SimContext *context, size_t operator_index, const SimStimulusCheckerboardConfig *config) |
| Replace or renormalize a registered checkerboard stimulus configuration. | |
Checkerboard / stripe pattern stimulus (complex-capable).
Generates a static geometric pattern over 1D or 2D fields: f(i, j) = A · (-1)^{⌊i / Px⌋ + ⌊j / Py⌋} For complex fields, an additional global phase rotation is applied.
| SimResult sim_add_stimulus_checkerboard_operator | ( | struct SimContext * | context, |
| const SimStimulusCheckerboardConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a checkerboard or stripe stimulus operator.
The implementation copies and normalizes config, then registers a split operator that writes the geometric pattern into the configured target field.
| context | Simulation context that will own the operator. | |
| config | Optional checkerboard configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_checkerboard_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusCheckerboardConfig * | out_config | ||
| ) |
Copy the current checkerboard configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_checkerboard_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_checkerboard_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusCheckerboardConfig * | config | ||
| ) |
Replace or renormalize a registered checkerboard stimulus configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update refreshes derived state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the checkerboard operator to update. |
| config | Optional replacement configuration. |