|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Fresnel-style zone plate stimulus with quadratic radial phase. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusZonePlateConfig |
| Configuration for a Fresnel-style zone plate stimulus. More... | |
Typedefs | |
| typedef struct SimStimulusZonePlateConfig | SimStimulusZonePlateConfig |
| Configuration for a Fresnel-style zone plate stimulus. | |
Functions | |
| SimResult | sim_add_stimulus_zone_plate_operator (struct SimContext *context, const SimStimulusZonePlateConfig *config, size_t *out_index) |
| Register a Fresnel-style zone plate stimulus operator. | |
| SimResult | sim_stimulus_zone_plate_config (struct SimContext *context, size_t operator_index, SimStimulusZonePlateConfig *out_config) |
| Copy the current zone-plate configuration from a registered operator. | |
| SimResult | sim_stimulus_zone_plate_update (struct SimContext *context, size_t operator_index, const SimStimulusZonePlateConfig *config) |
| Replace or renormalize a registered zone-plate stimulus configuration. | |
Fresnel-style zone plate stimulus with quadratic radial phase.
Evaluates a local plate frame (u, v) and injects A * exp(-0.5 * ((u/a_u)^2 + (v/a_v)^2))
Real fields receive the real component. Complex fields receive the full complex pattern with an additional global rotation.
| SimResult sim_add_stimulus_zone_plate_operator | ( | struct SimContext * | context, |
| const SimStimulusZonePlateConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a Fresnel-style zone plate stimulus operator.
The implementation copies and normalizes config, then registers a split operator that writes the quadratic radial phase pattern into the target field.
| context | Simulation context that will own the operator. | |
| config | Optional zone-plate configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_zone_plate_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusZonePlateConfig * | out_config | ||
| ) |
Copy the current zone-plate configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_zone_plate_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_zone_plate_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusZonePlateConfig * | config | ||
| ) |
Replace or renormalize a registered zone-plate 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 zone-plate operator to update. |
| config | Optional replacement configuration. |