Skip to main content

Common Fluids Format 2025 R2

ansys Namespace Reference

Last update: 16.07.2025

Namespaces

namespace  Project
 

Classes

class  CffBase
 Base class that provides common function used by both CffConsumer and CffProvider classes. More...
 
class  CffConsumer
 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. More...
 
class  CffDataTypeTrait
 
class  CffFileConsumer
 Class that provides functions to access data stored within a CFF file. More...
 
class  CffFileIO
 Base class that provides common function used in File providers such as ansys::CffFileProvider. More...
 
class  CffFileProvider
 Class that provides functions to access data stored within a CFF file. More...
 
class  CffLocationModel
 A Topology model providing user visible topological names. More...
 
class  CffProvider
 Class that provides functions to access data stored 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 will be returned according to the rules defined in the CFF DataModels. More...
 
class  CffVersion
 Provides some basic version extraction and comparison functions. More...
 
struct  LocationModelData
 

Typedefs

typedef CffMeshIdType MeshId
 
typedef int Dimensionality
 
typedef int CffPartId
 
typedef CffPartIdCffPartIds
 
typedef CffPartId PartId
 
typedef std::vector< PartIdPartIds
 
typedef int CffBodyId
 
typedef CffBodyIdCffBodyIds
 
typedef CffBodyId BodyId
 
typedef std::vector< BodyIdBodyIds
 
typedef int CffFaceId
 
typedef CffFaceIdCffFaceIds
 
typedef CffFaceId FaceId
 
typedef std::vector< FaceIdFaceIds
 
typedef int CffFaceUseId
 
typedef CffFaceUseIdCffFaceUseIds
 
typedef CffFaceUseId FaceUseId
 
typedef std::vector< FaceUseIdFaceUseIds
 
typedef int CffCompositeId
 
typedef CffCompositeIdCffCompositeIds
 
typedef CffCompositeId CompositeId
 
typedef std::vector< CompositeIdCompositeIds
 
typedef int CffZoneSideId
 
typedef CffZoneSideIdCffZoneSideIds
 
typedef CffZoneSideId ZoneSideId
 
typedef std::vector< ZoneSideIdZoneSideIds
 
typedef CffMeshIdType MeshIdType
 Alias for CffMeshIdType ('C++' API only) More...
 
typedef CffPartitionIdType PartitionIdType
 Alias for CffPartitionIdType ('C++' API only) More...
 
typedef CffVersionType VersionType
 Alias for CffVersionType ('C++' API only) More...
 
typedef CffZoneTypeIdentifier ZoneTypeIdentifier
 
typedef CffNodeCountType NodeCountType
 alais for CffNodeCountType ('C++' API only) More...
 
typedef CffCountType CountType
 Alias for CffCountType ('C++' API only) More...
 
typedef CffElemIdType ElemIdType
 Alias for CffElemIdType ('C++' API only) More...
 
typedef CffSectionIdType SectionIdType
 Alias for CffSectionIdType ('C++' API only) More...
 
typedef CffShortIdType ShortIdType
 
typedef CffIOMode IOMode
 Alias for CffIOMode ('C++' API only) More...
 
typedef CffDataCacheMode DataCacheMode
 Alias for CffDataCacheMode ('C++' API only) More...
 
typedef CffTargetCategory TargetCategory
 Alias for CffTargetCategory ('C++' API only) More...
 
typedef CffVariableDimensionType VariableDimensionType
 Alias for CffVariableDimensionType ('C++' API only) More...
 
typedef std::string QuantityType
 Type used to represent a quantity type ('C++' API only) More...
 
typedef std::string AttributeName
 Type used to represent the variable attribute name ('C++' API only) More...
 
typedef std::vector< AttributeNameAttributeNames
 Type used to represent a number of variable attribute names ('C++' API only) More...
 
typedef std::string AttributeValue
 Type used to represent the variable attribute value ('C++' API only) More...
 
typedef CffTimeLevelType TimeLevelType
 Alias for CffTimeLevelType ('C++' API only) More...
 
typedef std::vector< TimeLevelTypeTimeLevels
 Type used to represent a number of time levels ('C++' API only) More...
 
typedef std::vector< MeshIdTypeMeshIds
 Type used to represent a number of mesh identifiers ('C++' API only) More...
 
typedef std::vector< PartitionIdTypePartitionIds
 Type used to represent a number of partition identifiers ('C++' API only) More...
 
typedef std::vector< TargetCategoryTargetCategories
 Type used to represent a number of target categories ('C++' API only) More...
 
typedef std::string CategoryName
 Type used to represent a category name ('C++' API only) More...
 
typedef std::vector< CategoryNameCategoryNames
 Type used to represent a number of category names ('C++' API only) More...
 
typedef CffZoneIdType ZoneIdType
 Alias for CffZoneIdType ('C++' API only) More...
 
typedef std::vector< ZoneIdTypeZoneIds
 Type used to represent a number of zone identifiers('C++' API only) More...
 
typedef CffPhaseIdType PhaseIdType
 Alias for CffPhaseIdType ('C++' API only) More...
 
typedef std::vector< PhaseIdTypePhaseIds
 Type used to represent a number of phase identifiers ids('C++' API only) More...
 
typedef std::string PhaseName
 Type used to represent a name of a phase ('C++' API only) More...
 
typedef std::vector< PhaseNamePhaseNames
 Type used to represent a number of phase names ('C++' API only) More...
 
typedef std::string InjectionName
 Type used to represent a particle injection name ('C++' API only) More...
 
typedef std::vector< InjectionNameInjectionNames
 Type used to represent a number of particle injection names ('C++' API only) More...
 
typedef CffVariableIdType VariableIdType
 Type used to represent the identifier of a variable ('C++' API only) More...
 
typedef std::vector< VariableIdTypeVariableIds
 Type used to represent a number of variable identifiers ('C++' API only) More...
 
typedef std::string VariableName
 Type used to represent the name of a variable ('C++' API only) More...
 
typedef std::vector< VariableNameVariableNames
 Type used to represent a number of variable names ('C++' API only) More...
 
typedef std::string GroupName
 Type used to represent the name of a particle group('C++' API only) More...
 
typedef std::vector< GroupNameGroupNames
 Type used to represent a number of particle groups ('C++' API only) More...
 
typedef std::string SolverType
 Type used to represent the solver type ('C++' API only) More...
 
typedef std::string VariableTarget
 Type used to represent the variable target ('C++' API only) More...
 
typedef CffMeshSizeType MeshSizeType
 Alias for CffMeshSizeType ('C++' API only) More...
 
typedef CffZoneCategory ZoneCategory
 Alias for CffZoneCategory ('C++' API only) More...
 
typedef CffZoneSizeType ZoneSizeType
 Alias for CffZoneSizeType ('C++' API only) More...
 
typedef CffNodeZoneInfoType NodeZoneInfoType
 Alias for CffNodeZoneInfoType ('C++' API only) More...
 
typedef CffEdgeZoneInfoType EdgeZoneInfoType
 Alias for CffEdgeZoneInfoType ('C++' API only) More...
 
typedef CffFaceZoneInfoType FaceZoneInfoType
 Alias for CffFaceZoneInfoType ('C++' API only) More...
 
typedef CffCellZoneInfoType CellZoneInfoType
 Alias for CffCellZoneInfoType ('C++' API only) More...
 
typedef CffFaceZonePropType FaceZonePropType
 Alias for CffFaceZonePropType ('C++' API only) More...
 
typedef CffZoneStringInfoType ZoneStringInfoType
 Alias for CffZoneStringInfoType ('C++' API only) More...
 
typedef CffPlainDataType PlainDataType
 Alias for CffPlainDataType ('C++' API only) More...
 
typedef CffDataClass DataClass
 Alias for CffDataClass ('C++' API only) More...
 
typedef CffDataPrecisionType DataPrecisionType
 Alias for CffDataPrecisionType ('C++' API only) More...
 
