Fesapi
2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
Proxy class for a grid connection set representation. This representation consists of a list of connections between grid cells, potentially on different grids. More...
#include <GridConnectionSetRepresentation.h>
Public Member Functions | |
virtual | ~GridConnectionSetRepresentation ()=default |
virtual uint64_t | getCellIndexPairCount () const =0 |
virtual uint64_t | getCellIndexPairs (uint64_t *cellIndexPairs) const =0 |
virtual unsigned int | getCellIndexPairCountFromInterpretationIndex (unsigned int interpretationIndex) const =0 |
Gets the count of cell index pairs which correspond to a particular interpretation. More... | |
virtual bool | isAssociatedToInterpretations () const =0 |
virtual void | getInterpretationIndexCumulativeCount (unsigned int *cumulativeCount) const =0 |
virtual void | getInterpretationIndices (unsigned int *interpretationIndices) const =0 |
virtual int64_t | getInterpretationIndexNullValue () const =0 |
virtual void | getGridConnectionSetInformationFromInterpretationIndex (uint64_t *cellIndexPairs, unsigned short *gridIndexPairs, int *localFaceIndexPairs, unsigned int interpretationIndex) const =0 |
virtual std::string | getInterpretationUuidFromIndex (unsigned int interpretationIndex) const =0 |
class AbstractFeatureInterpretation * | getInterpretationFromIndex (unsigned int interpretationIndex) const |
virtual unsigned int | getInterpretationCount () const =0 |
virtual bool | hasLocalFacePerCell () const =0 |
virtual int64_t | getLocalFacePerCellIndexPairs (int *localFacePerCellIndexPairs) const =0 |
virtual bool | isBasedOnMultiGrids () const =0 |
virtual void | getGridIndexPairs (unsigned short *gridIndexPairs) const =0 |
virtual void | setCellIndexPairsUsingExistingDataset (uint64_t cellIndexPairCount, const std::string &cellIndexPair, int64_t cellIndexPairNullValue, eml2::AbstractHdfProxy *proxy, int64_t gridIndexPairNullValue=-1, const std::string &gridIndexPair="")=0 |
void | setCellIndexPairs (uint64_t cellIndexPairCount, uint64_t const *cellIndexPair, uint64_t cellIndexPairNullValue, eml2::AbstractHdfProxy *proxy, unsigned short gridIndexPairNullValue=(std::numeric_limits< unsigned short >::max)(), unsigned short *gridIndexPair=nullptr) |
Sets the cell index pairs of this grid connection set representation. More... | |
virtual void | setLocalFacePerCellIndexPairsUsingExistingDataset (const std::string &localFacePerCellIndexPair, int64_t nullValue, eml2::AbstractHdfProxy *proxy)=0 |
Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values are already stored in an existing hdf5 dataset. Null value = -1 according to documentation. More... | |
void | setLocalFacePerCellIndexPairs (uint64_t cellIndexPairCount, int const *localFacePerCellIndexPair, int nullValue, eml2::AbstractHdfProxy *proxy) |
Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values will be written as a new HDF5 dataset in an existing HDF5 file. More... | |
virtual void | setConnectionInterpretationIndices (unsigned int const *interpretationIndices, unsigned int interpretationIndiceCount, unsigned int nullValue, eml2::AbstractHdfProxy *proxy)=0 |
void | pushBackInterpretation (class AbstractFeatureInterpretation *interp) |
void | pushBackSupportingGridRepresentation (class AbstractGridRepresentation *supportingGridRep) |
virtual unsigned int | getSupportingGridRepresentationCount () const =0 |
class AbstractGridRepresentation * | getSupportingGridRepresentation (unsigned int index) const |
virtual common::DataObjectReference | getSupportingGridRepresentationDor (unsigned int index) const =0 |
uint64_t | getXyzPointCountOfPatch (unsigned int patchIndex) const override |
void | getXyzPointsOfPatch (unsigned int patchIndex, double *xyzPoints) const override |
unsigned int | getPatchCount () const override |
virtual std::string | getXmlTag () const override |
Public Member Functions inherited from resqml2::AbstractRepresentation | |
virtual | ~AbstractRepresentation ()=default |
class AbstractLocal3dCrs * | getLocalCrs (unsigned int patchIndex) const |
virtual common::DataObjectReference | getLocalCrsDor (unsigned int patchIndex) const |
virtual common::DataObjectReference | getHdfProxyDor () const =0 |
Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry). More... | |
std::vector< class AbstractProperty * > | getPropertySet () const |
void | setInterpretation (class AbstractFeatureInterpretation *interp) |
class AbstractFeatureInterpretation * | getInterpretation () const |
common::DataObjectReference | getInterpretationDor () const |
uint64_t | getXyzPointCountOfAllPatches () const |
void | getXyzPointsOfPatchInGlobalCrs (unsigned int patchIndex, double *xyzPoints) const |
Gets all the xyz points of a particular patch of this representation. xyz points are given in the global CRS. More... | |
void | getXyzPointsOfAllPatches (double *xyzPoints) const |
Gets all the xyz points of all patches of this representation. xyz points are given in the local CRS. More... | |
bool | isInSingleLocalCrs () const |
bool | isInSingleGlobalCrs () const |
void | getXyzPointsOfAllPatchesInGlobalCrs (double *xyzPoints) const |
AbstractRepresentation * | getSeismicSupportOfPatch (const unsigned int &patchIndex) const |
std::set< AbstractRepresentation * > | getAllSeismicSupport () const |
void | pushBackIntoRepresentationSet (class RepresentationSetRepresentation *repSet) |
void | addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double *inlines, double *crosslines, unsigned int pointCount, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy) |
void | addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double startInline, double incrInline, unsigned int countInline, double startCrossline, double incrCrossline, unsigned int countCrossline, resqml2::AbstractRepresentation *seismicSupport) |
void | addSeismic2dCoordinatesToPatch (unsigned int patchIndex, double *lineAbscissa, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy) |
void | getSeismicLineAbscissaOfPointsOfPatch (unsigned int patchIndex, double *values) const |
void | getInlinesOfPointsOfPatch (unsigned int patchIndex, double *values) const |
void | getCrosslinesOfPointsOfPatch (unsigned int patchIndex, double *values) const |
Public Member Functions inherited from common::AbstractObject | |
bool | isPartial () const |
virtual bool | isTopLevelElement () const |
std::string | getUuid () const |
std::string | getTitle () const |
std::string | getEditor () const |
time_t | getCreation () const |
tm | getCreationAsTimeStructure () const |
std::string | getOriginator () const |
std::string | getDescription () const |
time_t | getLastUpdate () const |
tm | getLastUpdateAsTimeStructure () const |
std::string | getFormat () const |
std::string | getDescriptiveKeywords () const |
std::string | getVersion () const |
void | setTitle (const std::string &title) |
void | setEditor (const std::string &editor) |
void | setCreation (time_t creation) |
void | setCreation (const tm &creation) |
void | setOriginator (const std::string &originator) |
void | setDescription (const std::string &description) |
void | setLastUpdate (time_t lastUpdate) |
void | setLastUpdate (const tm &lastUpdate) |
void | setDescriptiveKeywords (const std::string &descriptiveKeywords) |
void | setVersion (const std::string &version) |
void | setMetadata (const std::string &title, const std::string &editor, time_t creation, const std::string &originator, const std::string &description, time_t lastUpdate, const std::string &descriptiveKeywords) |
void | serializeIntoStream (std::ostream *stream) |
void | setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy) |
void | setGsoapProxy (gsoap_eml2_1::eml21__AbstractObject *gsoapProxy) |
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * | getEml20GsoapProxy () const |
gsoap_eml2_1::eml21__AbstractObject * | getEml21GsoapProxy () const |
gsoap_eml2_2::eml22__AbstractObject * | getEml22GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_2::eml22__AbstractObject *gsoapProxy) |
gsoap_eml2_3::eml23__AbstractObject * | getEml23GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_3::eml23__AbstractObject *gsoapProxy) |
soap * | getGsoapContext () const |
int | getGsoapType () const |
gsoap_resqml2_0_1::eml20__DataObjectReference * | newResqmlReference () const |
gsoap_eml2_1::eml21__DataObjectReference * | newEmlReference () const |
gsoap_eml2_2::eml22__DataObjectReference * | newEml22Reference () const |
gsoap_eml2_3::eml23__DataObjectReference * | newEml23Reference () const |
gsoap_resqml2_0_1::resqml20__ContactElementReference * | newContactElementReference2_0_1 () const |
gsoap_eml2_3::resqml22__ContactElement * | newContactElementReference2_2 () const |
common::DataObjectRepository * | getRepository () const |
virtual std::string | getXmlNamespace () const =0 |
virtual std::string | getXmlNamespaceVersion () const |
virtual std::string | getContentType () const |
virtual std::string | getQualifiedType () const |
virtual std::string | getPartNameInEpcDocument () const |
std::string | serializeIntoString () |
void | addAlias (const std::string &authority, const std::string &title) |
unsigned int | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (unsigned int index) const |
std::string | getAliasTitleAtIndex (unsigned int index) const |
std::vector< eml2::Activity * > | getActivitySet () const |
unsigned int | getActivityCount () const |
eml2::Activity * | getActivity (unsigned int index) const |
void | pushBackExtraMetadata (const std::string &key, const std::string &value) |
std::unordered_map< std::string, std::string > | getExtraMetadataSet () const |
std::vector< std::string > | getExtraMetadata (const std::string &key) const |
unsigned int | getExtraMetadataCount () const |
std::string | getExtraMetadataKeyAtIndex (unsigned int index) const |
std::string | getExtraMetadataStringValueAtIndex (unsigned int index) const |
Static Public Attributes | |
static const char * | XML_TAG |
Static Public Attributes inherited from resqml2::AbstractRepresentation | |
static const char * | XML_TAG |
Additional Inherited Members | |
Public Types inherited from resqml2::AbstractRepresentation | |
enum | indexableElement { NODE = 0 , EDGE = 1 , FACE = 2 , VOLUME = 3 , PILLAR = 4 } |
Public Types inherited from common::AbstractObject | |
enum | hdfDatatypeEnum { UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , LONG_64 = 3 , ULONG_64 = 4 , INT = 5 , UINT = 6 , SHORT = 7 , USHORT = 8 , CHAR = 9 , UCHAR = 10 } |
Static Public Member Functions inherited from common::AbstractObject | |
static void | setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber) |
Proxy class for a grid connection set representation. This representation consists of a list of connections between grid cells, potentially on different grids.
Connections are in the form of (Grid,Cell,Face)1<=>(Grid,Cell,Face)2 and are stored as three integer pair arrays (one grid index pair array, one cell index pair array and one face index pair array) corresponding to these six elements.
Grid connection sets are the preferred means of representing faults on a grid. The use of cell-face-pairs is more complete than single cell- faces, which are missing a corresponding cell face entry, and only provide an incomplete representation of the topology of a fault. Unlike what is sometimes the case in reservoir simulation software, RESQML does not distinguish between standard and non-standard connections. Within RESQML, if a grid connection corresponds to a "nearest neighbor" as defined by the cell indices, then it is never additive to the implicit nearest neighbor connection.
BUSINESS RULE: A single cell- face-pair should not appear within more than a single grid connection set. This rule is designed to simplify the interpretation of properties assigned to multiple grid connection sets, which might otherwise have the same property defined more than once on a single connection, with no clear means of resolving the multiple values.
|
virtualdefault |
Destructor does nothing since the memory is managed by the gsoap context.
Reimplemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the cell index pair count of this grid connection set representation.
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the count of cell index pairs which correspond to a particular interpretation.
std::invalid_argument | If this grid connection set representation does not contain any (fault) interpretation association. |
std::invalid_argument | If the HDF5 library could not read the count of interpretation indices associated to this grid connection set representation. |
std::logic_error | If the intepretation indices are not stored in a HDF5 integer array. |
std::out_of_range | If interpretationIndex is out of range. |
interpretationIndex | The index of an interpretation in the collection of feature interpretation of this grid connection set. |
interpretationIndex
. Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the cell index pairs of this grid connection set representation
logic_error | If the cell index pairs are not stored in a HDF5 integer array. |
[out] | cellIndexPairs | A buffer for receiving the cell index pairs. It must be preallocated with a size of 2 * getCellIndexPairCount() . Two consecutive values cellIndexPairs[i] and cellIndexPairs[i+1] constitute a pair of cell index. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the cell index pairs, the grid index pairs (optional) and the local face index pairs (optional) which correspond to a particular interpretation.
std::invalid_argument | If this grid connection set representation does not contain any (fault) interpretation association. |
std::logic_error | If the intepretation indices or interpretation indices cumulative counts are not stored in a HDF5 integer array. |
[out] | cellIndexPairs | Mandatory buffer to receive the cell index pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex) . |
[in,out] | gridIndexPairs | Optional buffer to receive the grid index pairs. Please set to nullptr for not collecting these pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex) . |
[in,out] | localFaceIndexPairs | Optional buffer to receive the local face index pairs. Please set to nullptr for not collecting these pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex) . |
interpretationIndex | The index of an interpretation in the collection of feature interpretation of this grid connection set. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the grid index pairs of this grid connection representation. Please check that this grid connection set representation is based on several grids thanks to isBasedOnMultiGrids() before calling this method.
std::invalid_argument | If this representation is not based on several grids. |
std::logic_error | If the grid index pairs are not stored in a HDF5 integer array. |
[out] | gridIndexPairs | A buffer for receiving the grid index pairs. It must be preallocated with a size getCellIndexPairCount()*2 and won't be freed by fesapi. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Get the count of interpretations in this grid connection set.
range_error | If the count of associated interpretations is strictly greater than unsigned int. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
class AbstractFeatureInterpretation* resqml2::GridConnectionSetRepresentation::getInterpretationFromIndex | ( | unsigned int | interpretationIndex | ) | const |
Gets a particular (fault) interpretation of this grid connection set.
std::invalid_argument | If this grid connection set representation does not contain fault interpretation association. |
std::invalid_argument | If the associated feature interpretation at position interpretationIndex is not a fault one. This is legal but not yet implemented. |
std::out_of_range | If interpretationIndex is out of range. |
interpretationIndex | The index of a (fault) interpretation in the collection of feature interpretation of this grid connection set. |
interpretationIndex
.
|
pure virtual |
Gets the (fault) interpretation index cumulative counts of this grid connection representation.
std::invalid_argument | If this grid connection set representation does not contain any (fault) interpretation association. |
std::logic_error | If the intepretation indices cumulative counts are not stored in a HDF5 integer array. |
[out] | cumulativeCount | A buffer for receiving the cumulative counts. Must be preallocated with a size of getCellIndexPairCount(). The number of interpretations associated to the connection at index i is cumulativeCount[i] . |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the null value for interpretation index.
std::invalid_argument | If this grid connection set representation does not contain any (fault) interpretation association. |
std::logic_error | If the intepretation indices are not stored in a HDF5 integer array. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the (fault) interpretation indices of this grid connection representation.
std::invalid_argument | If this grid connection set representation does not contain any (fault) interpretation association. |
std::logic_error | If the intepretation indices are not stored in a HDF5 integer array. |
[out] | interpretationIndices | A buffer for receiving the interpretation indices. It must be preallocated with a size equals to the last value of cumulativeCount after calling getInterpretationIndexCumulativeCount(cumulativeCount). |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the UUID of a particular (fault) interpretation of this grid connection set.
std::invalid_argument | If this grid connection set representation does not contain fault interpretation association. |
std::invalid_argument | If the associated feature interpretation at position interpretationIndex is not a fault one. This is legal but not yet implemented. |
std::out_of_range | If interpretationIndex is out of range. |
interpretationIndex | The index of a (fault) interpretation in the collection of feature interpretation of this grid connection set. |
interpretationIndex
. Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the local face per cell index pairs of this grid connection representation. Please check that this grid connection set representation has local face per cell index pairs thanks to hasLocalFacePerCell() before calling this method.
std::invalid_argument | If this representation has no local face per cell pair. |
std::logic_error | If the local face per cell index pairs are not stored in a HDF5 integer array. |
[out] | localFacePerCellIndexPairs | A buffer for receiving the local face per cell index pairs. It must be preallocated with a size of getCellIndexPairCount()*2 and won't be freed by fesapi. |
localFacePerCellIndexPairs
. Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
inlineoverridevirtual |
class AbstractGridRepresentation* resqml2::GridConnectionSetRepresentation::getSupportingGridRepresentation | ( | unsigned int | index | ) | const |
Gets the supporting grid representation located at a specific index of this grid connection set representation.
std::out_of_range | If index is out of range. |
index | Zero-based index of the supporting grid representation we look for. |
index
.
|
pure virtual |
Gets the count of supporting grid representations of this grid connection representation.
std::range_error | If the count of supporting grid representations is strictly greater than unsigned int maximum value. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Gets the data object reference of the supporting grid representation located at a specific index of this grid connection set representation.
std::out_of_range | If index is out of range. |
index | Zero-based index of the supporting grid representation we look for. |
index
. Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
inlineoverridevirtual |
Gets the standard XML tag without XML namespace for serializing this data object.
Implements common::AbstractObject.
|
overridevirtual |
Please do note use: not implemented yet.
Implements resqml2::AbstractRepresentation.
|
overridevirtual |
Please do note use: not implemented yet.
Implements resqml2::AbstractRepresentation.
|
pure virtual |
Indicates if this grid connection set representation contains information on the connected faces of the cell pairs.
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Indicates whether the cell connections are associated to interpretation or not.
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
Indicates if this grid connection set representation is based on several grids.
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
void resqml2::GridConnectionSetRepresentation::pushBackInterpretation | ( | class AbstractFeatureInterpretation * | interp | ) |
Pushes back an interpretation which can be mapped with some connections.
std::invalid_argument | If interp is nullptr . |
[in] | interp | The interpretation to push back. |
void resqml2::GridConnectionSetRepresentation::pushBackSupportingGridRepresentation | ( | class AbstractGridRepresentation * | supportingGridRep | ) |
Pushes back a grid representation which is one of the support of this representation. Pushes back this representation as a grid connection information of the grid representation as well.
std::invalid_argument | If supportingGridRep is nullptr . |
[in] | supportingGridRep | The supporting grid representation to push back. |
void resqml2::GridConnectionSetRepresentation::setCellIndexPairs | ( | uint64_t | cellIndexPairCount, |
uint64_t const * | cellIndexPair, | ||
uint64_t | cellIndexPairNullValue, | ||
eml2::AbstractHdfProxy * | proxy, | ||
unsigned short | gridIndexPairNullValue = (std::numeric_limits< unsigned short >::max)() , |
||
unsigned short * | gridIndexPair = nullptr |
||
) |
Sets the cell index pairs of this grid connection set representation.
std::invalid_argument | If cellIndexPairCount is 0. |
std::invalid_argument | If proxy is nullptr and no default HDF proxy is defined in the repository. |
std::invalid_argument | If cellIndexPairNullValue is strictly greater than uint64_t max. The XML null value cannot be greater than a 64 bits signed integer cause of gSOAP mappings. |
cellIndexPairCount | The count of cell index pairs. It is half the size of cellIndexPair (and of gridIndexPair if used). | |
[in] | cellIndexPair | All the cell index pair in a 1d array where the cell indices go faster than the pair. |
cellIndexPairNullValue | The integer null value used in cellIndexPair . | |
[in,out] | proxy | The HDF proxy where the numerical values (cell indices) are stored. If nullptr , then the default HDF proxy of the repository will be used. |
gridIndexPairNullValue | (Optional) The integer null value used in gridIndexPair . | |
[in] | gridIndexPair | (Optional) All the grid index pair in a 1d array where the grid indices go faster than the pair. The grid at an index must correspond to the cell at the same index in the cellIndexPair array. |
|
pure virtual |
Sets the cell index pairs of this grid connection set representation using some existing HDF datasets.
std::invalid_argument | If cellIndexPairCount is 0. |
std::invalid_argument | If proxy is nullptr and no default HDF proxy is defined in the repository. |
cellIndexPairCount | The count of cell index pairs. It is half the size of the 1d array containing the cell index pairs (and of the one containing grid index pairs if there is one). | |
cellIndexPair | The HDF dataset path where we can find all the cell index pairs in a 1d array where the cell indices go faster than the pair. | |
cellIndexPairNullValue | The integer null value used in the HDF cell index pair dataset. | |
[in] | proxy | The HDF proxy where the numerical values (cell indices) are stored. If nullptr , then the default HDF proxy of the repository will be used. |
gridIndexPairNullValue | (Optional) The integer null value used in the HDF grid index pair dataset. | |
gridIndexPair | (Optional) The HDF dataset path where we can find all the grid index pairs in a 1d array where the grid indices go faster than the pair. The grid at an index must correspond to the cell at the same index in the cellIndexPair array. If empty string (default), then no grid index pair will be set and parameter gridIndexPairNullValue will be unused. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
pure virtual |
For each connection in this grid connection set representation, allows to map zero or one feature interpretation. RESQML allows to map with more than one feature interpretation but this feature is not implemented yet.
std::invalid_argument | If proxy == nullptr . |
[in] | interpretationIndices | For each connection, the index of the corresponding interpretation in the interpretation set of this grid connection set. The count of this array is interpretationIndiceCount . |
interpretationIndiceCount | The count of interpretation indices. | |
nullValue | The null value must be used as the corresponding interpretation index for each connection which is not associated to any interpretation. | |
[in,out] | proxy | The Hdf proxy where the numerical values will be stored. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
void resqml2::GridConnectionSetRepresentation::setLocalFacePerCellIndexPairs | ( | uint64_t | cellIndexPairCount, |
int const * | localFacePerCellIndexPair, | ||
int | nullValue, | ||
eml2::AbstractHdfProxy * | proxy | ||
) |
Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values will be written as a new HDF5 dataset in an existing HDF5 file.
std::invalid_argument | If proxy is nullptr and no default HDF proxy is defined in the repository. |
cellIndexPairCount | The count of cell index pair. It is half the size of localFacePerCellIndexPair . | |
[in] | localFacePerCellIndexPair | All the local face per cell index pairs in a 1d array where the local face per cell indices go faster than the pair. The local face per cell at an index must correspond to the cell at the same index in the 1d array containing the cell index pairs. |
nullValue | The null value in localFacePerCellIndexPair . | |
[in,out] | proxy | The HDF proxy where the numerical values (cell indices) are stored. If nullptr , then the default HDF proxy of the repository will be used. |
|
pure virtual |
Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values are already stored in an existing hdf5 dataset. Null value = -1 according to documentation.
std::invalid_argument | If proxy == nullptr and no default HDF proxy is defined in the repository. |
localFacePerCellIndexPair | The HDF dataset path where we can find all the local Face Per CellIndex Pair in a 1d array. The size of the numerical values is 2 times the number of connections array of local face-per- cell indices for (Cell1,Cell2) for each connection. | |
nullValue | The null value. | |
[in,out] | proxy | The HDF proxy where the numerical values (cell indices) are stored. if nullptr , then the repository default HDF proxy will be used. |
Implemented in resqml2_2::GridConnectionSetRepresentation, and resqml2_0_1::GridConnectionSetRepresentation.
|
static |
The standard XML tag without XML namespace for serializing this data object.