Skip to main content
#include <dvs_client_interface.h>

Public Member Functions

Detailed Description

This interface class wraps the client type and other functionality such as data deduplication so the user doesn’t need to worry about it. We can add functionality to this without needing solver code to be modified. This will also hide Ensight sessions potentially being taken down and brought up dynamically. Definition at line 80 of file dvs_client_interface.h.

Member Function Documentation

add_metadata()

pure virtual Add metadata for the current dataset. Errors:
  • 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
Parameters Returns dvs_ret DVS_NONE on success, otherwise see method description

add_part_info()

pure virtual Add part information for session. NOTE: These cannot be changed once end_init() is called. Parameters Returns dvs_ret TODO

add_plot_info()

pure virtual Add plot information for session. NOTE: These cannot be changed once end_init() is called. Parameters Returns dvs_ret TODO

add_var_info()

pure virtual Add variable information for session. NOTE: These cannot be changed once end_init() is called. Parameters Returns dvs_ret TODO

begin_init()

pure virtual Begins initialization for this rank. Parameters Returns dvs_ret TODO

begin_update()

pure virtual Method to begin an update. Parameters Returns dvs_ret TODO

convert_rotation_to_quaternion()

pure virtual Utility API to convert a rigid body rotation described by the rotation axis and the angle of rotation to its quaternion representation. Parameters Returns DVS_NONE if the convention was successful

delete_item()

pure virtual Delete an item. Currently this will only allow for timesteps to be deleted. In the future it can be expanded to all objects via the filter mechanism (see Query Stanzas). Currently this supports the operands of eq, gt, gte, lt, lte. Example: To delete all timesteps >= time 1.1 the filter would be “/timestep.time/gte/1.1//” . It also currently only supports one statement so /timestep.time/gt/1.1//and/timestep.time/lt/2.1// is not valid as of version 1.1.0. Note: The update number should be monotonically increasing with the begin_update calls Parameters Returns dvs_ret TODO

end_init()

pure virtual Finish initialization for this rank. This must be called to let server know initialization for this rank is complete Returns dvs_ret TODO

end_update()

pure virtual Call to end the update for this timestep/rank/chunk. Returns dvs_ret TODO

get_num_parts()

pure virtual Get the number of dvs_part_info objects this client has stored. Note: This gets the number of part info objects this client has. It does not query the server for the information. Returns uint32_t number of dvs_part_info objects

get_num_plots()

pure virtual Get the number of dvs_plot_info objects this client has stored. Note: This gets the number of plot info objects this client has. It does not query the server for the information. Returns uint32_t number of dvs_plot_info objects

get_num_vars()

pure virtual Get the number of dvs_var_info objects this client has stored. Note: This gets the number of part info objects this client has. It does not query the server for the information. Returns uint32_t number of dvs_var_info objects

get_part_id()

pure virtual Get the ID being used by the client for the named part. Errors: DVS_NONE: Success DVS_INVALID_NAME: No object with name found DVS_ID_NO_VALID_SESSION: No session found matching session_id DVS_ID_INVALID_TYPE: Session id is of wrong type (possibly server) DVS_PARAM_NULL: Null param passed in Parameters Returns dvs_ret DVS_NONE on success, else see method description

get_part_info()

pure virtual Get the dvs_part_info object for a specific index. Note: This only gets the dvs_part_info objects from the current client it does not query the server for the information Parameters Returns const dvs_part_info* found object, nullptr if not found

get_plot_id()

pure virtual Get the ID being used by the client for the named plot. Errors: DVS_NONE: Success DVS_INVALID_NAME: No object with name found DVS_ID_NO_VALID_SESSION: No session found matching session_id DVS_ID_INVALID_TYPE: Session id is of wrong type (possibly server) DVS_PARAM_NULL: Null param passed in Parameters Returns dvs_ret DVS_NONE on success, else see method description

get_plot_info()

pure virtual Get the dvs_plot_info object for a specific index. Note: This only gets the dvs_plot_info objects from the current client it does not query the server for the information Parameters Returns const dvs_plot_info* found object, nullptr if not found

get_var_id()

pure virtual Get the ID being used by the client for the named var. Errors: DVS_NONE: Success DVS_INVALID_NAME: No object with name found DVS_ID_NO_VALID_SESSION: No session found matching session_id DVS_ID_INVALID_TYPE: Session id is of wrong type (possibly server) DVS_PARAM_NULL: Null param passed in Parameters Returns dvs_ret DVS_NONE on success, else see method description

get_var_info()

pure virtual Get the dvs_var_info object for a specific index. Note: This only gets the dvs_var_info objects from the current client it does not query the server for the information Parameters Returns const dvs_var_info* found object, nullptr if not found

get_version()

pure virtual Get the version of the client API. NOTE: The version is of the format X.Y.Z where X=MAJOR, Y = MINOR, and Z = PATCH. Anything other than a change in Z or PATCH is incompatible with another version and needs to be upgraded to the latest library Returns const char* the semantic version of the API

set_logger()

pure virtual Set the logger interface to use. Set a logger interface for the client to use. This object will have DVS::ILogger::release() invoked on it. If release() is not implemented the memory should be destroyed by the caller after the client is destroyed. Parameters

set_unit_system()

pure virtual Set the unit system we are using for this session (optional) NOTE: This cannot be changed once end_init() is called. Parameters Returns dvs_ret TODO

update_copy_previous_part()

pure virtual Copy data from the previous timestep before applying other data. Currently we only support the options of empty string, mesh or mesh.vars empty string and mesh.vars will copy the mesh, connectivity, and nodal/elemental variables. mesh only copies the mesh and connectivity. Note: Currently plots and case/part constant variables will not be copied via this option and must always be sent. Parameters Returns dvs_ret TODO

update_elements()

pure virtual Update elements for a specific part and element type. This will update the elements for a part. The number of indices needed will vary depending on the type and the num_elements. I.E. if updating triangles with 3 elements the indices array should be of size 9 (3 triangles with 3 indices) Parameters Returns ret_val TODO

update_elements_polygon()

pure virtual Update N-SIDED elements. This method will send over a list of arbitrarily sized polygons. The nodes_per_polygon param is an array containing the size of each polygon. I.E. if sending a quadrangle, and a 25 sided element the nodes_per_polygon array might look like [4, 25]. The size of the indices array would be 4+25=29 in this example where the first 4 items in the indices array would correspond to the first item in the nodes_per_polygon array, the next 25 items in the indices array would correspond to the second item in the nodes_per_polygon array Parameters Returns dvs_ret TODO

update_elements_polyhedral()

pure virtual Update N-FACED Elements. Parameters Returns dvs_ret TODO

update_nodes()

pure virtual Update nodes for a specific part. Parameters Returns dvs_ret TODO

update_nodes_structured() [1/2]

pure virtual Update the nodes for a curvilinear structured part. A curvilinear structured part is represented by the global IJK grid across ranks, the local sub-block’s IJK rank, and the actual XYZ values for each IJK grid point in the local grid. Local IJK Dimensions: The min/max represent a local sub-block from the overall global grid. This could be the entire range if not splitting the grid into multiple ranks or a specific slice. For example you could have a 2ix3jx4k grid where it was split across the I dimension. One rank would specify min/max IJK as min:[0,0,0], max:[0,2,3], the other rank would specify min/max IJK as min:[1,0,0], max:[1,2,3]. If sending the data all as one rank it would be the full range of: min:[0,0,0], max:[1,2,3] IJK Vals: These specify the actual XYZ location for each IJK value in the grid. The order of these should be by the fastest changing dimension being I, the next being J, and the next being K. I.E. for a 2x2x2 grid the x_vals array would contain the X component for IJK values: [i0 j0 k0][i1 j0 k0][i0 j1 k0][i1 j1 k0][i0 j0 k1][i1 j0 k1][i0 j1 k1][i1 j1 k1]. Note: iblanking information is sent via update_var_node() using SCALAR as the var type and DVS_STRUCTURED_IBLANKED_NODES as the variable id Note: Ghost element information is sent update_var_element() using SCALAR as the var type and DVS_STRUCTURED_GHOST_ELEMENTS as the variable id Parameters Returns dvs_ret TODO

update_nodes_structured() [2/2]

pure virtual Update the nodes for a parallelepiped structured part. A parallelepiped structured part is represented by the global IJK grid across ranks, the local sub-block’s IJK range, the origin of the IJK sub-block, the normalized direction (unit) vectors for each IJK dimension, and the absolute distances for each IJK index from the origin of this sub-block. Global IJK Max: for a 2x3x4 grid would be: [2 3 4] Local IJK Dimensions: The min/max represent a local sub-block from the overall global grid. This could be the entire range if not splitting the grid into multiple ranks or a specific slice. For example you could have a 2ix3jx4k grid where it was split across the I dimension. One rank would specify min/max IJK as min:[0,0,0], max:[0,2,3], the other rank would specify min/max IJK as min:[1,0,0], max:[1,2,3]. If sending the data all as one rank it would be the full range of: min:[0,0,0], max:[1,2,3] Direction (Unit) Vectors: These represent the XYZ orientation of each IJK axis. I.E. if I==X J==Y K==Z the vectors would be dir_i: [1 0 0], dir_j: [0 1 0], dir_k: [0 0 1] IJK Vals: These specify the absolute distance from the XYZ origin in each IJK direction(specified by the direction vectors). So if the distance was 1 between every I index, 2 between every J index, and 3 in between every K index the arrays would look like: i_vals: [0 1 2 3 4 5…] j_vals: [0 2 4 6 8 10…] k_vals: [0 3 6 9 12 15…] Note: iblanking information is sent via update_var_node() using SCALAR as the var type and DVS_STRUCTURED_IBLANKED_NODES as the variable id Note: Ghost element information is sent update_var_element() using SCALAR as the var type and DVS_STRUCTURED_GHOST_ELEMENTS as the variable id Parameters Returns dvs_ret TODO

update_part_rigid_body_motion()

pure virtual Update the rigid body motion for a part. Parameters Returns DVS_NONE if the update was successful

update_plot()

pure virtual Update plot data for plot. Parameters Returns dvs_ret TODO

update_var_case()

pure virtual Update case variable. Parameters Returns dvs_ret TODO

update_var_element() [1/2]

pure virtual Update elemental scalar variable values. Parameters Returns dvs_ret TODO

update_var_element() [2/2]

pure virtual Update elemental scalar 64bit variable values *. Parameters Returns dvs_ret TODO

update_var_field() [1/2]

pure virtual Update var field values (nodal or elemental) Parameters Returns dvs_ret TODO

update_var_field() [2/2]

pure virtual Update var field values (nodal or elemental) Extend support to handle 64 bit integer variable values. Parameters Returns dvs_ret TODO

update_var_node() [1/2]

pure virtual Update nodal variable values. Parameters Returns dvs_ret TODO

update_var_node() [2/2]

pure virtual Update nodal variable values Extend support to handle 64 bit values
Parameters Returns dvs_ret TODO

update_var_part()

pure virtual Update part vector variable. Parameters Returns dvs_ret TODO The documentation for this class was generated from the following file: