Classes
Includes
- <stdint.h>
- dynamic_visualization_store_enums.h
- dynamic_visualization_store_error_codes.h
- dynamic_visualization_store_version.h
- dvs_import_export.h
Included by
Typedefs
Typedef dvs_log_func
Functions
Function dvs_connect
- server_id: id of server created by dvs_server_create()
- flags: flags for client setup see dvs_client_flags (dynamic_visualization_store_enums.h)
- secret: shared secret to use for client, can be NULL
- session_id: dynamic id created for connection, used for client dvs calls
- int32_t server_id
- enum dvs_client_flags flags
- const char * secret
- int32_t * session_id
Function dvs_client_set_option
- session_id: id for session created by dvs_connect()
- key: option key
- value: option value
- int32_t session_id
- const char * key
- const char * value
Function dvs_register_log_func
- session_id: id for session created by dvs_connect()
- user_data: user data that will be passed into dvs_log_func calls
- func: function pointer for logging (see dvs_log_func)
- flags: which items to be logged, see dvs_log_flags (dynamic_visualization_store_enums.h)
- int32_t session_id
- void * user_data
- dvs_log_func func
- enum dvs_log_flags flags
Function dvs_get_version
Function dvs_begin_init
- session_id: id for session created by dvs_connect()
- dataset_name: name for dataset
- current_rank: Rank this solver is processing (zero based)
- total_ranks: Total number of ranks across solver nodes
- num_chunks: Number of chunks for this rank (usually 1)
- int32_t session_id
- const char * dataset_name
- uint32_t current_rank
- uint32_t total_ranks
- uint32_t num_chunks
Function dvs_set_unit_system
- session_id: id for session created by dvs_connect()
- system: UTF-8 compatible unit system see: https://nexusdemo.ensight.com/docs/python/html/ENS_UNITSSchema.html
- int32_t session_id
- const char * system
Function dvs_add_metadata
- DVS_NONE: Success
- DVS_PARAM_NULL: Method called with NULL params or num_metadata_pairs == 0
- DVS_CLIENT_INVALID_TRANSPORT: Internal error, should not happen
- DVS_TRANSPORT_NULL_INVALID_SERVER: Internal error, should not happen
- DVS_VERSION_MISMATCH: Client version out of date with server version, update server and client to match
- DVS_VERSION_UNKNOWN: Unable to determine server version, update the server to match the client
- DVS_TRANSPORT_SERVICE_FAILURE: Normally caused by server call retry time out or invalid secret key
- session_id: id for session created by dvs_connect()
- metadata_keys: string array of UTF-8 Compatible string keys, each string should be null terminated
- metadata_vals: string array of UTF-8 Compatible string values, each string should be null terminated
- num_metadata_pairs: number of key/value pairs in the arrays
- int32_t session_id
- const char *const metadata_keys
- const char *const metadata_vals
- uint32_t num_metadata_pairs
Function dvs_add_part_info
- session_id: id for session created by dvs_connect()
- parts: this solver handles
- num_parts: size of parts array, maximum number of parts (2^30)
- int32_t session_id
- const struct dvs_part_info * parts
- uint32_t num_parts
Function dvs_add_var_info
- session_id: id for session created by dvs_connect()
- vars: variables definitions which will be sent from this compute node
- num_vars: size of var array
- int32_t session_id
- const struct dvs_var_info * vars
- uint32_t num_vars
Function dvs_add_plot_info
- session_id: id for session created by dvs_connect()
- plots: plots this solver handles
- num_plots: size of plots array
- int32_t session_id
- const struct dvs_plot_info * plots
- uint32_t num_plots
Function dvs_get_num_part_info
- session_id: which client session id to check
- int32_t session_id
Function dvs_get_num_var_info
- session_id: which client session id to check
- int32_t session_id
Function dvs_get_num_plot_info
- session_id: which client session id to check
- int32_t session_id
Function dvs_get_part_info
- session_id: which client session id to check
- index: index of the dvs_part_info object to retrieve
- int32_t session_id
- uint32_t index
Function dvs_get_part_id
- session_id: which client session id to check
- name: the name of the part to search for
- id: UINT32_MAX on failure, otherwise the id of the part for this client
- int32_t session_id
- const char * name
- uint32_t * id
Function dvs_get_var_info
- session_id: which client session id to check
- index: index of the dvs_var_info object to retrieve
- int32_t session_id
- uint32_t index
Function dvs_get_var_id
- session_id: which client session id to check
- name: the name of the var to search for
- id: UINT32_MAX on failure, otherwise the id of the var for this client
- int32_t session_id
- const char * name
- uint32_t * id
Function dvs_get_plot_info
- session_id: which client session id to check
- index: index of the dvs_plot_info object to retrieve
- int32_t session_id
- uint32_t index
Function dvs_get_plot_id
- session_id: which client session id to check
- name: the name of the plot to search for
- id: UINT32_MAX on failure, otherwise the id of the plot for this client
- int32_t session_id
- const char * name
- uint32_t * id
Function dvs_end_init
- session_id: id for session created by dvs_connect()
- int32_t session_id
Function dvs_begin_update
- session_id: id for session created by dvs_connect()
- update_num: update number of this update, must be monotonically increasing
- rank: the rank we are sending an update for (zero based)
- chunk: the chunk number this update is for (zero based)
- time: time in seconds this update is for
- int32_t session_id
- uint32_t update_num
- uint32_t rank
- uint32_t chunk
- float time
Function dvs_update_copy_previous_part
- session_id: id for session created by dvs_connect()
- part_id: the id of the part we are copying data for, UINT32_MAX to select all parts
- options: options to copy, see method description
- int32_t session_id
- uint32_t part_id
- const char * options
Function dvs_update_nodes
- session_id: id for session created by dvs_connect()
- part_id: the id of part we are updating nodes for
- x: array of x components for nodes
- y: array of y components for nodes
- z: array of z components for nodes
- num_values: number of values in individual x/y/z arrays (max nodes in part 2^31)
- int32_t session_id
- uint32_t part_id
- const float * x
- const float * y
- const float * z
- uint32_t num_values
Function dvs_update_nodes_parallelepiped
- session_id: id for session created by dvs_connect()
- part_id: the id of part we are updating nodes for
- global_ijk_max: The one based global ijk max of the mesh across all ranks
- local_ijk_min: the zero based local sub-block ijk min for this rank
- local_ijk_max: the zero based local sub-block ijk max for this rank
- origin: the XYZ origin of this local ijk block
- dir_i: The normalized XYZ direction vector for the i dimension
- dir_j: The normalized XYZ direction vector for the j dimension
- dir_k: The normalized XYZ direction vector for the k dimension
- i_vals: The absolute distance vector for each i index from the local sub block’s origin of size iMax-iMin+1
- j_vals: The absolute distance vector for each j index from the local sub block’s origin of size jMax-jMin+1
- k_vals: The absolute distance vector for each k index from the local sub block’s origin of size kMax-kMin+1
- int32_t session_id
- uint32_t part_id
- const uint32_t global_ijk_max
- const uint32_t local_ijk_min
- const uint32_t local_ijk_max
- const float origin
- const float dir_i
- const float dir_j
- const float dir_k
- const float * i_vals
- const float * j_vals
- const float * k_vals
Function dvs_update_nodes_curvilinear
- session_id: id for session created by dvs_connect()
- part_id: the id of part we are updating nodes for
- global_ijk_max: The one based global ijk max of the mesh across all ranks
- local_ijk_min: the zero based local sub-block ijk min for this rank
- local_ijk_max: the zero based local sub-block ijk max for this rank
- x_vals: The actual X component for each IJK value for the local sub block (size (iMax-iMin+1)(jMax-jMin+1)(kMax-kMin+1))
- y_vals: The actual Y component for each IJK value for the local sub block (size (iMax-iMin+1)(jMax-jMin+1)(kMax-kMin+1))
- z_vals: The actual Z component for each IJK value for the local sub block (size (iMax-iMin+1)(jMax-jMin+1)(kMax-kMin+1))
- int32_t session_id
- uint32_t part_id
- const uint32_t global_ijk_max
- const uint32_t local_ijk_min
- const uint32_t local_ijk_max
- const float * x_vals
- const float * y_vals
- const float * z_vals
Function dvs_update_elements
- session_id: id for session created by dvs_connect()
- part_id: unique id of part to update elements for (must match parts added with dvs_add_part_info)
- type: element type of elements to update (points, triangles, quads, etc.)
- indices: node indices for each element, for ordering info per element type see EnSight’s User Manual, section 9.2.3 Supported EnSight Gold Elements
- num_indices: the size of the indices array
- int32_t session_id
- uint32_t part_id
- enum dvs_element_type type
- const uint32_t * indices
- uint32_t num_indices
Function dvs_update_elements_polygon
- session_id: id for session created by dvs_connect()
- part_id: unique id of part to update elements for (must match parts added with dvs_add_part_info)
- type: element type of elements to update (N_SIDED_POLYGON or N_SIDED_POLYGON_GHOST)
- nodes_per_polygon: Array containing number of nodes in each element/polygon
- nodes_per_polygon_size: size of nodes_per_polygon array
- indices: Array of node indices for the polygons described in nodes_per_polygon
- indices_size: Size of indices array
- int32_t session_id
- uint32_t part_id
- enum dvs_element_type type
- const uint32_t * nodes_per_polygon
- uint32_t nodes_per_polygon_size
- const uint32_t * indices
- uint32_t indices_size
Function dvs_update_elements_polyhedral
- session_id: id for session created by dvs_connect()
- part_id: unique id of part to update elements for (must match parts added with dvs_add_part_info)
- type: element type of elements to update (CONVEX_POLYHEDRON or CONVEX_POLYHEDRON_GHOST)
- faces_per_element: Array of how many faces are in each element
- faces_per_element_size: size of faces_per_element array
- nodes_per_face: Array of how many nodes each face contains
- nodes_per_face_size: size of nodes_per_face array
- indices: Node indices for elements
- indices_size: size of node indices
- int32_t session_id
- uint32_t part_id
- enum dvs_element_type type
- const uint32_t * faces_per_element
- uint32_t faces_per_element_size
- const uint32_t * nodes_per_face
- uint32_t nodes_per_face_size
- const uint32_t * indices
- uint32_t indices_size
Function dvs_update_var_case_scalar
- session_id: id for session created by dvs_connect()
- var_id: unique id of variable to update (must match var added with dvs_add_var_info)
- scalar: value to update
- int32_t session_id
- uint32_t var_id
- float scalar
Function dvs_update_var_part_scalar
- session_id: id for session created by dvs_connect()
- var_id: unique id of variable to update (must match var added with dvs_add_var_info)
- part_id: unique id of part associated with (must match parts added with dvs_add_part_info)
- scalar: value to update
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- float scalar
Function dvs_update_var_case_vector
- session_id: id for session created by dvs_connect()
- var_id: unique id of variable to update (must match var added with dvs_add_var_info)
- vec: array of x,y,z values (size 3)
- int32_t session_id
- uint32_t var_id
- const float * vec
Function dvs_update_var_part_vector
- session_id: id for session created by dvs_connect()
- var_id: unique id of variable to update (must match var added with dvs_add_var_info)
- part_id: unique id of part associated with (must match parts added with dvs_add_part_info)
- vec: array of x,y,z values (size 3)
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- const float * vec
Function dvs_update_var_element_scalar
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part element is associated with (must match parts added with dvs_add_part_info)
- type: element type to update
- scalars: array of scalars
- num_vals: number of values in scalar array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- enum dvs_element_type type
- const float * scalars
- uint32_t num_vals
Function dvs_update_var_element_scalar_int64
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part element is associated with (must match parts added with dvs_add_part_info)
- type: element type to update
- scalars: array of scalars
- num_vals: number of values in scalar array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- enum dvs_element_type type
- const int64_t * scalars
- uint32_t num_vals
Function dvs_update_var_node_scalar
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part nodes are associated with (must match parts added with dvs_add_part_info)
- scalars: array of scalars to set on variable
- num_vals: number of values in scalar array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- const float * scalars
- uint32_t num_vals
Function dvs_update_var_node_scalar_int64
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part nodes are associated with (must match parts added with dvs_add_part_info)
- scalars: array of scalars to set on variable
- num_vals: number of values in scalar array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- const int64_t * scalars
- uint32_t num_vals
Function dvs_update_var_element_vector
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part to update (must match parts added with dvs_add_part_info)
- type: element type to update
- values: array of values to udpate, should be the size of number of elements * 3, values are XYZ XYZ XYZ… XYZ
- num_values: size of values array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- enum dvs_element_type type
- const float * values
- uint32_t num_values
Function dvs_update_var_node_vector
- session_id: id for session created by dvs_connect()
- var_id: unique id for variable to update (must match var added with dvs_add_var_info)
- part_id: unique id for part to update (must match parts added with dvs_add_part_info)
- values: array of values to udpate, should be the size of number of nodes * 3, values are XYZ XYZ XYZ… XYZ
- num_values: size of values array
- int32_t session_id
- uint32_t var_id
- uint32_t part_id
- const float * values
- uint32_t num_values
Function dvs_update_plot
- session_id: id for session created by dvs_connect()
- plot_id: id of plot to update matching plot_infos sent with dvs_add_plot_info
- x_values: array of x axis values
- y_values: array of y axis values
- num_values: size of arrays
- int32_t session_id
- uint32_t plot_id
- const float * x_values
- const float * y_values
- uint32_t num_values
Function dvs_end_update
- session_id: id for session created by dvs_connect()
- int32_t session_id
Function dvs_delete_item
- session_id: id for session created by dvs_connect()
- update_num: update number of this update, must be monotonically increasing
- rank: rank making this call
- filter: filter for the item(s) to delete see detailed description for more info
- int32_t session_id
- uint32_t update_num
- uint32_t rank
- const char * filter
Function dvs_print_stats
- session_id: id for session created by dvs_connect()
- int32_t session_id
Function dvs_session_shutdown
- session_id: id for session created by dvs_connect()
- int32_t session_id
Function dvs_session_shutdown_all
Function dvs_shutdown
Function dvs_server_create
- server_uri: URI of server to create of the format protocol://hostname:port, i.e. grpc://localhost:50055 or null:// see Server URIs for more info.
- server_id: unique id dynamically created for this server, -1 if failure
- const char * server_uri
- int32_t * server_id
Function dvs_server_set_option
- server_id: id of server from dvs_server_create()
- key: Key for option to add, MAX LENGTH 2048
- value: Value for option, MAX LENGTH 2048
- int32_t server_id
- const char * key
- const char * value
Function dvs_server_start
- server_id: id of server from dvs_server_create()
- server_number: The server number (zero based) for this server, should be unique for each server in this server group.
- local_ranks: Number of local ranks this server will handle.
- int32_t server_id
- uint32_t server_number
- uint32_t local_ranks
Function dvs_server_started
- server_id: id of server from dvs_server_create()
- running: 1 if running, else 0
- int32_t server_id
- uint32_t * running
Function dvs_server_timestep_count
- server_id: id of server from dvs_server_create()
- num_pending: The number of incomplete timesteps currently in the server
- num_complete: The number of complete timesteps currently in the server
- int32_t server_id
- uint32_t * num_pending
- uint32_t * num_complete
Function dvs_server_shutdown
- server_id: id of server from dvs_server_create()
- int32_t server_id
Function dvs_server_shutdown_all
Function dvs_server_get_uri
- server_id: the ID of the server
- uri: an optional char array to be filled with the uri value
- size: an optional uint32_t to be filled with the size of the uri array
- int32_t server_id
- char * uri
- uint32_t * size
Function dvs_add_part_rigid_body_motion
- session_id: id for session created by dvs_connect()
- update_num: update number of this update, must be monotonically increasing
- quaternion: the quaternion defining the rigid body rotation. Can be NULL.
- displacement: an array describing the rigid body translation. Can be NULL
- cg_offset: an array describing the center of gravity offset to be applied before applying the rotation and the translation. Can be NULL
- int32_t session_id
- uint32_t update_num
- uint32_t part_id
- const float * quaternion
- const float * displacement
- const float * cg_offset
Function dvs_convert_rotation_to_quaternion
- session_id: id for session created by dvs_connect()
- axis_start: an array of floats describing the starting point of the line representing the rotation axis
- axis_end: an array of floats describing the end point of the line representing the rotation axis
- relative_rotation_angle: the angle to rotate around the give axis
- quaternion: an array of 4 floats to be filled with the quaternion representation of the rotation
- int32_t session_id
- const float * axis_start
- const float * axis_end
- float relative_rotation_angle
- float * quaternion