![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Public C API implementation for mesh thermal configuration. More...
Functions | |
| int | swmm_heat_get_channel_ground_status (SWMM_Engine engine, SWMM_ChannelGroundStatus *out) |
| Read requested and measured channel-to-ground contact status. | |
| int | swmm_heat_get_channel_ground_values (SWMM_Engine engine, int kind, int first, int count, double *out) |
| Read a contiguous link range of accepted channel-ground values. | |
| int | swmm_heat_get_channel_ground_contact (SWMM_Engine engine, int index, SWMM_ChannelGroundContact *out) |
| Read one initialized channel-to-ground contact interval. | |
| int | swmm_heat_preview_channel_ground_map (SWMM_Engine engine, int link, SWMM_ChannelGroundPreview *out, SWMM_ChannelGroundContact *contacts, int capacity, int *required) |
| Preview complete channel XY coverage on a private mesh copy. | |
| int | swmm_heat_preview_channel_ground_map_with_progress (SWMM_Engine engine, int link, SWMM_ChannelGroundPreview *out, SWMM_ChannelGroundContact *contacts, int capacity, int *required, SWMM_CancelCallback callback, void *user_data) |
Cancellable variant of the read-only channel-contact preview. The callback may be invoked during mesh indexing and channel mapping. If it returns nonzero, the function returns SWMM_ERR_CANCELLED and leaves out, contacts, and required unchanged. | |
| int | swmm_heat_preview_channel_ground_map_page (SWMM_Engine engine, int link, SWMM_ChannelGroundPreview *out, int first, SWMM_ChannelGroundContact *contacts, int capacity, int *required, SWMM_CancelCallback callback, void *user_data) |
Bounded, cancellable contact page. first is a zero-based interval offset; at most capacity rows are copied while required reports the total count. The summary counts describe the complete mapping. On cancellation, all output arguments remain unchanged. | |
| int | swmm_heat_get_2d_status (SWMM_Engine engine, SWMM_Heat2DStatus *out) |
| Read requested and initialized coupled surface-heat status. | |
| int | swmm_heat_get_2d_values (SWMM_Engine engine, int kind, int first, int count, double *out) |
| Read a contiguous range of accepted surface-heat runtime values. | |
| int | swmm_heat_get_ground_status (SWMM_Engine engine, SWMM_GroundHeatStatus *out) |
| Read canonical ground thermal ownership and runtime status. | |
| int | swmm_heat_get_ground_values (SWMM_Engine engine, int kind, int first, int count, double *out) |
| Read a contiguous cell range of canonical soil thermal values. | |
| int | swmm_heat_get_ground_layers (SWMM_Engine engine, int cell, int kind, int first, int count, double *out) |
| Zero-based cell/layer ranges. Invalid ranges leave all output untouched. | |
Public C API implementation for mesh thermal configuration.
| int swmm_heat_get_2d_status | ( | SWMM_Engine | engine, |
| SWMM_Heat2DStatus * | status ) |
Read requested and initialized coupled surface-heat status.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in,out] | status | Required caller-owned record with struct_size at least sizeof(SWMM_Heat2DStatus). |
| int swmm_heat_get_2d_values | ( | SWMM_Engine | engine, |
| int | kind, | ||
| int | first_cell, | ||
| int | count, | ||
| double * | values ) |
Read a contiguous range of accepted surface-heat runtime values.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | kind | SWMM_Heat2DValue selector; units/signs follow the enum member. |
| [in] | first_cell | Nonnegative zero-based starting cell index. |
| [in] | count | Nonnegative number of consecutive values to copy; span must fit the model. |
| [out] | values | Caller-owned count-double destination; may be NULL only when count == 0. |
| int swmm_heat_get_channel_ground_contact | ( | SWMM_Engine | engine, |
| int | index, | ||
| SWMM_ChannelGroundContact * | contact ) |
Read one initialized channel-to-ground contact interval.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | index | Zero-based initialized contact-interval index. |
| [in,out] | contact | Required record with struct_size at least sizeof(SWMM_ChannelGroundContact). |
| int swmm_heat_get_channel_ground_status | ( | SWMM_Engine | engine, |
| SWMM_ChannelGroundStatus * | status ) |
Read requested and measured channel-to-ground contact status.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in,out] | status | Required caller-owned record with struct_size at least sizeof(SWMM_ChannelGroundStatus). |
| int swmm_heat_get_channel_ground_values | ( | SWMM_Engine | engine, |
| int | kind, | ||
| int | first_link, | ||
| int | count, | ||
| double * | values ) |
Read a contiguous link range of accepted channel-ground values.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | kind | SWMM_ChannelGroundValue selector; units/signs follow the enum member. |
| [in] | first_link | Nonnegative zero-based starting link index. |
| [in] | count | Nonnegative number of consecutive values to copy; span must fit the model. |
| [out] | values | Caller-owned count-double destination; may be NULL only when count == 0. |
| int swmm_heat_get_ground_layers | ( | SWMM_Engine | engine, |
| int | cell, | ||
| int | kind, | ||
| int | first_layer, | ||
| int | count, | ||
| double * | values ) |
Zero-based cell/layer ranges. Invalid ranges leave all output untouched.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | cell | Zero-based mesh cell with an initialized thermal column. |
| [in] | kind | SWMM_GroundHeatLayerValue selector; units follow the enum. |
| [in] | first_layer | Nonnegative zero-based starting thermal layer, surface first. |
| [in] | count | Nonnegative layer count; the complete span must fit the column. |
| [out] | values | Caller-owned count-double destination; NULL only when count == 0. |
| int swmm_heat_get_ground_status | ( | SWMM_Engine | engine, |
| SWMM_GroundHeatStatus * | status ) |
Read canonical ground thermal ownership and runtime status.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in,out] | status | Required caller-owned record with struct_size at least sizeof(SWMM_GroundHeatStatus). |
| int swmm_heat_get_ground_values | ( | SWMM_Engine | engine, |
| int | kind, | ||
| int | first_cell, | ||
| int | count, | ||
| double * | values ) |
Read a contiguous cell range of canonical soil thermal values.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | kind | SWMM_GroundHeatValue selector; units/signs follow the enum member. |
| [in] | first_cell | Nonnegative zero-based starting cell index. |
| [in] | count | Nonnegative number of consecutive values to copy; span must fit the model. |
| [out] | values | Caller-owned count-double destination; may be NULL only when count == 0. |
| int swmm_heat_preview_channel_ground_map | ( | SWMM_Engine | engine, |
| int | link, | ||
| SWMM_ChannelGroundPreview * | out, | ||
| SWMM_ChannelGroundContact * | contacts, | ||
| int | capacity, | ||
| int * | required ) |
Preview complete channel XY coverage on a private mesh copy.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | link | Zero-based existing routed-channel link index. |
| [in,out] | out | Required summary with struct_size at least sizeof(SWMM_ChannelGroundPreview). |
| [out] | contacts | Caller-owned array of capacity contact records; NULL only when capacity == 0. |
| [in] | capacity | Nonnegative contact-record capacity; zero permits a size query. |
| [out] | required | Required destination for the complete mapping's interval count. |
| int swmm_heat_preview_channel_ground_map_page | ( | SWMM_Engine | engine, |
| int | link, | ||
| SWMM_ChannelGroundPreview * | out, | ||
| int | first, | ||
| SWMM_ChannelGroundContact * | contacts, | ||
| int | capacity, | ||
| int * | required, | ||
| SWMM_CancelCallback | callback, | ||
| void * | user_data ) |
Bounded, cancellable contact page. first is a zero-based interval offset; at most capacity rows are copied while required reports the total count. The summary counts describe the complete mapping. On cancellation, all output arguments remain unchanged.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | link | Zero-based existing routed-channel link index. |
| [in,out] | out | Required summary with struct_size at least sizeof(SWMM_ChannelGroundPreview). |
| [out] | contacts | Caller-owned array of capacity contact records; NULL only when capacity == 0. |
| [in] | capacity | Nonnegative contact-record capacity; zero permits a size query. |
| [out] | required | Required destination for the complete mapping's interval count. |
| [in] | first | Zero-based interval offset, at most the complete interval count. |
| [in] | callback | Optional synchronous cancellation/progress callback; receives engine, stage SWMM_HEAT_PREVIEW_STAGE_*, percentage [0,100], and user_data. Nonzero cancels. |
| [in,out] | user_data | Opaque caller-owned callback context; may be NULL and is not retained. |
| int swmm_heat_preview_channel_ground_map_with_progress | ( | SWMM_Engine | engine, |
| int | link, | ||
| SWMM_ChannelGroundPreview * | out, | ||
| SWMM_ChannelGroundContact * | contacts, | ||
| int | capacity, | ||
| int * | required, | ||
| SWMM_CancelCallback | callback, | ||
| void * | user_data ) |
Cancellable variant of the read-only channel-contact preview. The callback may be invoked during mesh indexing and channel mapping. If it returns nonzero, the function returns SWMM_ERR_CANCELLED and leaves out, contacts, and required unchanged.
| [in] | engine | Borrowed live engine handle; not retained by this call. |
| [in] | link | Zero-based existing routed-channel link index. |
| [in,out] | out | Required summary with struct_size at least sizeof(SWMM_ChannelGroundPreview). |
| [out] | contacts | Caller-owned array of capacity contact records; NULL only when capacity == 0. |
| [in] | capacity | Nonnegative contact-record capacity; zero permits a size query. |
| [out] | required | Required destination for the complete mapping's interval count. |
| [in] | callback | Optional synchronous cancellation/progress callback; receives engine, stage SWMM_HEAT_PREVIEW_STAGE_*, percentage [0,100], and user_data. Nonzero cancels. |
| [in,out] | user_data | Opaque caller-owned callback context; may be NULL and is not retained. |