typedef CffNodeZoneType NodeZoneType
 Alias for CffNodeZoneType ('C++' API only) More...
 
typedef CffEdgeZoneType EdgeZoneType
 Alias for CffEdgeZoneType ('C++' API only) More...
 
typedef CffFaceZoneType FaceZoneType
 Alias for CffFaceZoneType ('C++' API only) More...
 
typedef CffEdgeType EdgeType
 Alias for CffEdgeType ('C++' API only) More...
 
typedef CffFaceType FaceType
 Alias for CffFaceType ('C++' API only) More...
 
typedef CffCellType CellType
 Alias for CffCellType ('C++' API only) More...
 
typedef CffFileFormatType FileFormatType
 Alias for CffFileFormatType ('C++' API only) More...
 

Functions

 DECL_CFF_DATA_TYPE (unsigned char, PlainDataType::CFF_DATATYPE_UCHAR)
 
 DECL_CFF_DATA_TYPE (char, PlainDataType::CFF_DATATYPE_CHAR)
 
 DECL_CFF_DATA_TYPE (short, PlainDataType::CFF_DATATYPE_SHORT)
 
 DECL_CFF_DATA_TYPE (int, PlainDataType::CFF_DATATYPE_INT)
 
 DECL_CFF_DATA_TYPE (unsigned int, PlainDataType::CFF_DATATYPE_UINT)
 
 DECL_CFF_DATA_TYPE (long, PlainDataType::CFF_DATATYPE_LONG)
 
 DECL_CFF_DATA_TYPE (long long, PlainDataType::CFF_DATATYPE_LLONG)
 
 DECL_CFF_DATA_TYPE (double, PlainDataType::CFF_DATATYPE_DOUBLE)
 
 DECL_CFF_DATA_TYPE (float, PlainDataType::CFF_DATATYPE_FLOAT)
 
 DECL_CFF_DATA_TYPE (size_t, PlainDataType::CFF_DATATYPE_SIZE_T)
 
void ANSYS_FLUIDS_CFFINTERFACE_DLL printSDKVersion ()
 Writes the ANSYS CFF SDK version message to cout. More...
 
void ANSYS_FLUIDS_CFFINTERFACE_DLL printCopyrightNotice ()
 Writes the standard ANSYS CFF SDK copyright message to cout. More...
 
static bool printCopyrightNoticeOnce ()
 
ANSYS_FLUIDS_FACTORY_DLL CffFileProvidergetDataProvider (const std::string &sourceFile)
 A function that provides that obtains an instance of an ansys::CffFileProvider that can be used to read data from the supplied file name. More...
 
ANSYS_FLUIDS_FACTORY_DLL std::string determineSolverType (const std::string &sourceFile)
 Determines the file format of a file and returns as a string. More...
 
ANSYS_FLUIDS_FACTORY_DLL FileFormatType determineFileFormat (const std::string &sourceFile)
 Determines the file format of a file and returns as ansys::FileFormatType. More...
 
ANSYS_FLUIDS_FACTORY_DLL CffFileConsumergetDataConsumer (const FileFormatType consumerType)
 

Detailed Description

Copyright 2025 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

Typedef Documentation

◆ BodyId

◆ BodyIds

typedef std::vector<BodyId> ansys::BodyIds

◆ CffBodyId

typedef int ansys::CffBodyId

◆ CffBodyIds

◆ CffCompositeId

typedef int ansys::CffCompositeId

◆ CffCompositeIds

◆ CffFaceId

typedef int ansys::CffFaceId

◆ CffFaceIds

◆ CffFaceUseId

typedef int ansys::CffFaceUseId

◆ CffFaceUseIds

◆ CffPartId

typedef int ansys::CffPartId

◆ CffPartIds

◆ CffZoneSideId

typedef int ansys::CffZoneSideId

◆ CffZoneSideIds

◆ CompositeId

◆ CompositeIds

typedef std::vector<CompositeId> ansys::CompositeIds

◆ Dimensionality

typedef int ansys::Dimensionality

◆ FaceId

◆ FaceIds

typedef std::vector<FaceId> ansys::FaceIds

◆ FaceUseId

◆ FaceUseIds

typedef std::vector<FaceUseId> ansys::FaceUseIds

◆ MeshId

◆ PartId

◆ PartIds

typedef std::vector<PartId> ansys::PartIds

◆ ShortIdType

typedef CffShortIdType ansys::ShortIdType

◆ ZoneSideId

◆ ZoneSideIds

typedef std::vector<ZoneSideId> ansys::ZoneSideIds

◆ ZoneTypeIdentifier

typedef CffZoneTypeIdentifier ansys::ZoneTypeIdentifier

Function Documentation

◆ DECL_CFF_DATA_TYPE() [1/10]

ansys::DECL_CFF_DATA_TYPE ( char  ,
PlainDataType::CFF_DATATYPE_CHAR   
)

◆ DECL_CFF_DATA_TYPE() [2/10]

ansys::DECL_CFF_DATA_TYPE ( double  ,
PlainDataType::CFF_DATATYPE_DOUBLE   
)

◆ DECL_CFF_DATA_TYPE() [3/10]

ansys::DECL_CFF_DATA_TYPE ( float  ,
PlainDataType::CFF_DATATYPE_FLOAT   
)

◆ DECL_CFF_DATA_TYPE() [4/10]

ansys::DECL_CFF_DATA_TYPE ( int  ,
PlainDataType::CFF_DATATYPE_INT   
)

◆ DECL_CFF_DATA_TYPE() [5/10]

ansys::DECL_CFF_DATA_TYPE ( long long  ,
PlainDataType::CFF_DATATYPE_LLONG   
)

◆ DECL_CFF_DATA_TYPE() [6/10]

ansys::DECL_CFF_DATA_TYPE ( long  ,
PlainDataType::CFF_DATATYPE_LONG   
)

◆ DECL_CFF_DATA_TYPE() [7/10]

ansys::DECL_CFF_DATA_TYPE ( short  ,
PlainDataType::CFF_DATATYPE_SHORT   
)

◆ DECL_CFF_DATA_TYPE() [8/10]

ansys::DECL_CFF_DATA_TYPE ( size_t  ,
PlainDataType::CFF_DATATYPE_SIZE_T   
)

◆ DECL_CFF_DATA_TYPE() [9/10]

ansys::DECL_CFF_DATA_TYPE ( unsigned char  ,
PlainDataType::CFF_DATATYPE_UCHAR   
)

◆ DECL_CFF_DATA_TYPE() [10/10]

ansys::DECL_CFF_DATA_TYPE ( unsigned int  ,
PlainDataType::CFF_DATATYPE_UINT   
)

◆ determineFileFormat()

FileFormatType ansys::determineFileFormat ( const std::string &  sourceFile)

Determines the file format of a file and returns as ansys::FileFormatType.

Parameters
sourceFile[in] - The name of the file
Returns
A value representing the type of the file

◆ determineSolverType()

std::string ansys::determineSolverType ( const std::string &  sourceFile)

Determines the file format of a file and returns as a string.

Parameters
sourceFile[in] - The name of the file
Returns
- A string representing the type of the file

◆ getDataConsumer()

CffFileConsumer * ansys::getDataConsumer ( const FileFormatType  consumerType)

◆ getDataProvider()

CffFileProvider * ansys::getDataProvider ( const std::string &  sourceFile)

A function that provides that obtains an instance of an ansys::CffFileProvider that can be used to read data from the supplied file name.

Parameters
sourceFile[in] - The name of the file for which to obtain a provider
Returns
- A value ansys::CffFileProvider object or nullptr

◆ printCopyrightNotice()

void ansys::printCopyrightNotice ( )

Writes the standard ANSYS CFF SDK copyright message to cout.

◆ printCopyrightNoticeOnce()

static bool ansys::printCopyrightNoticeOnce ( )
static

◆ printSDKVersion()

void ansys::printSDKVersion ( )

Writes the ANSYS CFF SDK version message to cout.

Connect with Ansys