|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Finite-difference curl-like scalar operator for two vector components. More...


Go to the source code of this file.
Classes | |
| struct | SimCurlOperatorConfig |
| Configuration for a finite-difference scalar curl operator. More... | |
Macros | |
| #define | SIM_CURL_AXIS_AUTO ((size_t)SIZE_MAX) |
Typedefs | |
| typedef enum SimCurlStencil | SimCurlStencil |
| Finite-difference stencils available for curl derivatives. | |
| typedef struct SimCurlOperatorConfig | SimCurlOperatorConfig |
| Configuration for a finite-difference scalar curl operator. | |
Enumerations | |
| enum | SimCurlStencil { SIM_CURL_STENCIL_CENTRAL_2 = 0 , SIM_CURL_STENCIL_CENTRAL_4 , SIM_CURL_STENCIL_FORWARD_1 , SIM_CURL_STENCIL_BACKWARD_1 , SIM_CURL_STENCIL_FORWARD_2 , SIM_CURL_STENCIL_BACKWARD_2 } |
| Finite-difference stencils available for curl derivatives. More... | |
Functions | |
| SimResult | sim_add_curl_operator (struct SimContext *context, const SimCurlOperatorConfig *config, size_t *out_index) |
| Register a finite-difference curl operator. | |
| SimResult | sim_curl_config (struct SimContext *context, size_t operator_index, SimCurlOperatorConfig *out_config) |
| Copy the current curl configuration from a registered operator. | |
| SimResult | sim_curl_update (struct SimContext *context, size_t operator_index, const SimCurlOperatorConfig *config) |
| Replace the configuration of a registered curl operator. | |
Finite-difference curl-like scalar operator for two vector components.
| enum SimCurlStencil |
Finite-difference stencils available for curl derivatives.
| SimResult sim_add_curl_operator | ( | struct SimContext * | context, |
| const SimCurlOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a finite-difference curl operator.
| context | Simulation context that will own the operator. | |
| config | Optional curl configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_curl_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimCurlOperatorConfig * | out_config | ||
| ) |
Copy the current curl configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_curl_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_curl_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimCurlOperatorConfig * | config | ||
| ) |
Replace the configuration of a registered curl operator.
config is required. The replacement is normalized and field compatibility is checked before storing it.
| context | Simulation context containing the operator. |
| operator_index | Index of the curl operator to update. |
| config | Replacement curl configuration. |