|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Finite-difference Laplacian operator for 1D/2D fields. More...


Go to the source code of this file.
Classes | |
| struct | SimLaplacianOperatorConfig |
| Configuration for a finite-difference Laplacian operator. More... | |
Macros | |
| #define | SIM_LAPLACIAN_AXIS_AUTO ((size_t)SIZE_MAX) |
Typedefs | |
| typedef enum SimLaplacianStencil | SimLaplacianStencil |
| Finite-difference stencils available for Laplacian evaluation. | |
| typedef struct SimLaplacianOperatorConfig | SimLaplacianOperatorConfig |
| Configuration for a finite-difference Laplacian operator. | |
Enumerations | |
| enum | SimLaplacianStencil { SIM_LAPLACIAN_STENCIL_CROSS_2 = 0 , SIM_LAPLACIAN_STENCIL_CROSS_4 , SIM_LAPLACIAN_STENCIL_ISOTROPIC_9 } |
| Finite-difference stencils available for Laplacian evaluation. More... | |
Functions | |
| SimResult | sim_add_laplacian_operator (struct SimContext *context, const SimLaplacianOperatorConfig *config, size_t *out_index) |
| Register a finite-difference Laplacian operator. | |
| SimResult | sim_laplacian_config (struct SimContext *context, size_t operator_index, SimLaplacianOperatorConfig *out_config) |
| Copy the current Laplacian configuration from a registered operator. | |
| SimResult | sim_laplacian_update (struct SimContext *context, size_t operator_index, const SimLaplacianOperatorConfig *config) |
| Replace the configuration of a registered Laplacian operator. | |
Finite-difference Laplacian operator for 1D/2D fields.
| enum SimLaplacianStencil |
| SimResult sim_add_laplacian_operator | ( | struct SimContext * | context, |
| const SimLaplacianOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a finite-difference Laplacian operator.
| context | Simulation context that will own the operator. | |
| config | Optional Laplacian configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_laplacian_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimLaplacianOperatorConfig * | out_config | ||
| ) |
Copy the current Laplacian configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_laplacian_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_laplacian_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimLaplacianOperatorConfig * | config | ||
| ) |
Replace the configuration of a registered Laplacian 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 Laplacian operator to update. |
| config | Replacement Laplacian configuration. |