Skip to main content
#include <dvs_mesh_chunk_interface.h> Inheritance diagram for DVS::IMeshChunk:

Public Types

Public Member Functions

Public Member Functions inherited from DVS::IHash
Public Member Functions inherited from DVS::IVarHash

Detailed Description

A mesh chunk in DVS contains the underlying mesh coordinates and nodal variable information for a specific timestep/rank/chunk. It also is the parent object for IElementBlock objects which contain the element / connectivity information. Mesh chucks can be unstructured or structured (paralellepiped or curvilinear). See DVS::IHash and DVS::IVarHash for the hash object interface. Definition at line 48 of file dvs_mesh_chunk_interface.h.

Member Enumeration Documentation

Axis

The AXIS or IJK component to request. Definition at line 75 of file dvs_mesh_chunk_interface.h.

MeshType

The different mesh types allowed. Definition at line 63 of file dvs_mesh_chunk_interface.h.

Member Function Documentation

get_chunk()

pure virtual Get the chunk for this mesh chunk. Returns uint32_t the chunk this mesh chunk is associated with (zero based)

get_coords()

pure virtual Get the coordinates for an unstructured mesh. Retrieves the coordinates for an unstructured mesh. To get the coordinates interleaved in a single array call get_coords_interleaved(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_PARAM_NULL: nullptr passed into method, method did nothing
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::UNSTRUCTURED
  • DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
  • DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data.
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_curv()

pure virtual Get coordinate data for a structured curvilinear mesh. Structured curvilinear meshes have the XYZ information for every node in the IJK array for flexibility in defining the nodes. The connectivity for the mesh is implied so there are no connectivity arrays in the DVS::IElemBlock. If you’d like the XYZ coordinates interleaved in a single array call get_coords_curv_interleaved(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_PARAM_NULL: nullptr passed into method, method did nothing
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::CURVILINEAR
  • DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
  • DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data.
  • DVS_INVALID_STRUCTURED_DATA: Invalid structured data. There is a problem with the data.
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_curv_interleaved()

pure virtual Get the coords for structured curvilinear meshes interleaved in a single array. Structured curvilinear meshes have the XYZ information for every node in the IJK array for flexibility in defining the nodes. The connectivity for the mesh is implied so there are no connectivity arrays in the DVS::IElemBlock. This method returns the XYZ coordinates interleaved in a single array of the format [X0 Y0 Z0 X1 Y1 Z1]. If you’d like the XYZ coordinates in separate x,y,z arrays call get_coords_curv(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_PARAM_NULL: nullptr passed into method, method did nothing
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::CURVILINEAR
  • DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
  • DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data.
  • DVS_INVALID_STRUCTURED_DATA: Invalid structured data. There is a problem with the data.
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_curv_size()

pure virtual Get the size of each coordinate component for structured curvilinear meshes. Returns the size of each component of a curvilinear mesh. This is used with the method get_coords_curv(). For get_coords_curv_interleaved() use the size component_size*3 to allocate the array. Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::CURVILINEAR
  • DVS_INVALID_STRUCTURED_DATA: Structured data is invalid, should not happen
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_interleaved()

pure virtual Get the coords for a unstructured meshes interleaved in a single array. Retrieves the coordinates for an unstructured mesh interleaved ([X0 Y0 Z0 X1 Y1 Z1]) instead of as separate X Y Z arrays as the method get_coords() returns. The coords array should be of size component_size*3 returned from get_coords_size(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_PARAM_NULL: nullptr passed into method, method did nothing
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::UNSTRUCTURED
  • DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
  • DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data. Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_parallele()

pure virtual Get the ijk mesh information for structured parallelepiped mesh chunks. Retrieves the mesh information for a structured parallelepiped mush chunk. Parallelepiped structured meshes are described by an origin, XYZ direction vectors for each dimension and the amount of distance between the origin at each I, K and K increment. To get the size to allocate for i_vals, j_vals, and k_vals call get_coords_parallele_size(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_PARAM_NULL: nullptr passed into method, method did nothing
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::CURVILINEAR
  • DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
  • DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data.
  • DVS_INVALID_STRUCTURED_DATA: Invalid structured data. There is a problem with the data.
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_parallele_size()

pure virtual Get the size of each ijk component for structured parallelpiped meshes. Returns the size of each component of a parallelpiped mesh. This is used with the method get_coords_parallele(). Use the sizes returned to allocate the arrays for get_coords_parallele(). Errors:
  • DVS_NO_DATA: No data for this mesh, not an error
  • DVS_INVALID_MESH_TYPE: Mesh type is not DVS::IMeshChunk::MeshType::CURVILINEAR
  • DVS_INVALID_STRUCTURED_DATA: Structured data is invalid, There is a problem with the data.
Parameters Returns dvs_ret DVS_NONE on success, see method documentation for errors

get_coords_size()

pure virtual Get the size of each coordinate component for unstructured meshes. Used for unstructured meshes. Returns the size of each x/y/z coordinate array to be used with get_coords() or component_size*3 for get_coords_interleaved(). Errors: Parameters Returns dvs_ret DVS_NONE on no error, see method documentation for errors

get_element_block()

pure virtual Get the element block by index. Get the element block according to it’s index in the mesh chunk. This range is from [0, get_num_element_blocks()-1]. Every mesh chunk has a number of element blocks for each element type it has data for. Parameters Returns DVS::IElementBlock* nullptr if index is out of bounds, otherwise the element block

get_element_block_by_type()

pure virtual Get the element block by element type. Get the element block by dvs_element_type from this mesh chunk, the valid types for this mesh chunk may be obtained via the method get_element_block_types(). Every mesh chunk has an element block for each element type it has data available for. These types are defined by the enum dvs_element_type in dynamic_visualization_store_enums.h with a macro FOREACH_ELEM_ENUM. Parameters Returns DVS::IElementBlock* nullptr if invalid, otherwise the element block

get_element_block_types()

pure virtual Get an array of the element block types for this mesh chunk. This returns an array of dvs_element_type for every block this mesh chunk contains. These types are defined by the enum dvs_element_type in dynamic_visualization_store_enums.h with a macro FOREACH_ELEM_ENUM. Parameters Returns dvs_ret DVS_NONE on no errors, DVS_PARAM_NULL if element types nullptr

get_num_element_blocks()

pure virtual Get the number of element blocks for this mesh chunk. Every mesh chunk has an element block for each element type it has data available for. These types are defined by the enum dvs_element_type in dynamic_visualization_store_enums.h with a macro FOREACH_ELEM_ENUM. Errors:
  • DVS_NONE: Success
Parameters Returns DVS_NONE on success, else see method description

get_num_variables()

pure virtual Get the number of nodal variables this mesh chunk has data for, based on the specified type. This method is intended to be used in conjunction with get_variable() and get_variable_data() to retrieve nodal variable data. Errors:
  • DVS_NONE: Success
Parameters Returns dvs_ret DVS_NONE if success, else see method description

get_object()

pure virtual Get the object definiton this mesh chunk is associated with. Returns const DVS::IObject* the object definition

get_rank()

pure virtual Get the rank for the mesh chunk. Returns uint32_t the rank this mesh chunk is associated with (zero based)

get_time()

pure virtual Get the time for this mesh chunk. Returns float the time this mesh chunk is associated with

get_type()

pure virtual Get the type of mesh chunk. Returns MeshType the type of mesh

get_variable()

pure virtual Get the variable definition associates with the nodal variable for this index and the specified type. This method retrieves the variable that is associated with the nodal variable of the mesh chunk at a specific index in range [0,get_num_variables()-1] and of the specified type Parameters Returns DVS::IVar* nullptr if out of range, otherwise the variable associated with the index

get_variable_data() [1/6]

pure virtual Get the variable data by variable. This method retrieves the nodal variable data based on a specific variable definitions. Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_INVALID_VAR: Bad (or null) variable object passed into method
  • DVS_PARAM_INVALID_VAR_ID: Mesh chunk does not have data for var passed in.
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_data() [2/6]

pure virtual Get the variable data by variable. This method retrieves the nodal variable data based on a specific variable definitions. Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_INVALID_VAR: Bad (or null) variable object passed into method
  • DVS_PARAM_INVALID_VAR_ID: Mesh chunk does not have data for var passed in.
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_data() [3/6]

pure virtual Get the variable data by variable. This method retrieves the nodal variable data based on a specific variable definitions. Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_INVALID_VAR: Bad (or null) variable object passed into method
  • DVS_PARAM_INVALID_VAR_ID: Mesh chunk does not have data for var passed in.
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_data() [4/6]

pure virtual Get the variable data by index. This method retrieves nodal variable data based on an index in range [0,get_num_variables()-1]. To retrieve the variable definition associated with the index call get_variable(). Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_PARAM_OUT_OF_BOUNDS: Index out of bounds of [0, get_num_variables()-1]
  • DVS_PARAM_INVALID_VAR: Invalid variable found at index, should not happen
  • DVS_PARAM_INVALID_VAR_ID: Invalid variable id found at index, should not happen
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_data() [5/6]

pure virtual Get the variable data by index. This method retrieves nodal variable data based on an index in range [0,get_num_variables()-1]. To retrieve the variable definition associated with the index call get_variable(). Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_PARAM_OUT_OF_BOUNDS: Index out of bounds of [0, get_num_variables()-1]
  • DVS_PARAM_INVALID_VAR: Invalid variable found at index, should not happen
  • DVS_PARAM_INVALID_VAR_ID: Invalid variable id found at index, should not happen
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_data() [6/6]

pure virtual Get the variable data by index. This method retrieves nodal variable data based on an index in range [0,get_num_variables()-1]. To retrieve the variable definition associated with the index call get_variable(). Error Codes:
  • DVS_NONE: No error
  • DVS_PARAM_NULL: All parameters are null. Method will do nothing.
  • DVS_PARAM_OUT_OF_BOUNDS: Index out of bounds of [0, get_num_variables()-1]
  • DVS_PARAM_INVALID_VAR: Invalid variable found at index, should not happen
  • DVS_PARAM_INVALID_VAR_ID: Invalid variable id found at index, should not happen
  • DVS_INVALID_CACHE: Cache is unable to be read. Bad location or permissions
  • DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
  • DVS_DATA_FAILED_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_size() [1/2]

pure virtual Get the variable size by variable. This method retrieves the nodal variable data size based on a specific variable definitions. Error Codes:
  • DVS_NONE: Success
  • DVS_PARAM_INVALID_VAR: Bad (or null) variable object passed into method
Parameters Returns dvs_ret DVS_NONE on no error, otherwise see method description

get_variable_size() [2/2]

pure virtual Get the variable size via the index and specified type. This method retrieves the variable’s size that is associated with the nodal variable of the mesh chunk at a specific index in range [0,get_num_variables()-1] and of the specified type Errors:
  • DVS_NONE: Success
Parameters Returns dvs_ret DVS_NONE if success, else see method description The documentation for this class was generated from the following file: