ansys::CffConsumer Class Reference
Last update: 16.07.2025Class that provides functions to write data within a CFF database. The database may be stored within a file or some other form of database but the functions provided in this class are common across all implementation and the data must be provided according to the rules defined in the CFF DataModels. More...
#include "CffInterface/CffConsumer.hpp"

Public Member Functions | |
| CffConsumer (const std::string &applicationName="Unknown") | |
| Constructor. More... | |
| virtual | ~CffConsumer () |
| Destructor. More... | |
| virtual void | log (const std::vector< std::pair< std::string, std::string > >, DataClass=DataClass::CFF_CASE) |
| virtual void | setIOMode (IOMode ioMode) |
| virtual void | setMPIComm (void *mpiComm) |
| virtual void | setCompression (int compression) |
| virtual bool | isWriting (DataClass dataClass) const |
| Return whether a file is currently being written. More... | |
| virtual bool | startWriting (DataClass dataClass) |
| virtual bool | endWriting (DataClass dataClass) |
| virtual bool | addStringAttribute (const std::string &file, const std::string &path, const std::string &name, const std::string &strAtt) |
| virtual void | inheritVariableAttributes (bool inheritVariableAttributes) |
| bool | isWritingData () const |
| DEPRECATED: Function to determine whether it is possible to write data of type ansys::DataClass::CFF_RESULTS. More... | |
Settings | |
| virtual void | writeSettingStrings (const std::vector< std::pair< std::string, std::string > > &, DataClass=DataClass::CFF_CASE, const std::string &=CffBase::_defaultSettingsPath) const |
| Write settings to the CFF consumer. More... | |
| virtual void | writeSetting (CffSetting &setting, const std::string &key="Common", DataClass dataClass=DataClass::CFF_CASE, const std::string &rootName=CffBase::_defaultSettingsPath) const |
| Write a settings object to CFF consumer. More... | |
Mesh Size, Units and Attributes | |
| virtual void | writeMeshAttributes () const |
| Write the global mesh size attributes and units to the active mesh. More... | |
| void | writeMeshSize () const |
Parallel Interface | |
| virtual void | setLocalElemIdsInZone (const ZoneIdType zoneId, const ElemIdType *const index, const size_t dataSize) |
| Provide a local element mapping to global element mapping. More... | |
Node Zones | |
| virtual void | startWritingNodes (const ZoneIds &zoneIds) const |
| virtual void | endWritingNodes () const |
| End writing nodes. More... | |
Node Coordinates | |
| virtual void | startWritingCoordinatesForNodes (const ZoneIds &zoneIds) const |
| Start writing the coorindinates for nodes. More... | |
| virtual void | setCoordinatesForNode (const ElemIdType nodeId, const float *const coords, const size_t) const |
| Define the coordinates for a specific node (single precision) More... | |
| virtual void | setCoordinatesForNodesInZone (const ZoneIdType zoneId, const float *const coords, const size_t) const |
| Provide the coordinates for all nodes in zone. More... | |
| virtual void | setCoordinatesForNodesInRange (const ElemIdType minId, const ElemIdType maxId, const float *const coords, const size_t) const |
| Provide the coordinates for all nodes in range. More... | |
| virtual void | setCoordinatesForNode (const ElemIdType nodeId, const double *const coords, const size_t) const |
| Define the coordinates for a specific node (double precision) More... | |
| virtual void | setCoordinatesForNodesInZone (const ZoneIdType zoneId, const double *const coords, const size_t) const |
| Provide the coordinates for all nodes in zone. More... | |
| virtual void | setCoordinatesForNodesInRange (const ElemIdType minId, const ElemIdType maxId, const double *const coords, const size_t) const |
| Provide the coordinates for all nodes in range. More... | |
| virtual void | endWritingCoordinatesForNodes () const |
| Finish writing coordinates for nodes. More... | |
Edge Zones | |
| virtual void | startWritingEdges (const ZoneIds &zoneIds) const |
| Start writing information for elements in edge zones. More... | |
| virtual void | endWritingEdges () const |
| End writing data associated with edges. More... | |
Edge Nodes | |
| virtual void | startWritingNodesForEdges (const ZoneIds &zoneIds) const |
| Start writing nodes for edges within specified zones. More... | |
| virtual void | startWritingNodeCountsForEdges () const |
| Start writing the node counts for edge zones. More... | |
| virtual void | setUniformNodeCountForEdgesInRange (const ElemIdType minId, const ElemIdType maxId, const short unc) const |
| Set a uniform node count for all faces in a range. More... | |
| virtual void | setUniformNodeCountForEdgesInZone (const ZoneIdType zoneId, const short unc) const |
| Set a uniform node count for all faces in a zone. More... | |
| virtual void | setNodeCountForEdge (const ElemIdType edgeId, const short nodeCount) const |
| Set the number of nodes that define an edge. More... | |
| virtual void | setNodeCountsForEdgesInRange (const ElemIdType minId, const ElemIdType maxId, const short *const nodeCounts, const size_t) const |
| Set the number of nodes that define a range of edges. More... | |
| virtual void | setNodeCountsForEdgesInZone (const ZoneIdType zoneId, const short *const nodeCounts, const size_t) const |
| Set the number of nodes that define a edge zone. More... | |
| virtual void | endWritingNodeCountsForEdges () const |
| End writing the node counts for edges. More... | |
| virtual void | startWritingNodeIdsForEdges () const |
| Start writing the node ids for edges. More... | |
| virtual void | setNodeIdsForEdge (const ElemIdType edgeId, const ElemIdType *const nodeIds, const size_t) const |
| Provide the ids of the nodes for a single edge. More... | |
| virtual void | setNodeIdsForEdgesInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const nodeIds, const size_t) const |
| Provide the ids of the nodes for a range of edges. More... | |
| virtual void | setNodeIdsForEdgesInZone (const ZoneIdType zoneId, const ElemIdType *const nodeIds, const size_t) const |
| Provide the ids of the nodes for all edges in an edge zone. More... | |
| virtual void | endWritingNodeIdsForEdges () const |
| End writing node ids for edges. More... | |
| virtual void | endWritingNodesForEdges () const |
| End writing nodes for edges. More... | |
Face Zones | |
To read the nodes (vertices) for a specific face, specified face range or all faces within a face zone the following group of functions must be called. In this example the code is reading the nodes for all faces for the first zone that contains faces with nodes. // Create the provider ansys::CffProvider* provider = ...; provider->startReading(ansys::DataClass::CFF_CASE); | |
| virtual void | setFaceCellZone0Ids (const ZoneIdType zoneId, const ZoneIds &cellZoneIds) const |
| Set the cell zones adjacent on side 0 of the supplied face zone. More... | |
| virtual void | setFaceCellZone1Ids (const ZoneIdType zoneId, const ZoneIds &cellZoneIds) const |
| Set the cell zones adjacent on side 1 of the supplied face zone. More... | |
| virtual void | startWritingFaces (const ZoneIds &zoneIds) const |
| Start of writing faces. More... | |
| virtual void | endWritingFaces () const |
| End of writing face data. More... | |
Face Nodes | |
| virtual void | startWritingNodesForFaces (const ZoneIds &zoneIds) const |
| Start writing faces nodes. More... | |
| virtual void | startWritingNodeCountsForFaces () const |
| Start writing node counts for faces. More... | |
| virtual void | setUniformNodeCountForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const short unc) const |
| Set a uniform node count for the faces in a range. More... | |
| virtual void | setUniformNodeCountForFacesInZone (const ZoneIdType zoneId, const short unc) const |
| Set a uniform node count for the faces in a zone. More... | |
| virtual void | setNodeCountForFace (const ElemIdType faceId, const short nodeCount) const |
| Define the node count for the face supplied. More... | |
| virtual void | setNodeCountsForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const short *const nodeCounts, const size_t) const |
| Define the node count for the faces in the range supplied. More... | |
| virtual void | setNodeCountsForFacesInZone (const ZoneIdType zoneId, const short *const nodeCounts, const size_t) const |
| Define the node count for the faces in the zone. More... | |
| virtual void | endWritingNodeCountsForFaces () const |
| End writing faces node counts. More... | |
| virtual void | startWritingNodeIdsForFaces () const |
| Start writing faces node ids. More... | |
| virtual void | setNodeIdsForFace (const ElemIdType faceId, const ElemIdType *const nodeIds, const size_t) const |
| set the node ids of single face More... | |
| virtual void | setNodeIdsForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const nodeIds, const size_t) const |
| set the node ids of faces in a range More... | |
| virtual void | setNodeIdsForFacesInZone (const ZoneIdType zoneId, const ElemIdType *const nodeIds, const size_t) const |
| set the node ids for all faces in a face zone More... | |
| virtual void | endWritingNodeIdsForFaces () const |
| End of writing faces node ids. More... | |
| virtual void | endWritingNodesForFaces () const |
| End of writing faces nodes. More... | |
Face Cell Parents | |
| virtual void | startWritingCell0sForFaces (const ZoneIds &zoneIds) const |
| Start writing cell0 cell ids for faces. More... | |
| virtual void | setCell0ForFace (const ElemIdType faceId, const ElemIdType faceC0) const |
| set the c0 cell id of single face More... | |
| virtual void | setCell0sForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const faceC0s, const size_t) const |
| set the c0 cell ids of faces in a range More... | |
| virtual void | setCell0sForFacesInZone (const ZoneIdType zoneId, const ElemIdType *const faceC0s, const size_t) const |
| set the c0 cell ids for all faces in a face zone More... | |
| virtual void | endWritingCell0sForFaces () const |
| End of writing cell0 of faces. More... | |
| virtual void | startWritingCell1sForFaces (const ZoneIds &zoneIds) const |
| Start writing cell1 cell ids for faces. More... | |
| virtual void | setCell1ForFace (const ElemIdType faceId, const ElemIdType faceC1) const |
| set the c1 cell id of single face More... | |
| virtual void | setCell1sForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const faceC1s, const size_t) const |
| set the c1 cell ids of faces in a range More... | |
| virtual void | setCell1sForFacesInZone (const ZoneIdType zoneId, const ElemIdType *const faceC1s, const size_t) const |
| set the c1 cell ids for all faces in a face zone More... | |
| virtual void | endWritingCell1sForFaces () const |
| End of writing cell1 of faces. More... | |
Face Shadow Faces Mappings | |
| virtual void | startWritingShadowFaceIdsForFaces (const ZoneIds &zoneIds) const |
| Start writing shadow faces of faces. More... | |
| virtual void | setShadowFaceIdForFace (const ElemIdType faceId, const ElemIdType shadowFaceId) const |
| set the shadow face id of single face More... | |
| virtual void | setShadowFaceIdsForFacesInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const faceShadows, const size_t) const |
| Set the shadows face ids of faces in a range. More... | |
| virtual void | setShadowFaceIdsForFacesInZone (const ZoneIdType zoneId, const ElemIdType *const faceShadows, const size_t) const |
| set the shadows face ids for all faces in a face zone More... | |
| virtual void | endWritingShadowFaceIdsForFaces () const |
| End of writing shadow faces ids. More... | |
Interface Face Mappings | |
| virtual void | startWritingInterfaceDataForFaces (const ZoneIds &, const std::vector< int > &) const |
| virtual void | setInterfaceDataForFacesInZone (const ZoneIdType, const double *const, const size_t, const double *const, const size_t, const size_t *const, const size_t, const size_t *const =NULL, const size_t=0) const |
| virtual void | setInterfaceDataForFacesInZone (const ZoneIdType, const float *const, const size_t, const float *const, const size_t, const size_t *const, const size_t, const size_t *const =NULL, const size_t=0) const |
| virtual void | endWritingInterfaceDataForFaces () const |
Face Zone Refinement (Child Faces) | |
| virtual void | startWritingChildFacesForFaces (const ZoneIds &) const |
| Start writing refined face data for faces in specified zones. More... | |
| virtual void | startWritingChildFaceCountsForFaces () const |
| Start writing refined child face counts for faces. More... | |
| virtual void | setChildFaceCountForFace (const ElemIdType faceId, const short childCount) const |
| Set a refined child face count for a single face. More... | |
| virtual void | setChildFaceCountsForFacesInRange (const ElemIdType, const ElemIdType, const short *const, const size_t) const |
| Set a refined child face counts for a range of faces. More... | |
| virtual void | setChildFaceCountsForFacesInZone (const ZoneIdType, const short *const, const size_t) const |
| Set a refined child face counts for all faces in a zone. More... | |
| virtual void | setUniformChildFaceCountForFacesInRange (const ElemIdType, const ElemIdType, const short) const |
| Set a uniformed refined child face count for a face range. More... | |
| virtual void | setUniformChildFaceCountForFacesInZone (const ZoneIdType, const short) const |
| Set a uniformed refined child face count for all faces in a zone. More... | |
| virtual void | endWritingChildFaceCountsForFaces () const |
| End writing refined child face counts. More... | |
| virtual void | startWritingChildFaceIdsForFaces () const |
| Start writing refined child face ids. More... | |
| virtual void | setChildFaceIdsForFace (const ElemIdType faceId, const ElemIdType *const childIds, const size_t dataSize) const |
| Write refined child face ids for a face. More... | |
| virtual void | setChildFaceIdsForFacesInRange (const ElemIdType, const ElemIdType, const ElemIdType *const, const size_t) const |
| Write refined child face ids for faces in a range. More... | |
| virtual void | setChildFaceIdsForFacesInZone (const ZoneIdType, const ElemIdType const, const size_t) const |
| Write refined child face ids for all faces in a zone. More... | |
| virtual void | endWritingChildFaceIdsForFaces () const |
| Finish writing refined child face ids. More... | |
| virtual void | endWritingChildFacesForFaces () const |
| Finish writing refined child face data. More... | |
Cell Zones | |
| virtual void | startWritingCells (const ZoneIds &) const |
| Start writing cells. More... | |
| virtual void | endWritingCells () const |
| End of writing cells. More... | |
Cell Types | |
To read the type for a specific cell, specified cell range or all cells within a cell zone the following group of functions must be called. In this example the code is reading all the nodes for the first zone that contains cell types; // Create the provider ansys::CffProvider provider = ...; provider->startReading(ansys::DataClass::CFF_CASE); | |
| virtual void | startWritingTypesForCells (const ZoneIds &, const std::vector< CellType > &) const |
| Start writing cells types. More... | |
| virtual void | setTypeForCell (const ElemIdType cellId, const CellType cellType) const |
| set the cell type of single cell More... | |
| virtual void | setTypesForCellsInRange (const ElemIdType, const ElemIdType, const CellType *const, const size_t) const |
| set the cell element types of cells in a range More... | |
| virtual void | setTypesForCellsInZone (const ZoneIdType, const CellType const cellTypes, const size_t) const |
| set the cell element types for all cells in a cell zone More... | |
| virtual void | endWritingTypesForCells () const |
| End of writing cell types. More... | |
Cell Nodes | |
To read the nodes (vertices) for a specific cell, specified cell range or all cells within a cell zone the following group of functions must be called. In this example the code is reading the nodes for all cells for the first zone that contains cells with nodes. // Create the provider ansys::CffProvider provider = ...; provider->startReading(ansys::DataClass::CFF_CASE); | |
| virtual void | startWritingNodesForCells (const ZoneIds &zoneIds) const |
| Start writing cell nodes. More... | |
| virtual void | startWritingNodeCountsForCells () const |
| Start writing counts for cell nodes. More... | |
| virtual void | setNodeCountForCell (const ElemIdType cellId, const short nodeCount) const |
| set the node count for single cell More... | |
| virtual void | setNodeCountsForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const short *const nodeCounts, const size_t) const |
| Set the node counts for several cells. More... | |
| virtual void | setNodeCountsForCellsInZone (const ZoneIdType zoneId, const short *const nodeCounts, const size_t) const |
| set the node counts for all cells in an cell zone More... | |
| virtual void | setUniformNodeCountForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const short unc) const |
| virtual void | setUniformNodeCountForCellsInZone (const ZoneIdType zoneId, const short unc) const |
| virtual void | endWritingNodeCountsForCells () const |
| End of writing counts for cell nodes. More... | |
| virtual void | startWritingNodeIdsForCells () const |
| Start writing ids for cell nodes. More... | |
| virtual void | setNodeIdsForCell (const ElemIdType cellId, const ElemIdType *const nodeIds, const size_t dataSize) const |
| set the node ids of single cell More... | |
| virtual void | setNodeIdsForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const nodeIds, const size_t) const |
| set the node ids of cells in a range More... | |
| virtual void | setNodeIdsForCellsInZone (const ZoneIdType zoneId, const ElemIdType *const nodeIds, const size_t) const |
| set the node ids for all cells in a cell zone More... | |
| virtual void | endWritingNodeIdsForCells () const |
| End of writing ids for cell nodes. More... | |
| virtual void | endWritingNodesForCells () const |
| End of writing cell nodes. More... | |
Cell Faces | |
| |
| virtual void | startWritingFacesForCells (const ZoneIds &zoneIds) const |
| Start writing cell faces. More... | |
| virtual void | startWritingFaceCountsForCells () const |
| Start writing count of cell faces. More... | |
| virtual void | setFaceCountForCell (const ElemIdType cellId, const short faceCount) const |
| set the face count for single cell More... | |
| virtual void | setFaceCountsForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const short *const faceCounts, const size_t dataSize) const |
| Set the face counts for several cells. More... | |
| virtual void | setFaceCountsForCellsInZone (const ZoneIdType zoneId, const short *const faceCounts, const size_t) const |
| set the face counts for all cells in an cells zone More... | |
| virtual void | setUniformFaceCountForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const short unc) const |
| virtual void | setUniformFaceCountForCellsInZone (const ZoneIdType zoneId, const short unc) const |
| virtual void | endWritingFaceCountsForCells () const |
| End of writing counts of cells faces. More... | |
| virtual void | startWritingFaceIdsForCells () const |
| Start writing ids of cell faces. More... | |
| virtual void | setFaceIdsForCell (const ElemIdType cellId, const ElemIdType *const faceIds, const size_t dataSize) const |
| set the face ids of single cell More... | |
| virtual void | setFaceIdsForCellsInRange (const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const faceIds, const size_t dataSize) const |
| set the face ids of cells in a range More... | |
| virtual void | setFaceIdsForCellsInZone (const ZoneIdType zoneId, const ElemIdType *const faceIds, const size_t) const |
| set the face ids for all cells in a cell zone More... | |
| virtual void | endWritingFaceIdsForCells () const |
| End of writing ids of cells faces. More... | |
| virtual void | endWritingFacesForCells () const |
| End of writing cells faces. More... | |
Cell Partitions | |
| virtual void | startWritingPartitionIdsForCells (const ZoneIds &, const int) const |
| Start writing partition ids for cells. More... | |
| virtual void | setPartitionIdForCell (const ElemIdType cellId, const PartitionIdType partId) const |
| set the partition id for single cell More... | |
| virtual void | setPartitionIdsForCellsInRange (const ElemIdType, const ElemIdType, const PartitionIdType *const partIds, const size_t) const |
| Set the partition ids for several cells. More... | |
| virtual void | setPartitionIdsForCellsInZone (const ZoneIdType, const PartitionIdType *const partIds, const size_t) const |
| set the partition ids for all cells in an cells zone More... | |
| virtual void | endWritingPartitionIdsForCells () const |
| End of writing partition ids for cells. More... | |
Cell Zone Refinement (Child Cells) | |
| virtual void | startWritingChildCellsForCells (const ZoneIds &) const |
| virtual void | startWritingChildCellCountsForCells () const |
| virtual void | setChildCellCountForCell (const ElemIdType cellId, const short childCount) const |
| virtual void | setChildCellCountsForCellsInRange (const ElemIdType, const ElemIdType, const short *const, const size_t) const |
| virtual void | setChildCellCountsForCellsInZone (const ZoneIdType, const short *const, const size_t) const |
| virtual void | setUniformChildCellCountForCellsInRange (const ElemIdType, const ElemIdType, const short) const |
| virtual void | setUniformChildCellCountForCellsInZone (const ZoneIdType, const short) const |
| virtual void | endWritingChildCellCountsForCells () const |
| virtual void | startWritingChildCellIdsForCells () const |
| virtual void | setChildCellIdsForCell (const ElemIdType cellId, const ElemIdType *const childIds, const size_t dataSize) const |
| virtual void | setChildCellIdsForCellsInRange (const ElemIdType, const ElemIdType, const ElemIdType *const, const size_t) const |
| virtual void | setChildCellIdsForCellsInZone (const ZoneIdType, const ElemIdType *const, const size_t) const |
| virtual void | endWritingChildCellIdsForCells () const |
| virtual void | endWritingChildCellsForCells () const |
Special Case Sections | |
| virtual void | startWritingCaseSectionCategories (const ZoneCategory, const CategoryNames &) const |
| virtual void | startWritingCaseSectionDataForCategory (const CategoryName &, const ZoneIds &, const PlainDataType, const size_t) const |
| virtual void | setCaseSectionDataForElementsInRange (const ElemIdType, const ElemIdType, const void *const, const size_t) const |
| virtual void | setCaseSectionDataForElementsInZone (const ZoneIdType, const void *const, const size_t) const |
| virtual void | endWritingCaseSectionDataForCategory () const |
| virtual void | endWritingCaseSectionCategories () const |
Time Levels | |
| void | startWritingTimeLevel (const TimeLevelType=CffLatestTimeLevel) const |
| void | endWritingTimeLevel () const |
Phases and Phase Attributes | |
| virtual bool | addPhaseName (const PhaseName &phaseName, PhaseIdType &phaseId) const |
| Append a phase name (existing phases are not removed) More... | |
| virtual bool | addPhaseNames (const PhaseNames &phaseNames, PhaseIds &phaseIds) const |
| Append a number of phase names (existing phases are not removed) More... | |
| virtual bool | setAttributeValueOfPhase (PhaseIdType phaseId, const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual bool | setAttributeValueOfPhase (const PhaseName &phaseName, const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual bool | setAttributeValueOfPhase (const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual bool | setPhaseNames (const PhaseNames &phaseNames, PhaseIds &phaseIds) const |
| Define the set of unique phase names (all existing phase names and associated variables are deleted) More... | |
| virtual void | startWritingPhase (const PhaseIdType phaseId=1) const |
| Start writing a phase. More... | |
| virtual void | endWritingPhase () const |
| End of writing solution data for certain phase. More... | |
Variables (Solution Phases) | |
| virtual bool | addPhaseVariable (PhaseIdType phaseId, const VariableName &variableName, VariableIdType &variableId) const |
| Add a variable. More... | |
| virtual bool | addPhaseVariable (const PhaseName &phaseName, const VariableName &variableName, VariableIdType &variableId) const |
| Add a variable to the specified phase. More... | |
| virtual bool | addPhaseVariable (const VariableName &variableName, VariableIdType &variableId) const |
| Add a variable to the current phase. More... | |
| virtual bool | setPhaseVariablesOfCategory (const ZoneCategory zoneCategory, const VariableIds &ids) const |
| Add the variables in the currently active phase to zones of the category. More... | |
| virtual bool | setPhaseVariablesOfCategory (const ZoneCategory, const VariableNames &, VariableIds &) const |
| Add the variables in the currently active phase to zones of the category. More... | |
| virtual bool | setPhaseVariablesOfCategory (const ZoneCategory, const VariableNames &) const |
| Add the variables in the currently active phase to zones of the category. More... | |
| virtual void | startWritingZonesOfCategory (const ZoneCategory) const |
| Start writing solution data for zones of certain category. More... | |
| virtual bool | setAttributeValueOfPhaseVariable (VariableIdType variableId, const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual bool | setAttributeValueOfPhaseVariable (PhaseIdType phaseId, const VariableName &variableName, const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual bool | setAttributeValueOfPhaseVariable (const VariableName &variable, const AttributeName &attributeName, const AttributeValue &attributeValue) const |
| virtual void | startWritingPhaseVariableInZonesOfCategory (const ZoneCategory zoneCategory, const VariableIdType varId, ZoneIds &zoneIds, const size_t numCols) const |
| Start writing data for certain variable. More... | |
| virtual void | startWritingPhaseVariableInZonesOfCategory (const ZoneCategory zoneCategory, const VariableName &varName, ZoneIds &zoneIds, const size_t numCols) const |
| Start writing data for certain variable. More... | |
| virtual void | setValuesOfPhaseVariableForElementsInRange (const ElemIdType startId, const ElemIdType endId, const double *const vals, const size_t dataSize) const |
| Set the solution data values for all elements in certain range. More... | |
| virtual void | setValuesOfPhaseVariableForElementsInRange (const ElemIdType startId, const ElemIdType endId, const float *const vals, const size_t dataSize) const |
| Set the solution data values for all elements in certain range. More... | |
| virtual void | setValuesOfPhaseVariableForElementsInZone (const ZoneIdType zoneId, const double *const vals, const size_t dataSize) const |
| Set the solution data values for all elements in certain range. More... | |
| virtual void | setValuesOfPhaseVariableForElementsInZone (const ZoneIdType zoneId, const float *const vals, const size_t dataSize) const |
| Set the solution data values for all elements in certain range. More... | |
| virtual void | endWritingPhaseVariableInZonesOfCategory () const |
| End of writing one variable in certain zone category. More... | |
| virtual void | endWritingZonesOfCategory () |
| End of writing solution data in certain zone category. More... | |
Set Data | |
| |
| virtual void | startWritingSetData (const DataClass dataClass, const ZoneCategory cat, const std::string &setName) |
| virtual void | startWritingIdsForSetData () |
| virtual size_t | setIdsForSetData (const ElemIdType *const setId, const size_t dataSize, const size_t chunkId=0) |
| virtual void | endWritingIdsForSetData () |
| virtual void | startWritingVariableForSetData (const VariableName &varName) |
| virtual size_t | setVariableForSetData (const unsigned char *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const char *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const short *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const unsigned int *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const int *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const long *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const long long *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const size_t *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const float *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual size_t | setVariableForSetData (const double *const data, const size_t numRow, const size_t numCol, const size_t chunkId=0) |
| virtual void | endWritingVariableForSetData () |
| virtual void | startWritingVariableLengthVariableForSetData (const VariableName &varName) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned char *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const char *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const short *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned int *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const int *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long long *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const size_t *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const float *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const double *const data, const size_t dataSize, const short *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned char *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const char *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const short *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned int *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const int *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long long *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const size_t *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const float *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const double *const data, const size_t dataSize, const size_t *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned char *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const char *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const short *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const unsigned int *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const int *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const long long *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const size_t *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const float *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual size_t | setVariableLengthVariableForSetData (const double *const data, const size_t dataSize, const int *const size, const size_t sizeSize, const size_t chunkId=0) |
| virtual void | endWritingVariableLengthVariableForSetData () |
| virtual void | writeStringDataForSetData (const VariableName &varName, const std::string &data) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const unsigned char *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const char *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const short *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const int *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const unsigned int *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const long *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const long long *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const size_t *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const float *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSetData (const VariableName &varName, const double *const data, const size_t numCols, const size_t numRows) |
| virtual void | endWritingSetData () |
Solution Variables (Particle Track Phases) | |
| virtual bool | startWritingParticleTracks (const PhaseIdType phaseId=-1, const MeshIdType meshId=-1, const TargetCategory target=TargetCategory::CFF_TARGET_CATEGORY_UNKNOWN, const PartitionIdType partition=-1) |
| Start write particle tracks under phase specified by phaseId in the mesh set specified by mesh Id, target and partition. More... | |
| virtual void | startWritingPartiticleTrackGroup (const std::string &name="") |
| Start writing particle track group. More... | |
| virtual void | startWritingChunkInPartiticleTrackGroup (const size_t chunkIndex=0) |
| start writing chunk in particle track group, the input chunkIndex specifies More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &varName, const unsigned char *const data, const size_t numSteps, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const char *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const short *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const unsigned int *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const int *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const long long *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const long *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const size_t *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const float *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableName &name, const double *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const unsigned char *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const char *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const short *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const unsigned int *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const int *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const long *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const long long *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const size_t *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const float *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | setValuesOfParticleTrackVariable (const VariableIdType VarId, const double *const data, const size_t numElem, const size_t numCol=1, const bool asConstant=false) |
| Write variable to chunk. More... | |
| virtual void | endWritingChunkInPartiticleTrackGroup () |
| Finish writing particle track data in chunk of particle track group. More... | |
| virtual void | endWritingPartiticleTrackGroup () |
| Finish writing article track group. More... | |
| virtual void | endWritingParticleTracks () |
| Finish writing particle track group. More... | |
Location Model - Topology | |
| void | setLocationModel (const CffLocationModel *) const |
| Write the location model. More... | |
Public Member Functions inherited from ansys::CffBase | |
| CffBase () | |
| Constructor. More... | |
| virtual | ~CffBase () |
| Destructor. More... | |
| void | setPartitionId (const PartitionIdType pId) |
| PartitionIdType | getPartitionId () const |
| virtual void | setDebugOn (bool debug) |
| Turn on/off debugging information. More... | |
| virtual void | setReadNCIOn (bool readNCI) |
| Turn on/off non-conformal interface reading. More... | |
| void | setMeshId (const MeshIdType meshId) |
| Set the Identifier for active mesh being read or written. More... | |
| MeshIdType | getMeshId () const |
| Get the Identifier of the active mesh. More... | |
| void | setTarget (const TargetCategory target) |
| Set the target category for which the data is intended. More... | |
| TargetCategory | getTarget () const |
| Get the target category for which the data is intended. More... | |
| void | setMeshSize (const MeshSizeType type, const ElemIdType size) |
| Sets a value that defines the dimension or the global number of objects of a specific mesh entity. More... | |
| void | getMeshSize (const MeshSizeType type, ElemIdType &size) const |
| Obtains a value that defines the dimension or the global number of objects of a specific mesh entity. More... | |
| void | setMeshUnits (const std::string &units="m") |
| Define the units of length the mesh is defined in. More... | |
| void | getMeshUnits (std::string &unit) const |
| Obtains the unit of length the mesh is defined in. More... | |
| void | setZoneIds (const ZoneCategory zoneCategory, const ZoneIds &zonesIds) |
| Define the zones that are of a specific category. More... | |
| virtual size_t | getNumZones (const ZoneCategory) const |
| Returns the number of zones in a specific category. More... | |
| virtual void | getZoneIds (const ZoneCategory zoneCategory, ZoneIds &zoneIds) const |
| Request the collection of zone Ids that are of a specific category. More... | |
| void | setNodeZoneInfo (const ZoneIdType nodeZoneId, const NodeZoneInfoType nodeZoneInfoType, const int info) const |
| set certain zone level info for a node zone. More... | |
| void | getNodeZoneInfo (const ZoneIdType nodeZoneId, const NodeZoneInfoType nodeZoneInfoType, int &info) const |
| get certain zone level info for a node zone. More... | |
| void | setAllFaceZoneFlags (const ZoneIdType faceZoneId, const int allFlags) |
| Set flags for a face zone. More... | |
| void | getAllFaceZoneFlags (const ZoneIdType faceZoneId, int &allFlags) const |
| Get flags for a face zone. More... | |
| void | setFaceZoneType (const ZoneIdType faceZoneId, const FaceZoneType zoneType) |
| set zone type of a face zone. More... | |
| void | getFaceZoneType (const ZoneIdType faceZoneId, FaceZoneType &zoneType) const |
| get the zone type of a face zone. More... | |
| void | setFaceZoneInfo (const ZoneIdType faceZoneId, const FaceZoneInfoType faceZoneInfoType, const int info) const |
| set certain zone level info for a face zone. More... | |
| void | getFaceZoneInfo (const ZoneIdType faceZoneId, const FaceZoneInfoType faceZoneInfoType, int &info) const |
| get certain zone level info for a face zone. More... | |
| void | setFaceZoneProp (const ZoneIdType faceZoneId, const FaceZonePropType faceZonePropType) |
| bool | getFaceZoneProp (const ZoneIdType faceZoneId, const FaceZonePropType) const |
| void | setZoneSizeInfo (const ZoneIdType zoneId, const ZoneSizeType sizeType, const ElemIdType size) |
| Sets a size setting of a zone. More... | |
| void | getZoneSizeInfo (const ZoneIdType zoneId, const ZoneSizeType sizeType, ElemIdType &size) const |
| Obtains a size setting of a zone. More... | |
| void | setCellZoneInfo (const ZoneIdType cellZoneId, const CellZoneInfoType cellZoneInfoType, const int info) |
| set certain zone level info for a cell zone. More... | |
| void | getCellZoneInfo (const ZoneIdType cellZoneId, const CellZoneInfoType cellZoneInfoType, int &info) const |
| get certain zone level info for a cell zone. More... | |
| void | setEdgeZoneType (const ZoneIdType edgeZoneId, const EdgeZoneType zoneType) |
| set zone type of a edge zone. More... | |
| void | getEdgeZoneType (const ZoneIdType edgeZoneId, EdgeZoneType &zoneType) const |
| get the zone type of a edge zone. More... | |
| void | setEdgeZoneInfo (const ZoneIdType edgeZoneId, const EdgeZoneInfoType edgeZoneInfoType, const int info) |
| set certain zone level info for a edge zone. More... | |
| void | getEdgeZoneInfo (const ZoneIdType edgeZoneId, const EdgeZoneInfoType edgeZoneInfoType, int &info) const |
| get certain zone level info for a edge zone. More... | |
| void | setZoneStringInfo (const ZoneIdType zoneId, const ZoneStringInfoType type, const std::string &info) |
| Sets a string value associated with a zone. More... | |
| void | getZoneStringInfo (const ZoneIdType zoneId, const ZoneStringInfoType type, std::string &info) const |
| Obtains a string value associated with a zone. More... | |
| void | getFaceCellZone0Ids (const ZoneIdType faceZoneId, std::list< ZoneIdType > &zoneIds) |
| Get a list of cell zones on side zero of a face zone. More... | |
| void | getFaceCellZone1Ids (const ZoneIdType faceZoneId, std::list< ZoneIdType > &zoneIds) |
| Get a list of cell zones on side one of a face zone. More... | |
| void | getCellFaceZoneIds (const ZoneIdType cellZoneId, std::list< ZoneIdType > &zoneIds) |
| Get a list of face zones touching a cell zone. More... | |
| virtual void | setSolverType (SolverType solverType) |
| Set the name of the application that is supplying the data. More... | |
| SolverType | getSolverType () const |
| Obtains the owner of the data in the model. More... | |
| const CffLocationModel * | getLocationModel () const |
| Get a query interface to the underlying topology model. More... | |
| void | setVariableAttributeProvider (const CffVariableAttributeProvider *, bool takeOwnership=false) |
| Register an alternative variable attribute provider. More... | |
| CffMessageRegistrar * | getMessageRegistrar () const |
| Obtains a message registrar object so that external plug-ins can register messages with the API. More... | |
| bool | hasError () const |
| returns whether there are unprocessed error messages registered. More... | |
| bool | hasWarning () const |
| returns whether there are unprocessed warning messages registered. More... | |
| bool | hasInfo () const |
| returns whether there are unprocessed informative messages registered. More... | |
| std::vector< std::string > | getErrors (bool formated=true, bool clear=false) const |
| returns, as strings, any unprocessed error messages registered More... | |
| std::vector< std::string > | getWarnings (bool formated=true, bool clear=false) const |
| returns, as strings, any unprocessed warning messages registered More... | |
| std::vector< std::string > | getInfos (bool formated=true, bool clear=false) const |
| returns, as strings, any unprocessed information messages registered More... | |
| void | registerSettingsParser (CffSettingsParser *) |
| Sets a parser for processing settings. More... | |
| bool | addSetting (const DataClass dataClass, const std::string &key, const std::string &value, const SolverType &solverType="CFF_GENERIC") |
| Sets a specific setting by supplying a key and a value. More... | |
| bool | addSettingsDataSet (const DataClass dataClass, const std::string &dataSetPath, const std::string &data, const SolverType &solverType="CFF_GENERIC", const std::vector< std::string > &settingsKeys=std::vector< std::string >()) |
| Defines a set of data that contain the more than one setting. More... | |
| void | setApplicationName (const std::string &applicationName) |
| Sets an application name for error purposes and when logging to a file. More... | |
| void | getPhaseIds (PhaseIds &phaseIds) const |
| Obtain the Identifiers of all Phase. More... | |
| bool | getPhaseName (const PhaseIdType phaseId, PhaseName &phaseName) const |
| Obtain the unique name a specific Phase. More... | |
| PhaseName | getPhaseName (const PhaseIdType phaseId) const |
| Obtain the unique name a specific Phase. More... | |
| const TimeLevels & | getTimeLevels () const |
| TimeLevelType | getTimeLevel () const |
Public Member Functions inherited from ansys::CffVersion | |
| CffVersion () | |
| ~CffVersion () | |
Protected Member Functions | |
| virtual void | cacheLocationModelState (const std::string &state) const |
| bool | inheritVariableAttributes () const |
| virtual int | getLastLogIndex (DataClass dataClass=DataClass::CFF_CASE) const |
| void | setWriting (DataClass, bool) |
| Return whether a file is currently being written. More... | |
Protected Member Functions inherited from ansys::CffBase | |
| CffReadable | isSupported (const std::string &version) const |
| Check whether the version can be read by this version of the CFF SDK. More... | |
| void | setMeshSize (const ElemIdType nDims, const ElemIdType nodesCount, const ElemIdType edgesCount, const ElemIdType facesCount, const ElemIdType cellsCount) |
| Set the mesh size info This function is for providing top level meta data: the total mesh size of all zones In case you do not save certain entity, for example, edges, then the input edgesCount should be 0. More... | |
| virtual void | setZoneAdjacency () |
| void | setFaceCellZone0Ids (const std::map< ZoneIdType, std::list< ZoneIdType > > &) |
| Set the c0 cell zones of all face zones The CellZone0 (c0) cell zones are the cell zones adjacent to the face zone and at the side of face normal direction The information provided here will be helpful for quicker establishment of zone level topology when reading the mesh Mesh without those information can still be read, but would be much slower. More... | |
| void | setFaceCellZone1Ids (const std::map< ZoneIdType, std::list< ZoneIdType > > &) |
| Set the c1 cell zones of all face zones The CellZone1 (c1) cell zones are the cell zones adjacent to the face zone and at the side opposite to face normal direction The information provided here will be helpful for quicker establishment of zone level topology when reading the mesh Mesh without those information can still be read, but would be much slower. More... | |
| void | getFaceCellZone0Ids (std::map< ZoneIdType, std::list< ZoneIdType > > &) |
| void | getFaceCellZone1Ids (std::map< ZoneIdType, std::list< ZoneIdType > > &) |
| void | setCellFaceZoneIds (const std::map< ZoneIdType, std::list< ZoneIdType > > &) |
| Set the face zones ids of all cell zones The face zones of a cell zone are all face zones that adjacent to the cell zone The information provided here will be helpful for quicker establishment of zone level topology when reading the mesh Mesh without those information can still be read, but would be much slower. More... | |
| void | getSortedMinIdZoneId (const ZoneCategory, std::vector< std::pair< ElemIdType, ZoneIdType > > &minIdZoneId) const |
| std::string | getGroupNameForPhase (PhaseIdType phaseId) const |
| CffSolutionModel * | solutionModel () const |
| virtual void | initLocationModel () const |
| CffLocationModel * | locationModel () const |
| void | initializeVariableAttributeProvider (const SolverType &solverType, const std::string &variableTarget) |
| virtual bool | updateData (DataClass) |
| bool | setMeshContext (MeshId, TargetCategory, PartitionIdType, UpdateMethod=UpdateMethod::CaseAndResults) |
| virtual void | finalizeMeshContext () |
| void | setZoneCategory (const ZoneIds &, const ZoneCategory) |
| set the zone categories of all zones of the same zone category More... | |
| ZoneCategory | getZoneCategory (const ZoneIdType zoneId) const |
| get the zone category of a given zone by zone id More... | |
| void | addVariableOfCategory (VariableIdType, ZoneCategory) const |
| std::string | getApplicationName () const |
| Obtains the application name that was set by calling setApplicationName logging when writing a file. More... | |
| bool | getActivePhase (PhaseIdType &) const |
| bool | setActivePhase (PhaseIdType) const |
| bool | getActivePhase (PhaseName &) const |
| bool | setActivePhase (const PhaseName &) const |
| void | addTimeLevel (TimeLevelType) const |
| bool | setTimeLevel (TimeLevelType) const |
Data Precision/ | |
| void | setDataPrecision (DataPrecisionType ptype) |
| Sets the precision for solution data. More... | |
| DataPrecisionType | getDataPrecision () const |
| Get the precision of solution data. More... | |
DEPRECATED Set Data functions | |
The functions listed under Set Data should be used
| |
| virtual void | startWritingSet (const DataClass dataClass, const ZoneCategory cat, const std::string &setName) |
| virtual void | setSizesAndMinMaxIdsForSet (const std::vector< size_t > &numElem, const std::vector< ElemIdType > &minIndices, const std::vector< ElemIdType > &maxIndices, const std::vector< ElemIdType > &minId, const std::vector< ElemIdType > &maxId) |
| virtual void | startWritingIdsForSet (const std::vector< ElemIdType > &minIndicies, const std::vector< ElemIdType > &maxIndicies, const std::vector< size_t > &numElem, const std::vector< ElemIdType > &minElemIds, const std::vector< ElemIdType > &maxElemIds) |
| virtual void | setIdsForSetInRange (const ElemIdType minIndex, const ElemIdType maxIndex, const ElemIdType minId, const ElemIdType maxId, const ElemIdType *const setId, const size_t dataSize) |
| virtual void | endWritingIdsForSet () |
| virtual void | startWritingDataOfVariableForSet (const VariableName &varName, const std::vector< size_t > numElem, const size_t dim, const PlainDataType type) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const unsigned char *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const char *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const short *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const unsigned int *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const int *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const long *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const long long *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const float *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const double *const data, const size_t dataSize) |
| virtual void | setDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const size_t *const data, const size_t dataSize) |
| virtual void | endWritingDataOfVariableForSet () |
| virtual void | startWritingSizeOfVariableForSet (const VariableName &varName, const std::vector< size_t > numElem, const PlainDataType dataType=PlainDataType::CFF_DATATYPE_SHORT) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const CountType *const counts, const size_t dataSize) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const CountType count, const size_t dataSize) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const int *const counts, const size_t dataSize) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const int count, const size_t dataSize) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const size_t *const counts, const size_t dataSize) |
| virtual void | setSizeOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const size_t count, const size_t dataSize) |
| virtual void | endWritingSizeOfVariableForSet () |
| virtual void | startWritingVariableLengthedDataOfVariableForSet (const VariableName &varName, const PlainDataType type) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const unsigned char *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const char *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const short *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const int *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const unsigned int *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const long *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const long long *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const float *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const double *const data, const size_t dataSize) |
| virtual void | setVariableLengthedDataOfVariableForSetInRange (const ElemIdType minId, const ElemIdType maxId, const size_t *const data, const size_t dataSize) |
| virtual void | endWritingVariableLengthedDataOfVariableForSet () |
| virtual void | writeStringDataForSet (const VariableName &varName, const std::string &data) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const unsigned char *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const char *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const short *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const unsigned int *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const int *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const long *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const long long *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const double *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const float *const data, const size_t numCols, const size_t numRows) |
| virtual void | writeOtherDataForSet (const VariableName &varName, const size_t *const data, const size_t numCols, const size_t numRows) |
| virtual void | endWritingSet () |
Additional Inherited Members | |
Static Public Member Functions inherited from ansys::CffVersion | |
| static unsigned int | getMajor () |
| static unsigned int | getMinor () |
| static unsigned int | getPatch () |
| static std::string | getSHA () |
| static bool | isBeta () |
| static std::string | apiVersionAsString (const std::string &separator=".") |
| static std::string | ansysApplicationVersion (const std::string &appName) |
| static std::string | copyright (bool allRightsReserved) |
Static Public Attributes inherited from ansys::CffBase | |
| static std::string | _defaultSettingsPath = "settings" |
Protected Types inherited from ansys::CffBase | |
| enum class | UpdateMethod { CaseOnly = 1 , ResultsOnly , CaseAndResults } |
Protected Attributes inherited from ansys::CffBase | |
| std::unique_ptr< DataInterface > | _data |
| std::unique_ptr< const CffVariableAttributeProvider > | _varAttrProvider |
Detailed Description
Class that provides functions to write data within a CFF database. The database may be stored within a file or some other form of database but the functions provided in this class are common across all implementation and the data must be provided according to the rules defined in the CFF DataModels.
Constructor & Destructor Documentation
◆ CffConsumer()
| ansys::CffConsumer::CffConsumer | ( | const std::string & | applicationName = "Unknown" | ) |
Constructor.
◆ ~CffConsumer()
|
virtual |
Destructor.
Destroys an instance of CffConsumer
Member Function Documentation
◆ addPhaseName()
|
virtual |
Append a phase name (existing phases are not removed)
- Note
- If a phase name already exists it will return the existing phaseId
- Parameters
-
phaseName [in] - the phase to add phaseId [out] - the associated phase id return [out] - true if phase is defined or false
◆ addPhaseNames()
|
virtual |
Append a number of phase names (existing phases are not removed)
- Note
- If a phase name already exists it will return the existing phaseId
- Parameters
-
phaseNames [in] - the phase names to add phaseIds [out] - the associated phase ids
- Returns
- - true if phases are defined or false
◆ addPhaseVariable() [1/3]
|
virtual |
Add a variable to the specified phase.
- Note
- If a variable already exists it will return the existing id
- Parameters
-
phaseName [in] - the phase in which to add the variable varName [in] - the variable name to add varId [out] - the variable id if successful
- Returns
- - true if variable is defined or false
◆ addPhaseVariable() [2/3]
|
virtual |
Add a variable to the current phase.
- Note
- If a variable already exists it will return the existing id
- Parameters
-
variableName [in] - the variable name to add variableId [out] - the variable id if successful
- Returns
- - true if variable is defined or false
◆ addPhaseVariable() [3/3]
|
virtual |
Add a variable.
- Note
- If a variable already exists it will return the existing id
- Parameters
-
phaseId [in] - the phase in which to add the variable varName [in] - the variable name to add varId [out] - the variable id if successful return [out] - true if variable is defined or false
◆ addStringAttribute()
|
virtual |
◆ cacheLocationModelState()
|
inlineprotectedvirtual |
◆ endWriting()
|
inlinevirtual |
Reimplemented in ansys::CffFileConsumer.
◆ endWritingCaseSectionCategories()
|
virtual |
◆ endWritingCaseSectionDataForCategory()
|
virtual |
◆ endWritingCell0sForFaces()
|
virtual |
End of writing cell0 of faces.
◆ endWritingCell1sForFaces()
|
virtual |
End of writing cell1 of faces.
◆ endWritingCells()
|
virtual |
End of writing cells.
◆ endWritingChildCellCountsForCells()
|
virtual |
◆ endWritingChildCellIdsForCells()
|
virtual |
◆ endWritingChildCellsForCells()
|
virtual |
◆ endWritingChildFaceCountsForFaces()
|
virtual |
End writing refined child face counts.
◆ endWritingChildFaceIdsForFaces()
|
virtual |
Finish writing refined child face ids.
◆ endWritingChildFacesForFaces()
|
virtual |
Finish writing refined child face data.
◆ endWritingChunkInPartiticleTrackGroup()
|
virtual |
Finish writing particle track data in chunk of particle track group.
◆ endWritingCoordinatesForNodes()
|
virtual |
Finish writing coordinates for nodes.
◆ endWritingDataOfVariableForSet()
|
virtual |
◆ endWritingEdges()
|
virtual |
End writing data associated with edges.
◆ endWritingFaceCountsForCells()
|
virtual |
End of writing counts of cells faces.
◆ endWritingFaceIdsForCells()
|
virtual |
End of writing ids of cells faces.
◆ endWritingFaces()
|
virtual |
End of writing face data.
◆ endWritingFacesForCells()
|
virtual |
End of writing cells faces.
◆ endWritingIdsForSet()
|
virtual |
◆ endWritingIdsForSetData()
|
virtual |
◆ endWritingInterfaceDataForFaces()
|
virtual |
◆ endWritingNodeCountsForCells()
|
virtual |
End of writing counts for cell nodes.
◆ endWritingNodeCountsForEdges()
|
virtual |
End writing the node counts for edges.
- See also
- startWritingNodesForEdges, setNodeCountsForEdge, setNodeCountsForEdgesInRange, setNodeCountsForEdgesInZone, setNodeCountForEdgesInZone, setUniformNodeCountForFacesInRange
◆ endWritingNodeCountsForFaces()
|
virtual |
End writing faces node counts.
◆ endWritingNodeIdsForCells()
|
virtual |
End of writing ids for cell nodes.
◆ endWritingNodeIdsForEdges()
|
virtual |
End writing node ids for edges.
◆ endWritingNodeIdsForFaces()
|
virtual |
End of writing faces node ids.
◆ endWritingNodes()
|
virtual |
End writing nodes.
- See also
- startWritingNodes
◆ endWritingNodesForCells()
|
virtual |
End of writing cell nodes.
◆ endWritingNodesForEdges()
|
virtual |
End writing nodes for edges.
◆ endWritingNodesForFaces()
|
virtual |
End of writing faces nodes.
◆ endWritingParticleTracks()
|
virtual |
Finish writing particle track group.
◆ endWritingPartiticleTrackGroup()
|
virtual |
Finish writing article track group.
◆ endWritingPartitionIdsForCells()
|
virtual |
End of writing partition ids for cells.
◆ endWritingPhase()
|
virtual |
End of writing solution data for certain phase.
◆ endWritingPhaseVariableInZonesOfCategory()
|
virtual |
End of writing one variable in certain zone category.
◆ endWritingSet()
|
virtual |
◆ endWritingSetData()
|
virtual |
◆ endWritingShadowFaceIdsForFaces()
|
virtual |
End of writing shadow faces ids.
◆ endWritingSizeOfVariableForSet()
|
virtual |
◆ endWritingTimeLevel()
| void ansys::CffConsumer::endWritingTimeLevel | ( | ) | const |
◆ endWritingTypesForCells()
|
virtual |
End of writing cell types.
◆ endWritingVariableForSetData()
|
virtual |
◆ endWritingVariableLengthedDataOfVariableForSet()
|
virtual |
◆ endWritingVariableLengthVariableForSetData()
|
virtual |
◆ endWritingZonesOfCategory()
|
virtual |
End of writing solution data in certain zone category.
◆ getDataPrecision()
|
protected |
Get the precision of solution data.
- Returns
- The data precision.
◆ getLastLogIndex()
|
protectedvirtual |
◆ inheritVariableAttributes() [1/2]
|
inlineprotected |
◆ inheritVariableAttributes() [2/2]
|
inlinevirtual |
◆ isWriting()
|
virtual |
Return whether a file is currently being written.
- Parameters
-
dataClass [in] - Class of data from which to identify the file.
- Returns
- - true if file is being written, false if not.
- See also
- startWriting, endWriting
◆ isWritingData()
| bool ansys::CffConsumer::isWritingData | ( | ) | const |
DEPRECATED: Function to determine whether it is possible to write data of type ansys::DataClass::CFF_RESULTS.
- Note
- This function has been deprecated in favour of isWriting(DataClass) and will be removed in a future release.
◆ log()
|
inlinevirtual |
◆ setAttributeValueOfPhase() [1/3]
|
virtual |
Set the value of an attribute in the active phase
- Parameters
-
name [in] - the attribute name to set value [in] - the attribute value to store return [out] - true if successful, or false
◆ setAttributeValueOfPhase() [2/3]
|
virtual |
Set the value of an attribute in a phase
- Parameters
-
phaseName [in] - the phase the attribute the associated with name [in] - the attribute name to set value [in] - the attribute value to store return [out] - true if successful, or false
◆ setAttributeValueOfPhase() [3/3]
|
virtual |
Set the value of an attribute in a phase
- Parameters
-
phaseId [in] - the phase the attribute the associated with name [in] - the attribute name to set value [in] - the attribute value to store return [out] - true if successful, or false
◆ setAttributeValueOfPhaseVariable() [1/3]
|
virtual |
Set the value of an attribute in a variable in the active phase
- Parameters
-
varName (in) - the variable the attribute the associated with name (in) - the attribute name to set value (in) - the attribute value to store return (out) - true if successful, or false
◆ setAttributeValueOfPhaseVariable() [2/3]
|
virtual |
Set the value of an attribute in a variable in the supplied phase
- Parameters
-
phaseId (in) - the phase the variable belongs to varName (in) - the variable the attribute the associated with name (in) - the attribute name to set value (in) - the attribute value to store return (out) - true if successful, or false
◆ setAttributeValueOfPhaseVariable() [3/3]
|
virtual |
Set the value of an attribute in a variable in the active phase
- Parameters
-
varId (in) - the variable the attribute the associated with name (in) - the attribute name to set value (in) - the attribute value to store return (out) - true if successful, or false
◆ setCaseSectionDataForElementsInRange()
|
virtual |
◆ setCaseSectionDataForElementsInZone()
|
virtual |
◆ setCell0ForFace()
|
virtual |
set the c0 cell id of single face
- Parameters
-
faceId [in] - face Id faceC0 [in] - the cell on the side 0 of the face
◆ setCell0sForFacesInRange()
|
virtual |
set the c0 cell ids of faces in a range
1) Will set c0 cell ids for all faces, whose face id is between minId and maxId 2) The face ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id faceC0s [in] - c0 cell ids dataSize [in] - data size
◆ setCell0sForFacesInZone()
|
virtual |
set the c0 cell ids for all faces in a face zone
- Parameters
-
zoneId [in] - face zone Id faceC0s [in] - c0 cell ids dataSize [in] - data size
◆ setCell1ForFace()
|
virtual |
set the c1 cell id of single face
- Parameters
-
faceId [in] - face Id faceC1 [in] - the cell on the side 1 of the face
◆ setCell1sForFacesInRange()
|
virtual |
set the c1 cell ids of faces in a range
1) Will set c1 cell ids for all faces, whose face id is between minId and maxId 2) The face ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id faceC1s [in] - c1 cell ids dataSize [in] - data size
◆ setCell1sForFacesInZone()
|
virtual |
set the c1 cell ids for all faces in a face zone
- Parameters
-
zoneId [in] - face zone Id faceC1s [in] - c1 cell ids dataSize [in] - data size
◆ setChildCellCountForCell()
|
virtual |
◆ setChildCellCountsForCellsInRange()
|
virtual |
◆ setChildCellCountsForCellsInZone()
|
virtual |
◆ setChildCellIdsForCell()
|
virtual |
◆ setChildCellIdsForCellsInRange()
|
virtual |
◆ setChildCellIdsForCellsInZone()
|
virtual |
◆ setChildFaceCountForFace()
|
virtual |
Set a refined child face count for a single face.
◆ setChildFaceCountsForFacesInRange()
|
virtual |
Set a refined child face counts for a range of faces.
◆ setChildFaceCountsForFacesInZone()
|
virtual |
Set a refined child face counts for all faces in a zone.
◆ setChildFaceIdsForFace()
|
virtual |
Write refined child face ids for a face.
◆ setChildFaceIdsForFacesInRange()
|
virtual |
Write refined child face ids for faces in a range.
◆ setChildFaceIdsForFacesInZone()
|
virtual |
Write refined child face ids for all faces in a zone.
◆ setCompression()
|
inlinevirtual |
◆ setCoordinatesForNode() [1/2]
|
virtual |
Define the coordinates for a specific node (double precision)
- Parameters
-
nodeId [in] - The node for which to set coordinates coords [in] - The coordinates dataSize [in] - The size of the coordinates array
- Note
- For a 2D mesh dataSize will be 2, for a 3D mesh it wil be 3
◆ setCoordinatesForNode() [2/2]
|
virtual |
Define the coordinates for a specific node (single precision)
- Parameters
-
nodeId [in] - The node for which to set coordinates coords [in] - The coordinates dataSize [in] - The size of the coordinates array
- Note
- For a 2D mesh dataSize will be 2, for a 3D mesh it wil be 3
◆ setCoordinatesForNodesInRange() [1/2]
|
virtual |
Provide the coordinates for all nodes in range.
The nodes for which coordinates will be set must be between the minId and maxId passed as arguments and will encompass all nodes in that range
- Parameters
-
minId [in] - First node maxId [in] - Last node coords [in] - The coordinates for all nodes dataSize [in] - The size of the coordinates array
◆ setCoordinatesForNodesInRange() [2/2]
|
virtual |
Provide the coordinates for all nodes in range.
The nodes for which coordinates will be set must be between the minId and maxId passed as arguments and will encompass all nodes in that range
- Parameters
-
minId [in] - First node maxId [in] - Last node coords [in] - The coordinates for all nodes dataSize [in] - The size of the coordinates array
◆ setCoordinatesForNodesInZone() [1/2]
|
virtual |
Provide the coordinates for all nodes in zone.
- Parameters
-
zoneId [in] - The node zone for which coordinates are provided coords [in] - The coordinates for all nodes in the zone dataSize [in] - The size of the coordinates array
◆ setCoordinatesForNodesInZone() [2/2]
|
virtual |
Provide the coordinates for all nodes in zone.
- Parameters
-
zoneId [in] - The node zone for which coordinates are provided coords [in] - The coordinates for all nodes in the zone dataSize [in] - The size of the coordinates array
◆ setDataOfVariableForSetInRange() [1/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [2/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [3/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [4/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [5/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [6/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [7/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [8/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [9/10]
|
virtual |
◆ setDataOfVariableForSetInRange() [10/10]
|
virtual |
◆ setDataPrecision()
| void ansys::CffConsumer::setDataPrecision | ( | DataPrecisionType | ptype | ) |
Sets the precision for solution data.
- Parameters
-
ptype [in] - The precision of the data
- See also
- DataPrecisionType
◆ setFaceCellZone0Ids()
|
virtual |
Set the cell zones adjacent on side 0 of the supplied face zone.
- Parameters
-
faceZoneId - Face zone for which to set the cell zone adjancencies. zoneIds - Cell zones adjacent to side 0 of the face zone.
◆ setFaceCellZone1Ids()
|
virtual |
Set the cell zones adjacent on side 1 of the supplied face zone.
- Parameters
-
faceZoneId - Face zone for which to set the cell zone adjancencies. zoneIds - Cell zones adjacent to side 1 of the face zone.
◆ setFaceCountForCell()
|
virtual |
set the face count for single cell
- Parameters
-
cellId [in] - cell Id faceCount [in] - face count of the cell element
◆ setFaceCountsForCellsInRange()
|
virtual |
Set the face counts for several cells.
1) Will set face counts for all cells, whose element id is between minId and maxId 2) The cell element ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id faceCounts [in] - face counts data dataSize [in] - data size
◆ setFaceCountsForCellsInZone()
|
virtual |
set the face counts for all cells in an cells zone
- Parameters
-
zoneId [in] - edge zone Id faceCounts [in] - face counts dataSize [in] - data size
◆ setFaceIdsForCell()
|
virtual |
set the face ids of single cell
- Parameters
-
cellId [in] - cell Id faceIds [in] - face Ids dataSize [in] - data size
◆ setFaceIdsForCellsInRange()
|
virtual |
set the face ids of cells in a range
1) Will set face ids for all cells, whose element id is between minId and maxId 2) The cell ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id FaceIds [in] - face Ids dataSize [in] - data size
◆ setFaceIdsForCellsInZone()
|
virtual |
set the face ids for all cells in a cell zone
- Parameters
-
zoneId [in] - cell zone Id faceIds [in] - face Ids dataSize [in] - data size
◆ setIdsForSetData()
|
virtual |
◆ setIdsForSetInRange()
|
virtual |
◆ setInterfaceDataForFacesInZone() [1/2]
|
virtual |
◆ setInterfaceDataForFacesInZone() [2/2]
|
virtual |
◆ setIOMode()
|
inlinevirtual |
◆ setLocalElemIdsInZone()
|
virtual |
Provide a local element mapping to global element mapping.
When writing a file in serial write mode, the data that will be written will be associated with the element ids provided by the zone information. However, when writing in parallel the may only be provided for part of the zone in which case this function should be provided such that it represents the element ids for which data is being provided.
- Parameters
-
zoneId [in] - The zone for which data is being provided elemIds [in] - The global element ids for the data being provided dataSize [in] - The number of element ids provided
- See also
- setIOMode and ansys::IOMode
◆ setLocationModel()
| void ansys::CffConsumer::setLocationModel | ( | const CffLocationModel * | locationModel | ) | const |
Write the location model.
- Parameters
-
locationModel [in] - The location model object to write to the CFF_CASE model.
◆ setMPIComm()
|
inlinevirtual |
◆ setNodeCountForCell()
|
virtual |
set the node count for single cell
- Parameters
-
cellId [in] - cell Id nodeCount [in] - node count of the cell element
◆ setNodeCountForEdge()
|
virtual |
Set the number of nodes that define an edge.
- Parameters
-
edgeId [in] - The edge nodeCount [in] - The number of nodes for the edge
◆ setNodeCountForFace()
|
virtual |
Define the node count for the face supplied.
- Parameters
-
faceId [in] - The face for which the count is supplied nodeCount [in] - The node count of that face
- See also
- startWritingNodeCOuntsForFaces, setNodeCountsForFacesInRange, setNodeCountsForFacesInZone, setUniformNodeCountForEdgesInRange, setUniformNodeCountForEdgesInZone, endWritingNodeCountsForFaces
◆ setNodeCountsForCellsInRange()
|
virtual |
Set the node counts for several cells.
1) Will set node counts for all cells, whose element id is between minId and maxId 2) The cell element ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id nodeCounts [in] - node counts data dataSize [in] - data size
◆ setNodeCountsForCellsInZone()
|
virtual |
set the node counts for all cells in an cell zone
- Parameters
-
zoneId [in] - edge zone Id nodeCounts [in] - node counts dataSize [in] - data size
◆ setNodeCountsForEdgesInRange()
|
virtual |
Set the number of nodes that define a range of edges.
- Parameters
-
minId [in] - The first edge in the range maxId [in] - The final edge in the range nodeCounts [in] - The node counts for all edges in the range dataSize [in] - The size of the nodeCounts array
◆ setNodeCountsForEdgesInZone()
|
virtual |
Set the number of nodes that define a edge zone.
- Parameters
-
zoneId [in] - The zone for which counts are supplied nodeCounts [in] - The node counts for all edges in the zone dataSize [in] - The size of the nodeCounts array
◆ setNodeCountsForFacesInRange()
|
virtual |
Define the node count for the faces in the range supplied.
- Note
- The range must be continuous and so the number of counts supplied will equal the size of the range
- Parameters
-
minId [in] - The first face for which counts are supplied maxId [in] - The last face for which counts are supplied nodeCounts [in] - The node counts dataSize [in] - The size of the nodeCounts array
◆ setNodeCountsForFacesInZone()
|
virtual |
Define the node count for the faces in the zone.
- Parameters
-
zoneId [in] - The zone for which counts are supplied nodeCounts [in] - The node counts dataSize [in] - The size of the nodeCounts array
◆ setNodeIdsForCell()
|
virtual |
set the node ids of single cell
- Parameters
-
cellId [in] - cell Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setNodeIdsForCellsInRange()
|
virtual |
set the node ids of cells in a range
1) Will set node ids for all cells, whose cell element id is between minId and maxId 2) The cell ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setNodeIdsForCellsInZone()
|
virtual |
set the node ids for all cells in a cell zone
- Parameters
-
zoneId [in] - cell zone Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setNodeIdsForEdge()
|
virtual |
Provide the ids of the nodes for a single edge.
- Parameters
-
edgeId [in] - The edge for which nodes are supplied nodeIds [in] - The nodes defining the edge dataSize [in] - The size of the nodeIds array
- Note
- dataSize should be the same as the node count previously supplied for the edge being defined
◆ setNodeIdsForEdgesInRange()
|
virtual |
Provide the ids of the nodes for a range of edges.
- Note
- The edge range must be continuous
- Parameters
-
minId [in] - The first edge for which nodes are provided maxId [in] - The last edge for which nodes are provided nodeIds [in] - The nodes defining each edge dataSize [in] - The size of the nodeIds array
◆ setNodeIdsForEdgesInZone()
|
virtual |
Provide the ids of the nodes for all edges in an edge zone.
- Parameters
-
zoneId [in] - The edge zone for which nodes will be provided nodeIds [in] - The nodes for all edges in the zone dataSize [in] - The size of the nodeIds array
◆ setNodeIdsForFace()
|
virtual |
set the node ids of single face
- Parameters
-
faceId [in] - face Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setNodeIdsForFacesInRange()
|
virtual |
set the node ids of faces in a range
1) Will set node ids for all faces, whose face id is between minId and maxId 2) The face ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setNodeIdsForFacesInZone()
|
virtual |
set the node ids for all faces in a face zone
- Parameters
-
zoneId [in] - face zone Id nodeIds [in] - node Ids dataSize [in] - data size
◆ setPartitionIdForCell()
|
virtual |
set the partition id for single cell
- Parameters
-
cellId [in] - cell Id partId [in] - partition id of the cell element
◆ setPartitionIdsForCellsInRange()
|
virtual |
Set the partition ids for several cells.
1) Will set partition ids for all cells, whose element id is between minId and maxId 2) The cell element ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id partIds [in] - partition ids dataSize [in] - data size
◆ setPartitionIdsForCellsInZone()
|
virtual |
set the partition ids for all cells in an cells zone
- Parameters
-
zoneId [in] - edge zone Id partIds [in] - partition ids dataSize [in] - data size
◆ setPhaseNames()
|
virtual |
Define the set of unique phase names (all existing phase names and associated variables are deleted)
- Note
- If a phase name already exists it will return the existing phaseId
- Parameters
-
phaseNames [in] - the phase names to add phaseIds [out] - the associated phase ids return [out] - true if phases are defined successfully or false
◆ setPhaseVariablesOfCategory() [1/3]
|
virtual |
Add the variables in the currently active phase to zones of the category.
- Parameters
-
zoneCategory [in] of which zone category, the variable ids will be set ids [in] variable ids
- Returns
- - true if operation is successful otherwise false
◆ setPhaseVariablesOfCategory() [2/3]
|
virtual |
Add the variables in the currently active phase to zones of the category.
- Parameters
-
zoneCategory [in] of which zone category, the variable ids will be set names [in] variable name
- Returns
- - - true if operation is successful otherwise false
◆ setPhaseVariablesOfCategory() [3/3]
|
virtual |
Add the variables in the currently active phase to zones of the category.
- Parameters
-
zoneCategory [in] of which zone category, the variable ids will be set names [in] variable name ids [out] variable ids corresponding to the input variable names
- Returns
- - - true if operation is successful otherwise false
◆ setShadowFaceIdForFace()
|
virtual |
set the shadow face id of single face
- Parameters
-
faceId [in] - face Id faceShadow [in] - shadow face Id
◆ setShadowFaceIdsForFacesInRange()
|
virtual |
Set the shadows face ids of faces in a range.
1) Will set shadows face ids for all faces, whose face id is between minId and maxId 2) The face ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id faceShadows [in] - shadows face ids dataSize [in] - data size
◆ setShadowFaceIdsForFacesInZone()
|
virtual |
set the shadows face ids for all faces in a face zone
- Parameters
-
zoneId [in] - face zone Id faceShadows [in] - shadows face ids dataSize [in] - data size
◆ setSizeOfVariableForSetInRange() [1/6]
|
virtual |
◆ setSizeOfVariableForSetInRange() [2/6]
|
virtual |
◆ setSizeOfVariableForSetInRange() [3/6]
|
virtual |
◆ setSizeOfVariableForSetInRange() [4/6]
|
virtual |
◆ setSizeOfVariableForSetInRange() [5/6]
|
virtual |
◆ setSizeOfVariableForSetInRange() [6/6]
|
virtual |
◆ setSizesAndMinMaxIdsForSet()
|
virtual |
◆ setTypeForCell()
|
virtual |
set the cell type of single cell
- Parameters
-
cellId [in] - cell Id cellType [in] - cell type
◆ setTypesForCellsInRange()
|
virtual |
set the cell element types of cells in a range
1) Will set cell element types for all cells, whose cell element id is between minId and maxId 2) The cell ids are supposed to be continuous in the range
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id cellTypes [in] - cell element types dataSize [in] - data size
◆ setTypesForCellsInZone()
|
virtual |
set the cell element types for all cells in a cell zone
- Parameters
-
zoneId [in] - cell zone Id cellTypes [in] - cell element types dataSize [in] - data size
◆ setUniformChildCellCountForCellsInRange()
|
virtual |
◆ setUniformChildCellCountForCellsInZone()
|
virtual |
◆ setUniformChildFaceCountForFacesInRange()
|
virtual |
Set a uniformed refined child face count for a face range.
◆ setUniformChildFaceCountForFacesInZone()
|
virtual |
Set a uniformed refined child face count for all faces in a zone.
◆ setUniformFaceCountForCellsInRange()
|
virtual |
◆ setUniformFaceCountForCellsInZone()
|
virtual |
◆ setUniformNodeCountForCellsInRange()
|
virtual |
◆ setUniformNodeCountForCellsInZone()
|
virtual |
◆ setUniformNodeCountForEdgesInRange()
|
virtual |
Set a uniform node count for all faces in a range.
- Parameters
-
minId [in] - The first edge in the range maxId [in] - The final edge in the range unc [in] - The node count for all edges in the range
- See also
- startWritingNodeCountsForEdges, setNodeCountsForEdge, setNodeCountsForEdgesInRange, setNodeCountForEdgesInZone, setUniformNodeCountForFacesInZone, endWritingNodeCountsForEdges
◆ setUniformNodeCountForEdgesInZone()
|
virtual |
Set a uniform node count for all faces in a zone.
- Parameters
-
zoneId [in] - The edge zone for which the count is provided unc [in] - The node count for all edges in the range
- See also
- startWritingNodeCountsForEdges, setNodeCountsForEdge, setNodeCountsForEdgesInRange, setNodeCountForEdgesInZone, setUniformNodeCountForFacesInRange, endWritingNodeCountsForEdges
◆ setUniformNodeCountForFacesInRange()
|
virtual |
Set a uniform node count for the faces in a range.
- Parameters
-
minId [in] - The first face for which counts are supplied maxId [in] - The last face for which counts are supplied unc [in] - The uniform node count for all faces in the range
◆ setUniformNodeCountForFacesInZone()
|
virtual |
Set a uniform node count for the faces in a zone.
- Parameters
-
zoneId [in] - The zone in which the elements should have the uniform count set unc [in] - The uniform node count for all faces zone
◆ setValuesOfParticleTrackVariable() [1/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [2/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [3/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [4/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [5/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [6/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [7/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [8/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [9/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [10/20]
|
virtual |
Write variable to chunk.
- Parameters
-
VarId [in] - specifies the variable by id data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [11/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [12/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [13/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [14/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [15/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [16/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [17/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [18/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [19/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is pa rticle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfParticleTrackVariable() [20/20]
|
virtual |
Write variable to chunk.
- Parameters
-
varName [in] - specifies the variable name data [in] - pointer to actual data to write, the data type of data can be unsigned char, char, int, unsigned int, short, float, double, long, long long or size_t numSteps [in] - specifies the number of particle track steps. In the file, data fpr each step will be saved in a "row" numCol [in] - specifies the number of data for each step. For example, if the variable is particle location in a 3D case, numCol should be 3. If the variable is temperature of that particle, numCol should be 1. asConstant [in] - specifies whether the variable changes as a function of track steps or not. For example, for particle id, asConstant should be true, for temperature, asConstant should be false
◆ setValuesOfPhaseVariableForElementsInRange() [1/2]
|
virtual |
Set the solution data values for all elements in certain range.
1) Will write solution data for all elements, whose element id is between minId and maxId 2) The element ids are supposed to be continuous in the range
- Note
- The zone of category should have be indicated while calling CffConsumer::startWritingPhaseVariableInZonesOfCategory If the zone category is face zone, the data here should be solution data on face and the minId, maxId should be face Id
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id vals [in] - actual solution data dataSize [in] - data size
◆ setValuesOfPhaseVariableForElementsInRange() [2/2]
|
virtual |
Set the solution data values for all elements in certain range.
1) Will write solution data for all elements, whose element id is between minId and maxId 2) The element ids are supposed to be continuous in the range
- Note
- The zone of category should have be indicated while calling CffConsumer::startWritingPhaseVariableInZonesOfCategory If the zone category is face zone, the data here should be solution data on face and the minId, maxId should be face Id
- Parameters
-
minId [in] - minimum Id maxId [in] - maximum Id vals [in] - actual solution data dataSize [in] - data size
◆ setValuesOfPhaseVariableForElementsInZone() [1/2]
|
virtual |
Set the solution data values for all elements in certain range.
- Parameters
-
zoneId [in] - minimum Id vals [in] - actual solution data dataSize [in] - data size
◆ setValuesOfPhaseVariableForElementsInZone() [2/2]
|
virtual |
Set the solution data values for all elements in certain range.
- Parameters
-
zoneId [in] - minimum Id vals [in] - actual solution data dataSize [in] - data size
◆ setVariableForSetData() [1/10]
|
virtual |
◆ setVariableForSetData() [2/10]
|
virtual |
◆ setVariableForSetData() [3/10]
|
virtual |
◆ setVariableForSetData() [4/10]
|
virtual |
◆ setVariableForSetData() [5/10]
|
virtual |
◆ setVariableForSetData() [6/10]
|
virtual |
◆ setVariableForSetData() [7/10]
|
virtual |
◆ setVariableForSetData() [8/10]
|
virtual |
◆ setVariableForSetData() [9/10]
|
virtual |
◆ setVariableForSetData() [10/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [1/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [2/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [3/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [4/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [5/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [6/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [7/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [8/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [9/10]
|
virtual |
◆ setVariableLengthedDataOfVariableForSetInRange() [10/10]
|
virtual |
◆ setVariableLengthVariableForSetData() [1/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [2/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [3/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [4/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [5/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [6/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [7/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [8/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [9/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [10/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [11/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [12/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [13/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [14/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [15/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [16/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [17/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [18/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [19/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [20/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [21/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [22/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [23/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [24/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [25/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [26/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [27/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [28/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [29/30]
|
virtual |
◆ setVariableLengthVariableForSetData() [30/30]
|
virtual |
◆ setWriting()
|
protected |
Return whether a file is currently being written.
- Parameters
-
dataClass [in] - Class of data from which to identify the file. writing [in] - true if writable, false otherwise.
- See also
- startWriting, endWriting
◆ startWriting()
|
inlinevirtual |
Reimplemented in ansys::CffFileConsumer.
◆ startWritingCaseSectionCategories()
|
virtual |
◆ startWritingCaseSectionDataForCategory()
|
virtual |
◆ startWritingCell0sForFaces()
|
virtual |
Start writing cell0 cell ids for faces.
◆ startWritingCell1sForFaces()
|
virtual |
Start writing cell1 cell ids for faces.
◆ startWritingCells()
|
virtual |
Start writing cells.
- Parameters
-
zoneIds [in] - The zones for which data will be written.
◆ startWritingChildCellCountsForCells()
|
virtual |
◆ startWritingChildCellIdsForCells()
|
virtual |
◆ startWritingChildCellsForCells()
|
virtual |
◆ startWritingChildFaceCountsForFaces()
|
virtual |
Start writing refined child face counts for faces.
◆ startWritingChildFaceIdsForFaces()
|
virtual |
Start writing refined child face ids.
◆ startWritingChildFacesForFaces()
|
virtual |
Start writing refined face data for faces in specified zones.
◆ startWritingChunkInPartiticleTrackGroup()
|
virtual |
start writing chunk in particle track group, the input chunkIndex specifies
- Parameters
-
chunkIndex [in] - specify the chunk index If the chunkIndex is not specified, the chunk will be named in style like "chunk1", "chunk2" ..., the number after "chunk" will be incrementally increased for new chunks. It is recommended that user do NOT specify the chunk index if no special needs for that
◆ startWritingCoordinatesForNodes()
|
virtual |
Start writing the coorindinates for nodes.
- Parameters
-
zoneIds [in] - The zones for which coordinates will be provided
◆ startWritingDataOfVariableForSet()
|
virtual |
◆ startWritingEdges()
|
virtual |
Start writing information for elements in edge zones.
- Parameters
-
zoneIds [in] Zones for which data will be provided
◆ startWritingFaceCountsForCells()
|
virtual |
Start writing count of cell faces.
◆ startWritingFaceIdsForCells()
|
virtual |
Start writing ids of cell faces.
◆ startWritingFaces()
|
virtual |
Start of writing faces.
- Parameters
-
zoneIds [in] - Zones that will be written
◆ startWritingFacesForCells()
|
virtual |
Start writing cell faces.
◆ startWritingIdsForSet()
|
virtual |
◆ startWritingIdsForSetData()
|
virtual |
◆ startWritingInterfaceDataForFaces()
|
virtual |
◆ startWritingNodeCountsForCells()
|
virtual |
Start writing counts for cell nodes.
◆ startWritingNodeCountsForEdges()
|
virtual |
Start writing the node counts for edge zones.
◆ startWritingNodeCountsForFaces()
|
virtual |
Start writing node counts for faces.
◆ startWritingNodeIdsForCells()
|
virtual |
Start writing ids for cell nodes.
◆ startWritingNodeIdsForEdges()
|
virtual |
Start writing the node ids for edges.
◆ startWritingNodeIdsForFaces()
|
virtual |
Start writing faces node ids.
◆ startWritingNodes()
|
virtual |
Start writing nodes.
- Parameters
-
zoneIds [in] - The zones for which node data will be provided
- See also
- endWritingNodes
◆ startWritingNodesForCells()
|
virtual |
Start writing cell nodes.
- Parameters
-
zoneIds [in] - The cell zones for which nodes will be provided.
◆ startWritingNodesForEdges()
|
virtual |
Start writing nodes for edges within specified zones.
- Parameters
-
zoneIds [in] - Zones for which nodes will be provided
- Note
- This function must be called before writing node counts or node ids for any edge.
◆ startWritingNodesForFaces()
|
virtual |
Start writing faces nodes.
- Parameters
-
zoneIds [in] - Zones with nodes
◆ startWritingParticleTracks()
|
virtual |
Start write particle tracks under phase specified by phaseId in the mesh set specified by mesh Id, target and partition.
- Parameters
-
phaseId [in] - The phase id to which particle track will be added meshId [in] - The mesh id to which particle track will be added target [in] - The target category which particle track will be added partition [in] - The partition id to which particle track will be added, only applicable when target is PARTITION_POST
◆ startWritingPartiticleTrackGroup()
|
virtual |
Start writing particle track group.
- Parameters
-
name [in] - groups name
◆ startWritingPartitionIdsForCells()
|
virtual |
Start writing partition ids for cells.
◆ startWritingPhase()
|
virtual |
Start writing a phase.
- Parameters
-
phaseId [in] - phase id
◆ startWritingPhaseVariableInZonesOfCategory() [1/2]
|
virtual |
Start writing data for certain variable.
- Parameters
-
zoneCategory [in] to which zone category, the data will be written into varId [in] variable id, indicating which variable to write zoneIds [in] zone ids, indicating all zones that has data for the variable. numCols [in] number data on each element, for example, if the variable is temperature, it should be 1, if the variable is velocity in 3D, it should be 3
◆ startWritingPhaseVariableInZonesOfCategory() [2/2]
|
virtual |
Start writing data for certain variable.
- Parameters
-
zoneCategory [in] to which zone category, the data will be written into varName [in] variable name, indicating which variable to write zoneIds [in] zone ids, indicating all zones that has data for the variable. numCols [in] number data on each element, for example, if the variable is temperature, it should be 1, if the variable is velocity in 3D, it should be 3
◆ startWritingSet()
|
virtual |
◆ startWritingSetData()
|
virtual |
◆ startWritingShadowFaceIdsForFaces()
|
virtual |
Start writing shadow faces of faces.
◆ startWritingSizeOfVariableForSet()
|
virtual |
◆ startWritingTimeLevel()
| void ansys::CffConsumer::startWritingTimeLevel | ( | const TimeLevelType | timeLevel = CffLatestTimeLevel | ) | const |
◆ startWritingTypesForCells()
|
virtual |
Start writing cells types.
◆ startWritingVariableForSetData()
|
virtual |
◆ startWritingVariableLengthedDataOfVariableForSet()
|
virtual |
◆ startWritingVariableLengthVariableForSetData()
|
virtual |
◆ startWritingZonesOfCategory()
|
virtual |
Start writing solution data for zones of certain category.
Solution data can be associated with either cell elements or face elements or nodes. It is up to the solver where the solution data will be. So so need to save data on all zone categories. For example, Fluent saves solution data on face center and cell center, no solution data associated with nodes.
- Parameters
-
zoneCt [in] to which zone category, the data will be written into
◆ writeMeshAttributes()
|
virtual |
Write the global mesh size attributes and units to the active mesh.
When the mesh size and units are set using setMeshSize or setMeshUnits the API keeps this information in memory until all attributes have been supplied.
This function may be called explicitly at any time but will be called automatically when writing is terminated with endWriting
- See also
- setMeshSize, setMeshUnits, endWriting
◆ writeMeshSize()
| void ansys::CffConsumer::writeMeshSize | ( | ) | const |
DEPRECATED: This function is now deprecated in favor of writeMeshAttributes and may be removed in a future release.
- See also
- writeMeshAttributes
◆ writeOtherDataForSet() [1/10]
|
virtual |
◆ writeOtherDataForSet() [2/10]
|
virtual |
◆ writeOtherDataForSet() [3/10]
|
virtual |
◆ writeOtherDataForSet() [4/10]
|
virtual |
◆ writeOtherDataForSet() [5/10]
|
virtual |
◆ writeOtherDataForSet() [6/10]
|
virtual |
◆ writeOtherDataForSet() [7/10]
|
virtual |
◆ writeOtherDataForSet() [8/10]
|
virtual |
◆ writeOtherDataForSet() [9/10]
|
virtual |
◆ writeOtherDataForSet() [10/10]
|
virtual |
◆ writeOtherDataForSetData() [1/10]
|
virtual |
◆ writeOtherDataForSetData() [2/10]
|
virtual |
◆ writeOtherDataForSetData() [3/10]
|
virtual |
◆ writeOtherDataForSetData() [4/10]
|
virtual |
◆ writeOtherDataForSetData() [5/10]
|
virtual |
◆ writeOtherDataForSetData() [6/10]
|
virtual |
◆ writeOtherDataForSetData() [7/10]
|
virtual |
◆ writeOtherDataForSetData() [8/10]
|
virtual |
◆ writeOtherDataForSetData() [9/10]
|
virtual |
◆ writeOtherDataForSetData() [10/10]
|
virtual |
◆ writeSetting()
|
virtual |
Write a settings object to CFF consumer.
- Parameters
-
setting [in] - The settings value stored in a settings object key [in] - The settings key dataClass [in] - Whether the setting is written to the case of results data rootName [in] - The path under which the setting will be written
◆ writeSettingStrings()
|
virtual |
Write settings to the CFF consumer.
- Parameters
-
settings [in] - Each pair represents key and value dataClass [in] - Whether the setting is written to the case of results data rootName [in] - The path under which the setting will be written
◆ writeStringDataForSet()
|
virtual |
◆ writeStringDataForSetData()
|
virtual |
Public Member Functions inherited from