Members
- add_metadata
- add_part_info
- add_plot_info
- add_var_info
- begin_init
- begin_update
- clear_options
- convert_rotation_to_quaternion
- delete_item
- end_init
- end_update
- get_num_parts
- get_num_plots
- get_num_vars
- get_part_id
- get_part_info
- get_plot_id
- get_plot_info
- get_var_id
- get_var_info
- get_version
- IClient
- IClient
- IClient
- operator=
- operator=
- set_logger
- set_option
- set_options
- set_unit_system
- update_copy_previous_part
- update_elements
- update_elements_polygon
- update_elements_polyhedral
- update_nodes
- update_nodes_structured
- update_nodes_structured
- update_part_rigid_body_motion
- update_plot
- update_var_case
- update_var_element
- update_var_element
- update_var_field
- update_var_field
- update_var_node
- update_var_node
- update_var_part
- ~IClient
Public functions
Function IClient
Function ~IClient
Function IClient
- IClient &&
Function operator=
- IClient &&
Function IClient
- const IClient &
Function operator=
- const IClient &
Function set_logger
- logger: logger to use, will be released if DVS::ILogger::release() is implemented
- ILogger * logger
Function set_option
- key: key to set
- value: value to set
- const std::string & key
- const std::string & value
Function set_options
- options: options to set
- const std::map< std::string, std::string > & options
Function clear_options
Function get_version
Function begin_init
- dataset_name: name for dataset
- current_rank: the rank we are sending init info for (zero based)
- total_ranks: the total number of ranks being used across solver nodes
- num_chunks: the number of chunks being used for this rank (usually 1)
- const char * dataset_name
- uint32_t current_rank
- uint32_t total_ranks
- uint32_t num_chunks
Function set_unit_system
- system: unit system to set, see: https://nexusdemo.ensight.com/docs/python/html/ENS_UNITSSchema.html
- const char * system
Function 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
- keys: string array of UTF-8 Compatible string keys, each string should be null terminated
- 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
- const char *const keys
- const char *const vals
- uint32_t num_metadata_pairs
Function add_part_info
- part_info: array of global parts across entire simulaton
- num_parts: number of part info objects in part_info
- const dvs_part_info * part_info
- uint32_t num_parts
Function add_var_info
- var_info: array of global variable information across entire simulation
- num_vars: number of var info objects in var_info
- const dvs_var_info * var_info
- uint32_t num_vars
Function add_plot_info
- plot_info: array of global plot information across entire simulation
- num_plots: number of plot_info objects in plot_info
- const dvs_plot_info * plot_info
- uint32_t num_plots
Function get_num_parts
Function get_num_vars
Function get_num_plots
Function get_part_info
- index: index of the dvs_part_info object to retrieve
- uint32_t index
Function get_part_id
- name: the name of the part to search for
- id: UINT32_MAX on failure, otherwise the id of the part for this client
- const std::string & name
- uint32_t & id
Function get_var_info
- index: index of the dvs_var_info object to retrieve
- uint32_t index
Function get_var_id
- name: the name of the var to search for
- id: UINT32_MAX on failure, otherwise the id of the var for this client
- const std::string & name
- uint32_t & id
Function get_plot_info
- index: index of the dvs_plot_info object to retrieve
- uint32_t index
Function get_plot_id
- name: the name of the plot to search for
- id: UINT32_MAX on failure, otherwise the id of the plot for this client
- const std::string & name
- uint32_t & id
Function end_init
Function begin_update
- 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
- uint32_t update_num
- uint32_t rank
- uint32_t chunk
- float time
Function update_copy_previous_part
- part_id: the id of the part we are copying data for, UINT32_MAX to select all parts
- options: what to copy, see method description
- uint32_t part_id
- const char * options
Function update_part_rigid_body_motion
- part_id: the part ID of the part to update
- quaternion: a vector of float representing the quaternion describing the rotation. Empty if no rotation.
- displacement: the displacement describing the rigid body motion translation. Empty if no translation.
- cg_offset: the eventual center of gravity offset to apply before the rotation and translations. Empty if no center of gravity offset.
- uint32_t part_id
- const std::vector< float > & quaternion
- const std::vector< float > & displacement
- const std::vector< float > & cg_offset
Function convert_rotation_to_quaternion
- 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
- std::array< float, 3 > axis_start
- std::array< float, 3 > axis_end
- float relative_rotation_angle
- std::array< float, 4 > & quaternion
Function update_nodes
- 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)
- uint32_t part_id
- const float * x
- const float * y
- const float * z
- uint32_t num_values
Function update_nodes_structured
- 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
- 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 update_nodes_structured
- 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))
- 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 update_elements
- 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
- uint32_t part_id
- dvs_element_type type
- const uint32_t * indices
- uint32_t num_indices
Function update_elements_polygon
- 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
- uint32_t part_id
- 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 update_elements_polyhedral
- 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
- uint32_t part_id
- 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 update_var_case
- var_type: type of variable we are updating
- var_id: unique id of variable
- values: array of values for variable size based on type
- num_values: size of values array
- dvs_var_type var_type
- uint32_t var_id
- const float * values
- uint32_t num_values
Function update_var_part
- var_type: type of variable we are updating
- var_id: id of variable
- part_id: id of part
- values: array of values for variable size based on type
- num_values: size of values array
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const float * values
- uint32_t num_values
Function update_var_element
- elem_type: element type
- var_type: type of var see ensight_dynmaic_data_enums.h: dvs_element_type for more info
- var_id: id of variable
- part_id: id of part
- values: array of values to update, should be same size as number of elements sent
- num_values: size of values array
- dvs_element_type elem_type
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const float * values
- uint32_t num_values
Function update_var_element
- elem_type: element type
- var_type: type of var see ensight_dynmaic_data_enums.h: dvs_element_type for more info
- var_id: id of variable
- part_id: id of part
- values: array of values to update, should be same size as number of elements sent
- num_values: size of values array
- dvs_element_type elem_type
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const int64_t * values
- uint32_t num_values
Function update_var_node
- var_type: type of var
- var_id: id of variable
- part_id: id of part
- values: array of values to update, should be same size as number of nodes sent with update_nodes
- num_values: size of values array
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const float * values
- uint32_t num_values
Function update_var_node
- var_type: type of var
- var_id: id of variable
- part_id: id of part
- values: array of values to update, should be same size as number of nodes sent with update_nodes
- num_values: size of values array
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const int64_t * values
- uint32_t num_values
Function update_var_field
- location: Location of variable (node or element)
- elem_type: Element type if location element, else undefined
- var_type: Type of variable
- var_id: ID of variable
- part_id: ID of part variable is associated with
- values: array of values to update
- num_values: size of values array
- dvs_var_location location
- dvs_element_type elem_type
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const float * values
- uint32_t num_values
Function update_var_field
- location: Location of variable (node or element)
- elem_type: Element type if location element, else undefined
- var_type: Type of variable
- var_id: ID of variable
- part_id: ID of part variable is associated with
- values: array of values to update
- num_values: size of values array
- dvs_var_location location
- dvs_element_type elem_type
- dvs_var_type var_type
- uint32_t var_id
- uint32_t part_id
- const int64_t * values
- uint32_t num_values
Function update_plot
- plot_id: ID of plot
- x_values: Array of x axis values of plot
- y_values: array of y axis values of plot
- num_values: number of x/y value pairs being sent
- uint32_t plot_id
- const float * x_values
- const float * y_values
- uint32_t num_values
Function end_update
Function delete_item
- 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
- uint32_t update_num
- uint32_t rank
- const char * filter