|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Gaussian-envelope traveling wave packet stimulus. More...


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