|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Finite-energy separable Airy beam stimulus. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusAiryBeamConfig |
| Configuration for a finite-energy separable Airy beam stimulus. More... | |
Typedefs | |
| typedef struct SimStimulusAiryBeamConfig | SimStimulusAiryBeamConfig |
| Configuration for a finite-energy separable Airy beam stimulus. | |
Functions | |
| SimResult | sim_add_stimulus_airy_beam_operator (struct SimContext *context, const SimStimulusAiryBeamConfig *config, size_t *out_index) |
| Register a finite-energy Airy beam stimulus operator. | |
| SimResult | sim_stimulus_airy_beam_config (struct SimContext *context, size_t operator_index, SimStimulusAiryBeamConfig *out_config) |
| Copy the current Airy beam configuration from a registered operator. | |
| SimResult | sim_stimulus_airy_beam_update (struct SimContext *context, size_t operator_index, const SimStimulusAiryBeamConfig *config) |
| Replace or renormalize a registered Airy beam stimulus configuration. | |
Finite-energy separable Airy beam stimulus.
Evaluates a local beam frame (u, v) and injects A * Ai(u / s_u) * Ai(v / s_v) * exp(a_u * u / s_u + a_v * v / s_v)
Real fields receive the real component. Complex fields receive the full complex beam with an additional global rotation.
| SimResult sim_add_stimulus_airy_beam_operator | ( | struct SimContext * | context, |
| const SimStimulusAiryBeamConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a finite-energy Airy beam stimulus operator.
The implementation copies and normalizes config, then registers a split operator that writes the Airy beam into the configured target field.
| context | Simulation context that will own the operator. | |
| config | Optional Airy beam configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_airy_beam_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusAiryBeamConfig * | out_config | ||
| ) |
Copy the current Airy beam configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_airy_beam_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_airy_beam_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusAiryBeamConfig * | config | ||
| ) |
Replace or renormalize a registered Airy beam 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 Airy beam operator to update. |
| config | Optional replacement configuration. |