> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ansys::CffBase Class Reference

Base class that provides common function used by both [CffConsumer](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_consumer.md) and [CffProvider](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_provider.md) classes.

`#include "CffInterface/CffBase.hpp"`

Inheritance diagram for ansys::CffBase:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_base.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=6aa0cdd1c38e450bbd2e16a93373e345)

## Public Member Functions

| Type | Name |
| - | - |
| | [CffBase](#a8e91a34b6ff2e403b674b5f7eabbd30d) () Constructor. |
| virtual | [\~CffBase](#a20caf165b9dd7454fc7792d61e14eb7e) () Destructor. |
| void | [setPartitionId](#acd0f72767680be525a7445e07fb3b9ba) (const [PartitionIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaa0b01fb68d68067022164a7fcb5cb0e5) pId) |
| [PartitionIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaa0b01fb68d68067022164a7fcb5cb0e5) | [getPartitionId](#aebfbe683df8687fd15685c7cf5e2dbe9) () const |
| virtual void | [setDebugOn](#a762f990aefce5b11164a58d2721bd350) (bool debug) Turn on/off debugging information. |
| virtual void | [setReadNCIOn](#a7580864520aebd0a63c0e3f4490c8ea3) (bool readNCI) Turn on/off non-conformal interface reading. |
| void | [setMeshId](#a7a12ef6589a193f80be541291b0cec4b) (const [MeshIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga9a6c5565b81f965277b48f14355a38ae) meshId) Set the Identifier for active mesh being read or written. |
| [MeshIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga9a6c5565b81f965277b48f14355a38ae) | [getMeshId](#a38bd51885eca5de0f72d49db6bff1ffb) () const Get the Identifier of the active mesh. |
| void | [setTarget](#a8f9c0f2adda371644dfe678da1bdd9a2) (const [TargetCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga2bf8717ca5a1d17190dddf5faf6efa5d) target) Set the target category for which the data is intended. |
| [TargetCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga2bf8717ca5a1d17190dddf5faf6efa5d) | [getTarget](#a9ed7e905d291697c22f073ee8482ec40) () const Get the target category for which the data is intended. |
| void | [setMeshSize](#a259b65322ef0d42859d988166eed23d7) (const [MeshSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaf5d669ab21b6699ea497958b17c32002) type, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) size) Sets a value that defines the dimension or the global number of objects of a specific mesh entity. |
| void | [getMeshSize](#acaf3eef987d98a7af34c15b9b7954abc) (const [MeshSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaf5d669ab21b6699ea497958b17c32002) type, [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) \&size) const Obtains a value that defines the dimension or the global number of objects of a specific mesh entity. |
| void | [setMeshUnits](#ae323125334ed9fb3d4d62796e08a8451) (const std::string \&units="m") Define the units of length the mesh is defined in. |
| void | [getMeshUnits](#a1f85337345d893d33c9cfcdd0431757a) (std::string \&unit) const Obtains the unit of length the mesh is defined in. |
| void | [setZoneIds](#a39f93ca4fe18b77774bf8e8de49761e0) (const [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b) zoneCategory, const [ZoneIds](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga93b257990d79f628e301fb5e39125cfa) \&zonesIds) Define the zones that are of a specific category. |
| virtual size\_t | [getNumZones](#a3cfe9f0e37df52d9d9a0d0846f01be44) (const [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b)) const Returns the number of zones in a specific category. |
| virtual void | [getZoneIds](#a27eedb8c5bce9f6df83472ad4f3e02bd) (const [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b) zoneCategory, [ZoneIds](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga93b257990d79f628e301fb5e39125cfa) \&zoneIds) const Request the collection of zone Ids that are of a specific category. |
| void | [setNodeZoneInfo](#af769e3a822ffc4c0fdf1a729c166c9cb) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) nodeZoneId, const [NodeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gacc3f469fa6326c4b75b40d9e4f8313db) nodeZoneInfoType, const int info) const set certain zone level info for a node zone. |
| void | [getNodeZoneInfo](#a5a38fe3bcf5c8c129c6691b5c57440e9) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) nodeZoneId, const [NodeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gacc3f469fa6326c4b75b40d9e4f8313db) nodeZoneInfoType, int \&info) const get certain zone level info for a node zone. |
| void | [setAllFaceZoneFlags](#abb3c12f95d090dd9df153008b6515ed7) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const int allFlags) Set flags for a face zone. |
| void | [getAllFaceZoneFlags](#a3a07688c012e35b57939fe2a94ae7bf6) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, int \&allFlags) const Get flags for a face zone. |
| void | [setFaceZoneType](#a95e9e01481576f3f34c3b2276215fab7) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const [FaceZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga13c2dd97c5e14c90a074a2c603ec2bc3) zoneType) set zone type of a face zone. |
| void | [getFaceZoneType](#a54f28797f4937e10436099ce2aeacfb9) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, [FaceZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga13c2dd97c5e14c90a074a2c603ec2bc3) \&zoneType) const get the zone type of a face zone. |
| void | [setFaceZoneInfo](#a5c7a587b4206497cf6b9608c41d6b543) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const [FaceZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga90bd9c961be9a1b7e7d014e9f04588e3) faceZoneInfoType, const int info) const set certain zone level info for a face zone. |
| void | [getFaceZoneInfo](#af7d98ff434df5ca813e0abc6fcda06b5) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const [FaceZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga90bd9c961be9a1b7e7d014e9f04588e3) faceZoneInfoType, int \&info) const get certain zone level info for a face zone. |
| void | [setFaceZoneProp](#a9fd0b6d7cec6f6bf0d1d49be26f7d55d) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const [FaceZonePropType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gadf13e7806827f3d0db8ecb550aa50384) faceZonePropType) |
| bool | [getFaceZoneProp](#a6916863ecd01e1a7f61660c64cf64b85) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, const [FaceZonePropType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gadf13e7806827f3d0db8ecb550aa50384)) const |
| void | [setZoneSizeInfo](#ab004b191ee5ecb3c4e601e8fdad56c1a) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) zoneId, const [ZoneSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga54ba682a6deedd60cb203d1963a0ac12) sizeType, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) size) Sets a size setting of a zone. |
| void | [getZoneSizeInfo](#a3288b67c94eebe85133afbf5c6329a73) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) zoneId, const [ZoneSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga54ba682a6deedd60cb203d1963a0ac12) sizeType, [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) \&size) const Obtains a size setting of a zone. |
| void | [setCellZoneInfo](#a4fad271e6ee24cc9de5fca8e0990e558) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) cellZoneId, const [CellZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaaffda1f82c7b51d603aff684c9ab0cd2) cellZoneInfoType, const int info) set certain zone level info for a cell zone. |
| void | [getCellZoneInfo](#a8cdb470e83dfbe98fda9597e5908570d) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) cellZoneId, const [CellZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaaffda1f82c7b51d603aff684c9ab0cd2) cellZoneInfoType, int \&info) const get certain zone level info for a cell zone. |
| void | [setEdgeZoneType](#a022ca55715eb4c7a1f46e7c1c7c899f3) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) edgeZoneId, const [EdgeZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gac0bfa43991cd91c6cc7045a2596e36bf) zoneType) set zone type of a edge zone. |
| void | [getEdgeZoneType](#a338831ea194619a576aa15aa96f479f8) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) edgeZoneId, [EdgeZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gac0bfa43991cd91c6cc7045a2596e36bf) \&zoneType) const get the zone type of a edge zone. |
| void | [setEdgeZoneInfo](#a4deb6b8c569d92acabf1c0bd85a4f35f) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) edgeZoneId, const [EdgeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab5510fa8ae80e1c0e3f4d17207ac2cf8) edgeZoneInfoType, const int info) set certain zone level info for a edge zone. |
| void | [getEdgeZoneInfo](#a781704a9b5db32ad76674f0d76ff1c82) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) edgeZoneId, const [EdgeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab5510fa8ae80e1c0e3f4d17207ac2cf8) edgeZoneInfoType, int \&info) const get certain zone level info for a edge zone. |
| void | [setZoneStringInfo](#a41dad7e9d021bdda73c87fe328dc8165) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) zoneId, const [ZoneStringInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga7fe67117cb23bbcbb4ff2d5b55c3a704) type, const std::string \&info) Sets a string value associated with a zone. |
| void | [getZoneStringInfo](#a996240e5d9daecbd1a2fca41931e6857) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) zoneId, const [ZoneStringInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga7fe67117cb23bbcbb4ff2d5b55c3a704) type, std::string \&info) const Obtains a string value associated with a zone. |
| void | [getFaceCellZone0Ids](#aed5f714fd202db49f2d5dbc643f8ae0b) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > \&zoneIds) Get a list of cell zones on side zero of a face zone. |
| void | [getFaceCellZone1Ids](#a5b3ac69ef66941dc47ac51567da0e811) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) faceZoneId, std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > \&zoneIds) Get a list of cell zones on side one of a face zone. |
| void | [getCellFaceZoneIds](#aefdb444e036bf2bde4727ca122985a06) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) cellZoneId, std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > \&zoneIds) Get a list of face zones touching a cell zone. |
| virtual void | [setSolverType](#a30ca8450d5f621a2decc2dde0ff9207f) ([SolverType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga195806ab92eb9a11e3bda91098c6ac38) solverType) Set the name of the application that is supplying the data. |
| [SolverType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga195806ab92eb9a11e3bda91098c6ac38) | [getSolverType](#aac055e13c1b7040833aa2d981a606486) () const Obtains the owner of the data in the model. |
| const [CffLocationModel](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_location_model.md) \* | [getLocationModel](#a6ef0a23c0b31c58b1a70e8c7abdb3cb9) () const Get a query interface to the underlying topology model. |
| void | [setVariableAttributeProvider](#af65917c8ea7a2165f19462275e4fdc11) (const CffVariableAttributeProvider \*, bool takeOwnership=false) Register an alternative variable attribute provider. |
| CffMessageRegistrar \* | [getMessageRegistrar](#ab3cf0c9c550daa3233c0121c06b9a12e) () const Obtains a message registrar object so that external plug-ins can register messages with the API. |
| bool | [hasError](#ae21605b67de8dfdc99ed2dd2436c8276) () const returns whether there are unprocessed error messages registered. |
| bool | [hasWarning](#a0c21e26398dc9974f47ca3483ddf5511) () const returns whether there are unprocessed warning messages registered. |
| bool | [hasInfo](#a9951a635748839427d6f0025ffe52624) () const returns whether there are unprocessed informative messages registered. |
| std::vector\< std::string > | [getErrors](#a4ad1f2f007e8a575da4935bbc136ee1a) (bool formated=true, bool clear=false) const returns, as strings, any unprocessed error messages registered |
| std::vector\< std::string > | [getWarnings](#ac9b6a55b76b04124c6e0ce8670b27cdf) (bool formated=true, bool clear=false) const returns, as strings, any unprocessed warning messages registered |
| std::vector\< std::string > | [getInfos](#a082d2c3d4dc0c44c918764d25adcadda) (bool formated=true, bool clear=false) const returns, as strings, any unprocessed information messages registered |
| void | [registerSettingsParser](#a52f6b4e5a617b22028b2cab38fcbc861) (CffSettingsParser \*) Sets a parser for processing settings. |
| bool | [addSetting](#a2ec5c496eb4060808d5c93e7de48afba) (const [DataClass](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab852cc24891eb831942fb8da764d8ddb) dataClass, const std::string \&key, const std::string \&value, const [SolverType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga195806ab92eb9a11e3bda91098c6ac38) \&solverType="CFF\_GENERIC") Sets a specific setting by supplying a key and a value. |
| bool | [addSettingsDataSet](#ac3afd0039522c633e78e643ef5c92c88) (const [DataClass](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab852cc24891eb831942fb8da764d8ddb) dataClass, const std::string \&dataSetPath, const std::string \&data, const [SolverType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga195806ab92eb9a11e3bda91098c6ac38) \&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. |

> [accordion] Public Member Functions inherited from ansys::CffVersion
>
> Public Member Functions inherited from [ansys::CffVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md)
>
> | Type | Name |
> | - | - |
> | | [CffVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a9274e8b4fd14afdc71d46fb66dc405cd) () |
> | | [\~CffVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a3ee0c0a7f11906983671c5b693860430) () |

## Static Public Attributes

| Type | Name |
| - | - |
| static std::string | [\_defaultSettingsPath](#a03d5187e85700144661d5dc477714202) = "settings" |

## Protected Types

| Type | Name |
| - | - |
| enum class | [UpdateMethod](#a1e830177b6b0f3a1ab06bd2679f8a801) \{ [CaseOnly](#a1e830177b6b0f3a1ab06bd2679f8a801aa0021edb3bd3a0360dad3a09fe2c2185) = 1 , [ResultsOnly](#a1e830177b6b0f3a1ab06bd2679f8a801ad0a948b0e19dfca30fe1b7fc8745cc52) , [CaseAndResults](#a1e830177b6b0f3a1ab06bd2679f8a801a3e88061dedbcbe68f2a2b719a774044d) } |

## Protected Member Functions

| Type | Name |
| - | - |
| [CffReadable](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga0fb9773918c961ce8187a074481c3069) | [isSupported](#a0f6a86dc4029c4ff72ccf893a1247fb1) (const std::string \&version) const Check whether the version can be read by this version of the CFF SDK. |
| void | [setMeshSize](#a5c0728f170c875374eef517fcb4a75fb) (const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) nDims, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) nodesCount, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) edgesCount, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) facesCount, const [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107) 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. |
| virtual void | [setZoneAdjacency](#a5ef5d972c78d183d8d765f1b5578ea57) () |
| void | [setFaceCellZone0Ids](#ac0abea2487c710f7091853e6519493e7) (const std::map\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96), std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > &) 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. |
| void | [setFaceCellZone1Ids](#a5b3584e853403d6f0fdac43573c60fb0) (const std::map\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96), std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > &) 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. |
| void | [getFaceCellZone0Ids](#acb322a7e2667baee3ae555968a4bb429) (std::map\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96), std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > &) |
| void | [getFaceCellZone1Ids](#ad4fedb6f7158c5340fcc0dd5ebffa790) (std::map\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96), std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > &) |
| void | [setCellFaceZoneIds](#a5f0ef9af551d0fa910224bcd5b2ff012) (const std::map\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96), std::list\< [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > &) 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. |
| void | [getSortedMinIdZoneId](#acd55506ab391dd7dd7e62f51f7aaa2b0) (const [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b), std::vector\< std::pair\< [ElemIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae50a482a800bfe94fe6b210685908107), [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) > > \&minIdZoneId) const |
| std::string | [getGroupNameForPhase](#af0d21caac7777b939f76735e83984cbe) ([PhaseIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gac3312714419db4aa206bdeda4efa9223) phaseId) const |
| CffSolutionModel \* | [solutionModel](#a91b255a6c333f2f5e302fe61a09e5657) () const |
| virtual void | [initLocationModel](#a624faedd25141cbf3f46877cfa7a2c53) () const |
| [CffLocationModel](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_location_model.md) \* | [locationModel](#a022d5e7d262d2f307d305b071844f7b8) () const |
| void | [initializeVariableAttributeProvider](#a2630b322188a07ec1eeb9b136c73c4e2) (const [SolverType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga195806ab92eb9a11e3bda91098c6ac38) \&solverType, const std::string \&variableTarget) |
| virtual bool | [updateData](#a4705c89685f16a8b76f879dff8d53a4c) ([DataClass](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab852cc24891eb831942fb8da764d8ddb)) |
| bool | [setMeshContext](#aa91c9abb97b43c30e006c41852a54486) ([MeshId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/namespaceansys#ad39fb97de8d4c01dcde3d4d829eee232), [TargetCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga2bf8717ca5a1d17190dddf5faf6efa5d), [PartitionIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaa0b01fb68d68067022164a7fcb5cb0e5), [UpdateMethod](#a1e830177b6b0f3a1ab06bd2679f8a801)=[UpdateMethod::CaseAndResults](#a1e830177b6b0f3a1ab06bd2679f8a801a3e88061dedbcbe68f2a2b719a774044d)) |
| virtual void | [finalizeMeshContext](#a0b1de966137efffa6bd89ed3e26005b0) () |
| void | [setZoneCategory](#a24487deb6252ec704a446743f74dc84a) (const [ZoneIds](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga93b257990d79f628e301fb5e39125cfa) &, const [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b)) set the zone categories of all zones of the same zone category |
| [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b) | [getZoneCategory](#aefc5f51cf7ed4b2d2f7c887e28edb068) (const [ZoneIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga96bae07dc5559ed1e54e8b8919f11b96) zoneId) const get the zone category of a given zone by zone id |
| void | [addVariableOfCategory](#a5a34019a24cdc2b0198f5fd1f9169579) ([VariableIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gae1bb05c41fbbd2e21c7b62cbe214b4be), [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga1e26b7f9299129cd1edc8fdf99f2917b)) const |

## Protected Attributes

| Type | Name |
| - | - |
| std::unique\_ptr\< DataInterface > | [\_data](#abe68a138cc582d12caf4fe858a9c8c94) |
| std::unique\_ptr\< const CffVariableAttributeProvider > | [\_varAttrProvider](#a6cc0f9a6020b6a1eb82f705ac2e4a0a2) |
| void | [setApplicationName](#a37ac2d23d1b21376117cb574ea5aecd5) (const std::string \&applicationName) Sets an application name for error purposes and when logging to a file. |
| std::string | [getApplicationName](#a2c9e460ac858ffb8050c9e4c30c23eb9) () const Obtains the application name that was set by calling [setApplicationName](#a37ac2d23d1b21376117cb574ea5aecd5) logging when writing a file. |
| void | [getPhaseIds](#af555905619187578ebedc0da9116ae54) ([PhaseIds](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga99ff3bf3b76eac538df4d637faab6b4c) \&phaseIds) const Obtain the Identifiers of all Phase. |
| bool | [getPhaseName](#ac0e318ff4148977296fd1e7e332a4cb2) (const [PhaseIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gac3312714419db4aa206bdeda4efa9223) phaseId, [PhaseName](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaec2c2963724097e7a913a6645b545682) \&phaseName) const Obtain the unique name a specific Phase. |
| [PhaseName](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaec2c2963724097e7a913a6645b545682) | [getPhaseName](#aaf2782a59cd4e5939299c278f2e2c14d) (const [PhaseIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gac3312714419db4aa206bdeda4efa9223) phaseId) const Obtain the unique name a specific Phase. |
| bool | [getActivePhase](#ac71e552c0ad9f94ec0b117f544e16dab) ([PhaseIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gac3312714419db4aa206bdeda4efa9223) &) const |
| bool | [setActivePhase](#ab033b5affde5ab8b4ae0ff2bc27a1c57) ([PhaseIdType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gac3312714419db4aa206bdeda4efa9223)) const |
| bool | [getActivePhase](#afa627cbd51a548d5e9d7357ee0ff879d) ([PhaseName](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaec2c2963724097e7a913a6645b545682) &) const |
| bool | [setActivePhase](#ae45bcd4e2a15aa09114e4f9767ce7b6a) (const [PhaseName](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gaec2c2963724097e7a913a6645b545682) &) const |
| const [TimeLevels](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga05f2423bfbdc98936c0b6e77108a3ceb) & | [getTimeLevels](#aed5e5b99ed3a9c2f0c99c79f766529f6) () const |
| [TimeLevelType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gabedb5244490da90f6098241bdc88e24c) | [getTimeLevel](#acd2f82d0cc8278ce20a870e5216dc16b) () const |
| void | [addTimeLevel](#a61b15533595d9c6fb16b083c1810f362) ([TimeLevelType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gabedb5244490da90f6098241bdc88e24c)) const |
| bool | [setTimeLevel](#a8070844e08f8fd939cf1a23e1200f374) ([TimeLevelType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#gabedb5244490da90f6098241bdc88e24c)) const |

## Additional Inherited Members

> [accordion] Static Public Member Functions inherited from ansys::CffVersion
>
> Static Public Member Functions inherited from [ansys::CffVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md)
>
> | Type | Name |
> | - | - |
> | static unsigned int | [getMajor](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a6eac2194e4845de8b13fc6654a6061db) () |
> | static unsigned int | [getMinor](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#ae580f388b6c6dd9e68db8433749da81e) () |
> | static unsigned int | [getPatch](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#ad1139980443eb9200c7c37e1a48433ac) () |
> | static std::string | [getSHA](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a054bb0e156cf7a084145cd536399fcf1) () |
> | static bool | [isBeta](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a49bba0b8a37276210f7e51c425ee4788) () |
> | static std::string | [apiVersionAsString](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#aba256dcc082e509be94d1c332a88f1dc) (const std::string \&separator=".") |
> | static std::string | [ansysApplicationVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a839a336d8430485ed81d1bafdc6671cc) (const std::string \&appName) |
> | static std::string | [copyright](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.md#a36112f9aea74b547d2d238c447ab89a9) (bool allRightsReserved) |

## Detailed Description

Base class that provides common function used by both [CffConsumer](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_consumer.md) and [CffProvider](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_provider.md) classes.

[CffBase](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_base.md) cannot be instantiated itself but must be used via the derived classes [ansys::CffConsumer](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_consumer.md) (when writing to CFF) and [ansys::CffProvider](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_provider.md) (when reading from CFF).

## Member Enumeration Documentation

### UpdateMethod

```cpp theme={null}
enum class ansys::CffBase::UpdateMethod
```

`strong` `protected`

| Enumerator | |
| - | - |
| CaseOnly | |
| ResultsOnly | |
| CaseAndResults | |

## Constructor & Destructor Documentation

### CffBase()

```cpp theme={null}
ansys::CffBase::CffBase()
```

Constructor.

A [CffBase](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_base.md) object cannot be constructed directly but needs to be constructed by a create an object that has been derived from it.

### \~CffBase()

```cpp theme={null}
ansys::CffBase::~CffBase()
```

`virtual`

Destructor.

Destroys an instance of a type [CffBase](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_base.md)

## Member Function Documentation

### addSetting()

```cpp theme={null}
bool ansys::CffBase::addSetting(
    const DataClass type,
    const std::string & key,
    const std::string & value,
    const SolverType & solverType = "CFF_GENERIC"
)
```

Sets a specific setting by supplying a key and a value.

**Parameters**

| Name | Description |
| - | - |
| type | \[in] - The class of data to which the setting applies |
| key | \[in] - The key of the setting being set |
| value | \[in] - The value to be associated with the key |
| solverType | \[in] - The solver writing the data |

**Returns**

* True if successully added, false otherwise

### addSettingsDataSet()

```cpp theme={null}
bool ansys::CffBase::addSettingsDataSet(
    const DataClass dataClass,
    const std::string & dataSetPath,
    const std::string & settings,
    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.

A complete dataset containing multiple settings may be supplied to the interface that are typically in a solvers native language. When called this function parsers the settings uusing the parser appropriate for the solver type supplied, thus breaking the settings into key value pairs, and stores mattched subset of the settings controlled by settingsKeys.

A non-default parser may be supplied by the user calling [registerSettingsParser](#a52f6b4e5a617b22028b2cab38fcbc861) prior to this function being called.

The settings will override any settings already stored in the dataset

**Parameters**

| Name | Description |
| - | - |
| dataClass | \[in] - The class of data to which the setting applies |
| dataSetPath | \[in] - The data set in which to store the settings |
| settings | \[in] - The settings to parse prior to storing in the dataset |
| solverType | \[in] - The solver providing the settings data |
| settingsKeys | \[in] - A set of keys that is used to restrict the settings to a subset key values. If empty all supplied settings are stored |

**Returns**

* true if a valid parser is found, otherwise false

### addTimeLevel()

```cpp theme={null}
void ansys::CffBase::addTimeLevel(TimeLevelType timeLevel) const
```

`protected`

### addVariableOfCategory()

```cpp theme={null}
void ansys::CffBase::addVariableOfCategory(
    VariableIdType varId,
    ZoneCategory category
) const
```

`protected`

### finalizeMeshContext()

```cpp theme={null}
virtual void ansys::CffBase::finalizeMeshContext()
```

`inline` `protected` `virtual`

### getActivePhase() \[1/2]

```cpp theme={null}
bool ansys::CffBase::getActivePhase(PhaseIdType & phaseId) const
```

`protected`

### getActivePhase() \[2/2]

```cpp theme={null}
bool ansys::CffBase::getActivePhase(PhaseName & phaseName) const
```

`protected`

### getAllFaceZoneFlags()

```cpp theme={null}
void ansys::CffBase::getAllFaceZoneFlags(
    const ZoneIdType faceZoneId,
    int & allFlags
) const
```

Get flags for a face zone.

Flags are returned in an integer using a 'C' style bit pattern.

The application developer using the API is assumed to have full knowledge of the bitwise operations in the C programming language and should consider this when writing the flags associated with the face zone.

Please note this is a Fluent solver concept for coupled walls to handle baffles or solid zones. Where a zone/shadow zone pair is defined: The first bit is reserved for the major zone. The second bit is reserved for the minor zone. Only if the shadow face zones pair is a wall (i.e. Conjugate Heat Transfer (CHT) case), the third bit is used to indicate that each zone is in fact a wall.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The zone Id, from which the flag will be get |
| allFlags | \[out] - The flags stored as a bit pattern |

### getApplicationName()

```cpp theme={null}
std::string ansys::CffBase::getApplicationName() const
```

`protected`

Obtains the application name that was set by calling [setApplicationName](#a37ac2d23d1b21376117cb574ea5aecd5) logging when writing a file.

**Returns**

* The application name

### getCellFaceZoneIds()

```cpp theme={null}
void ansys::CffBase::getCellFaceZoneIds(
    const ZoneIdType cellZoneId,
    std::list< ZoneIdType > & zoneIds
)
```

Get a list of face zones touching a cell zone.

**Parameters**

| Name | Description |
| - | - |
| cellZoneId | - cell zone ID to get the face zones for |
| zoneIds | - list of face zones IDs |

### getCellZoneInfo()

```cpp theme={null}
void ansys::CffBase::getCellZoneInfo(
    const ZoneIdType cellZoneId,
    const CellZoneInfoType cellZoneInfoType,
    int & info
) const
```

get certain zone level info for a cell zone.

**Parameters**

| Name | Description |
| - | - |
| cellZoneId | \[in] - The zone Id, of which the zone info will be get |
| cellZoneInfoType | \[in] - The zone info type to get, refer [CffCellZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaaffda1f82c7b51d603aff684c9ab0cd2) for all cell zone info types |
| info | \[out] - The actual data for the zone info type |

### getEdgeZoneInfo()

```cpp theme={null}
void ansys::CffBase::getEdgeZoneInfo(
    const ZoneIdType edgeZoneId,
    const EdgeZoneInfoType edgeZoneInfoType,
    int & info
) const
```

get certain zone level info for a edge zone.

**Parameters**

| Name | Description |
| - | - |
| edgeZoneId | \[in] - The zone Id, of which the zone info will be get |
| edgeZoneInfoType | \[in] - The zone info type to get, refer [CffEdgeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab5510fa8ae80e1c0e3f4d17207ac2cf8) for all edge zone info types |
| info | \[out] - The actual data for the zone info type |

### getEdgeZoneType()

```cpp theme={null}
void ansys::CffBase::getEdgeZoneType(
    const ZoneIdType edgeZoneId,
    EdgeZoneType & zoneType
) const
```

get the zone type of a edge zone.

Zone types of edges zones indicate edge type of the edge zone. For all defined edge zone types, see [CffEdgeZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gac0bfa43991cd91c6cc7045a2596e36bf)

**Parameters**

| Name | Description |
| - | - |
| edgeZoneId | \[in] - The zone Id, of which the zone type will be get |
| zoneType | \[out] - The edge zone type |

### getErrors()

```cpp theme={null}
std::vector< std::string > ansys::CffBase::getErrors(
    bool formatted = true,
    bool clear = false
) const
```

returns, as strings, any unprocessed error messages registered

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | formatted | - true if the message should be returned in a format that includes its type. |
| \[in] | clear | - clear errors on return |

**Returns**

* vector of messages

### getFaceCellZone0Ids() \[1/2]

```cpp theme={null}
void ansys::CffBase::getFaceCellZone0Ids(
    const ZoneIdType faceZoneId,
    std::list< ZoneIdType > & zoneIds
)
```

Get a list of cell zones on side zero of a face zone.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | - face zone ID to get the cell0 for |
| zoneIds | - list of cell0 zones IDs |

### getFaceCellZone0Ids() \[2/2]

```cpp theme={null}
void ansys::CffBase::getFaceCellZone0Ids(
    std::map< ZoneIdType , std::list< ZoneIdType > > &
)
```

`protected`

### getFaceCellZone1Ids() \[1/2]

```cpp theme={null}
void ansys::CffBase::getFaceCellZone1Ids(
    const ZoneIdType faceZoneId,
    std::list< ZoneIdType > & zoneIds
)
```

Get a list of cell zones on side one of a face zone.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | - face zone ID to get the cell1 for |
| zoneIds | - list of cell1 zones IDs |

### getFaceCellZone1Ids() \[2/2]

```cpp theme={null}
void ansys::CffBase::getFaceCellZone1Ids(
    std::map< ZoneIdType , std::list< ZoneIdType > > &
)
```

`protected`

### getFaceZoneInfo()

```cpp theme={null}
void ansys::CffBase::getFaceZoneInfo(
    const ZoneIdType faceZoneId,
    const FaceZoneInfoType faceZoneInfoType,
    int & info
) const
```

get certain zone level info for a face zone.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The zone Id, of which the zone info will be get |
| faceZoneInfoType | \[in] - The zone info type to get, refer [CffFaceZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga90bd9c961be9a1b7e7d014e9f04588e3) for all face zone info types |
| info | \[in] - The actual data for the zone info type |

### getFaceZoneProp()

```cpp theme={null}
bool ansys::CffBase::getFaceZoneProp(
    const ZoneIdType faceZoneId,
    const FaceZonePropType faceZonePropType
) const
```

### getFaceZoneType()

```cpp theme={null}
void ansys::CffBase::getFaceZoneType(
    const ZoneIdType faceZoneId,
    FaceZoneType & zoneType
) const
```

get the zone type of a face zone.

Zone types of edges zones indicate face element type of the face zone. For all defined face zone types, see [CffFaceZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga13c2dd97c5e14c90a074a2c603ec2bc3)

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The zone Id, of which the zone type will be get |
| zoneType | \[out] - The face zone type |

### getGroupNameForPhase()

```cpp theme={null}
std::string ansys::CffBase::getGroupNameForPhase(PhaseIdType phaseId) const
```

`protected`

### getInfos()

```cpp theme={null}
std::vector< std::string > ansys::CffBase::getInfos(
    bool formatted = true,
    bool clear = false
) const
```

returns, as strings, any unprocessed information messages registered

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | formatted | - true if the message should be returned in a format that includes its type. |
| \[in] | clear | - clear informtion messages on return |

**Returns**

* vector of messages

### getLocationModel()

```cpp theme={null}
const CffLocationModel * ansys::CffBase::getLocationModel() const
```

Get a query interface to the underlying topology model.

### getMeshId()

```cpp theme={null}
MeshIdType ansys::CffBase::getMeshId() const
```

Get the Identifier of the active mesh.

**Returns**

The Id of the active mesh

### getMeshSize()

```cpp theme={null}
void ansys::CffBase::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.

**Parameters**

| Name | Description |
| - | - |
| type | \[in] - Type of mesh size for which the value is to be obtained. |
| size | \[out] - The value for the type of mesh sizing requested. |

### getMeshUnits()

```cpp theme={null}
void ansys::CffBase::getMeshUnits(std::string & units) const
```

Obtains the unit of length the mesh is defined in.

By default the units are in the SI unit of length "m"

**Parameters**

| Name | Description |
| - | - |
| units | \[out] - The unit the mesh is defined in. |

### getMessageRegistrar()

```cpp theme={null}
CffMessageRegistrar * ansys::CffBase::getMessageRegistrar() const
```

Obtains a message registrar object so that external plug-ins can register messages with the API.

**Returns**

* A pointer to the message registration object.

Note: The registrar remains in the ownership of the API and should not be destroyed

### getNodeZoneInfo()

```cpp theme={null}
void ansys::CffBase::getNodeZoneInfo(
    const ZoneIdType nodeZoneId,
    const NodeZoneInfoType nodeZoneInfoType,
    int & info
) const
```

get certain zone level info for a node zone. \


**Parameters**

| Name | Description |
| - | - |
| nodeZoneId | \[in] - The zone Id, of which the zone info will be get |
| nodeZoneInfoType | \[in] - The zone info type to get, refer [CffNodeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gacc3f469fa6326c4b75b40d9e4f8313db) for all node zone info types |
| info | \[out] - The actual data for the zone info type |

### getNumZones()

```cpp theme={null}
size_t ansys::CffBase::getNumZones(const ZoneCategory zoneCategory) const
```

`virtual`

Returns the number of zones in a specific category.

**Parameters**

| Name | Description |
| - | - |
| zoneCategory | \[in] - The category to query. |

**Returns**

* The number of zones defined of that category.

### getPartitionId()

```cpp theme={null}
PartitionIdType ansys::CffBase::getPartitionId() const
```

### getPhaseIds()

```cpp theme={null}
void ansys::CffBase::getPhaseIds(PhaseIds & phaseIds) const
```

Obtain the Identifiers of all Phase.

**Parameters**

| Name | Description |
| - | - |
| phaseIds | \[out] - The Identifiers of all Phases. |

### getPhaseName() \[1/2]

```cpp theme={null}
PhaseName ansys::CffBase::getPhaseName(const PhaseIdType phaseId) const
```

Obtain the unique name a specific Phase.

This function is deprecated in favour of [getPhaseName(const PhaseIdType, PhaseName&) const](#ac0e318ff4148977296fd1e7e332a4cb2)

**Parameters**

| Name | Description |
| - | - |
| phaseId | \[in] - The Phase Identifier for which to obtain the name. |

**Returns**

* The unique name obtained.

### getPhaseName() \[2/2]

```cpp theme={null}
bool ansys::CffBase::getPhaseName(
    const PhaseIdType phaseId,
    PhaseName & phaseName
) const
```

Obtain the unique name a specific Phase.

**Parameters**

| Name | Description |
| - | - |
| phaseId | \[in] - The Phase Identifier for which to obtain the name. |
| phaseName | \[out] - The unique name obtained. |

**Returns**

* Whether the Phase supplied was valid.

### getSolverType()

```cpp theme={null}
SolverType ansys::CffBase::getSolverType() const
```

Obtains the owner of the data in the model.

**Returns**

* The name of the application that supplied the data.

### getSortedMinIdZoneId()

```cpp theme={null}
void ansys::CffBase::getSortedMinIdZoneId(
    const ZoneCategory zoneCategory,
    std::vector< std::pair< ElemIdType , ZoneIdType > > & minIdZoneId
) const
```

`protected`

### getTarget()

```cpp theme={null}
TargetCategory ansys::CffBase::getTarget() const
```

Get the target category for which the data is intended.

The target category defines whether the mesh and solution data is written as a CFF Solver Restart data or a CFF Post Processing file.

Typically for some applications, such as ANSYS Fluent, restart data may not be used for Post processing without careful understanding of how the restart data has been written.

**Returns**

* The category of data being processed. \


### getTimeLevel()

```cpp theme={null}
TimeLevelType ansys::CffBase::getTimeLevel() const
```

Get the current time level that is being read or written to the results data

### getTimeLevels()

```cpp theme={null}
const TimeLevels & ansys::CffBase::getTimeLevels() const
```

Get the time levels that have been read/written to the results data

### getWarnings()

```cpp theme={null}
std::vector< std::string > ansys::CffBase::getWarnings(
    bool formatted = true,
    bool clear = false
) const
```

returns, as strings, any unprocessed warning messages registered

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | formatted | - true if the message should be returned in a format that includes its type. |
| \[in] | clear | - clear warnings on return |

**Returns**

* vector of messages

### getZoneCategory()

```cpp theme={null}
ZoneCategory ansys::CffBase::getZoneCategory(const ZoneIdType zoneId) const
```

`protected`

get the zone category of a given zone by zone id

**Parameters**

| Name | Description |
| - | - |
| zoneId | \[in] - the zone id, of which zone, the zone category will be retrieved |

**Returns**

* zone category of all the zones indicated by the input argument, all supported zone categories are defined in [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga3cc9d15e024ad6722eb61bb422097ba5)

### getZoneIds()

```cpp theme={null}
void ansys::CffBase::getZoneIds(
    const ZoneCategory zoneCategory,
    ZoneIds & zoneIds
) const
```

`virtual`

Request the collection of zone Ids that are of a specific category. \


**Parameters**

| Name | Description |
| - | - |
| zoneCategory | \[in] - The category too query. |
| zoneIds | \[out] - The zone Ids in the category. |

Note: zoneIds is correctly sized by the function.

### getZoneSizeInfo()

```cpp theme={null}
void ansys::CffBase::getZoneSizeInfo(
    const ZoneIdType zoneId,
    const ZoneSizeType sizeType,
    ElemIdType & size
) const
```

Obtains a size setting of a zone.

Zones are defined with a dimension, number of objects, and the object Id range (start Id and end Id). This function allows the user to obtain the value of each individual size setting independently. The type of setting is defined by an enum [ZoneSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga596f56359ce823cc5274c3a7626a485a).

**Parameters**

| Name | Description |
| - | - |
| zoneId | \[in] - The id of the zone for which the value is being set. |
| sizeType | \[in] - The setting being defined. e.g. CFF\_ZONE\_DIMENSION |
| size | \[out] - The value associated with the zone or 0 if in error. |

### getZoneStringInfo()

```cpp theme={null}
void ansys::CffBase::getZoneStringInfo(
    const ZoneIdType zoneId,
    const ZoneStringInfoType type,
    std::string & info
) const
```

Obtains a string value associated with a zone.

Typically a mesh zone will have a name that identifies it, it may also have a type represented as a string.

To obtaint the appropriate value [ZoneStringInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga302285ede15d899051c0478f5b8190d6) is passed to the function to indicate the type of setting being requested.

**Parameters**

| Name | Description |
| - | - |
| zoneId | \[in] - The Zone Id for which information is to be obtained. |
| type | \[in] - The Type of string setting being obtained. |
| info | \[out] - The value of the setting. |

### hasError()

```cpp theme={null}
bool ansys::CffBase::hasError() const
```

returns whether there are unprocessed error messages registered.

**Returns**

* true if messages are unprocessed, false otherwise

### hasInfo()

```cpp theme={null}
bool ansys::CffBase::hasInfo() const
```

returns whether there are unprocessed informative messages registered.

**Returns**

* true if messages are unprocessed, false otherwise

### hasWarning()

```cpp theme={null}
bool ansys::CffBase::hasWarning() const
```

returns whether there are unprocessed warning messages registered.

**Returns**

* true if messages are unprocessed, false otherwise

### initializeVariableAttributeProvider()

```cpp theme={null}
void ansys::CffBase::initializeVariableAttributeProvider(
    const SolverType & solverType,
    const std::string & variableTarget
)
```

`protected`

### initLocationModel()

```cpp theme={null}
virtual void ansys::CffBase::initLocationModel() const
```

`inline` `protected` `virtual`

### isSupported()

```cpp theme={null}
CffReadable ansys::CffBase::isSupported(const std::string & version) const
```

`protected`

Check whether the version can be read by this version of the CFF SDK.

**Parameters**

| Name | Description |
| - | - |
| version | \[in] - The version number string representing the data being processed. |

**Returns**

* CFF\_READABLE\_OK if the API can read the data, CFF\_READABLE\_WARN if the data can be read partially or with warnings, CFF\_READABLE\_ERROR if the data is incompatible with this version of the API.

### locationModel()

```cpp theme={null}
CffLocationModel * ansys::CffBase::locationModel() const
```

`protected`

### registerSettingsParser()

```cpp theme={null}
void ansys::CffBase::registerSettingsParser(CffSettingsParser * parser)
```

Sets a parser for processing settings.

Settings are typically stored within a CFF file as a set of strings in order to provide common access to these settings a settings parser may be provided as an alternative to those installed by default that read the strings, manipulate the settings and return them in a form that is common across all applications.

It is unlikley that a user will need to supply an alternative parser

**Parameters**

| Name | Description |
| - | - |
| parser | \[in] - The parser to install. |

### setActivePhase() \[1/2]

```cpp theme={null}
bool ansys::CffBase::setActivePhase(const PhaseName & phaseName) const
```

`protected`

### setActivePhase() \[2/2]

```cpp theme={null}
bool ansys::CffBase::setActivePhase(PhaseIdType phaseId) const
```

`protected`

### setAllFaceZoneFlags()

```cpp theme={null}
void ansys::CffBase::setAllFaceZoneFlags(
    const ZoneIdType faceZoneId,
    const int allFlags
)
```

Set flags for a face zone.

Flags are supplied in an integer using a 'C' style bit pattern.

The application developer using the API is assumed to have full knowledge of the bitwise operations in the C programming language and should consider this when writing the flags associated with the face zone.

Please note this is a Fluent solver concept for coupled walls to handle baffles or solid zones. Where a zone/shadow zone pair is defined: The first bit is reserved for the major zone. The second bit is reserved for the minor zone. Only if the shadow face zones pair is a wall (i.e. Conjugate Heat Transfer (CHT) case), the third bit is used to indicate that each zone is in fact a wall.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The Id of the zone, for which the flags will be set |
| allFlags | \[in] - The flags stored as a bit pattern |

### setApplicationName()

```cpp theme={null}
void ansys::CffBase::setApplicationName(const std::string & applicationName)
```

Sets an application name for error purposes and when logging to a file.

**Parameters**

| Name | Description |
| - | - |
| applicationName | \[in] - The application name to set |

### setCellFaceZoneIds()

```cpp theme={null}
void ansys::CffBase::setCellFaceZoneIds(
    const std::map< ZoneIdType , std::list< ZoneIdType > > & cfz
)
```

`protected`

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.

**Parameters**

| Name | Description |
| - | - |
| cfz | \[in] - A std map, for each entity in the map, the key is the cell zone id, the value is a list, whose elements are face zone ids of the corresponding cell zone |

### setCellZoneInfo()

```cpp theme={null}
void ansys::CffBase::setCellZoneInfo(
    const ZoneIdType cellZoneId,
    const CellZoneInfoType cellZoneInfoType,
    const int info
)
```

set certain zone level info for a cell zone.

**Parameters**

| Name | Description |
| - | - |
| cellZoneId | \[in] - The zone Id, of which the zone info will be set |
| cellZoneInfoType | \[in] - The zone info type to set, refer [CffCellZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gaaffda1f82c7b51d603aff684c9ab0cd2) for all cell zone info types |
| info | \[in] - The actual data for the zone info type |

### setDebugOn()

```cpp theme={null}
void ansys::CffBase::setDebugOn(bool debug)
```

`virtual`

Turn on/off debugging information.

**Parameters**

| Name | Description |
| - | - |
| debug | \[in] - If true debugging is turned on, otherwise turned off |

### setEdgeZoneInfo()

```cpp theme={null}
void ansys::CffBase::setEdgeZoneInfo(
    const ZoneIdType edgeZoneId,
    const EdgeZoneInfoType edgeZoneInfoType,
    const int info
)
```

set certain zone level info for a edge zone.

**Parameters**

| Name | Description |
| - | - |
| edgeZoneId | \[in] - The zone Id, of which the zone info will be set |
| edgeZoneInfoType | \[in] - The zone info type to set, refer [CffEdgeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gab5510fa8ae80e1c0e3f4d17207ac2cf8) for all edge zone info types |
| info | \[in] - The actual data for the zone info type |

### setEdgeZoneType()

```cpp theme={null}
void ansys::CffBase::setEdgeZoneType(
    const ZoneIdType edgeZoneId,
    const EdgeZoneType zoneType
)
```

set zone type of a edge zone. \


Zone types of edges zones indicate edge type of the edge zone. For all defined edge zone types, see [CffEdgeZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gac0bfa43991cd91c6cc7045a2596e36bf)

**Parameters**

| Name | Description |
| - | - |
| edgeZoneId | \[in] - The zone Id, to which the zone type will be set |
| zoneType | \[in] - The edge zone type |

### setFaceCellZone0Ids()

```cpp theme={null}
void ansys::CffBase::setFaceCellZone0Ids(
    const std::map< ZoneIdType , std::list< ZoneIdType > > & fc0
)
```

`protected`

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.

**Parameters**

| Name | Description |
| - | - |
| fc0 | \[in] - A std map, for each entity in the map, the key is the face zone id, the value is a list, whose elements are c0 cell zone ids of the corresponding face zone |

### setFaceCellZone1Ids()

```cpp theme={null}
void ansys::CffBase::setFaceCellZone1Ids(
    const std::map< ZoneIdType , std::list< ZoneIdType > > & fc1
)
```

`protected`

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.

**Parameters**

| Name | Description |
| - | - |
| fc1 | \[in] - A std map, for each entity in the map, the key is the face zone id, the value is a list, whose elements are c1 cell zone ids of the corresponding face zone |

### setFaceZoneInfo()

```cpp theme={null}
void ansys::CffBase::setFaceZoneInfo(
    const ZoneIdType faceZoneId,
    const FaceZoneInfoType faceZoneInfoType,
    const int info
) const
```

set certain zone level info for a face zone.

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The zone Id, of which the zone info will be set |
| faceZoneInfoType | \[in] - The zone info type to set, refer [CffFaceZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga90bd9c961be9a1b7e7d014e9f04588e3) for all face zone info types |
| info | \[in] - The actual data for the zone info type |

### setFaceZoneProp()

```cpp theme={null}
void ansys::CffBase::setFaceZoneProp(
    const ZoneIdType faceZoneId,
    const FaceZonePropType faceZonePropType
)
```

### setFaceZoneType()

```cpp theme={null}
void ansys::CffBase::setFaceZoneType(
    const ZoneIdType faceZoneId,
    const FaceZoneType zoneType
)
```

set zone type of a face zone.

Zone types of edges zones indicate face element type of the face zone. For all defined face zone types, see [CffFaceZoneType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#ga13c2dd97c5e14c90a074a2c603ec2bc3)

**Parameters**

| Name | Description |
| - | - |
| faceZoneId | \[in] - The zone Id, to which the zone type will be set |
| zoneType | \[in] - The face zone type |

### setMeshContext()

```cpp theme={null}
bool ansys::CffBase::setMeshContext(
    MeshId meshId,
    TargetCategory target,
    PartitionIdType partition,
    UpdateMethod method = UpdateMethod::CaseAndResults
)
```

`protected`

### setMeshId()

```cpp theme={null}
void ansys::CffBase::setMeshId(const MeshIdType meshId)
```

Set the Identifier for active mesh being read or written.

**Parameters**

| Name | Description |
| - | - |
| meshId | \[in] - The Id of the mesh |

### setMeshSize() \[1/2]

```cpp theme={null}
void ansys::CffBase::setMeshSize(
    const ElemIdType nDims,
    const ElemIdType nodesCount,
    const ElemIdType edgesCount,
    const ElemIdType facesCount,
    const ElemIdType cellsCount
)
```

`protected`

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.

**Parameters**

| Name | Description |
| - | - |
| nDims | \[in] - the dimension of mesh, if the mesh is 3D, then nDims should be 3 |
| nodesCount | \[in] - total number of nodes |
| edgesCount | \[in] - total number of edges, |
| facesCount | \[in] - total number of faces |
| cellsCount | \[in] - total number of cells |

### setMeshSize() \[2/2]

```cpp theme={null}
void ansys::CffBase::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.

Ahead of any mesh being written, the mesh dimension and global mesh sizes must be set. Typically the number of Cells, Faces and Nodes must be supplied. The type of the data being set is defined using the [MeshSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga03dbd95a6fee8297703cdb73a0be5e19) enumerated type

**Parameters**

| Name | Description |
| - | - |
| type | \[in] - The type of mesh size for which the value is to be set. |
| size | \[in] - The value to be set. |

### setMeshUnits()

```cpp theme={null}
void ansys::CffBase::setMeshUnits(const std::string & units = "m")
```

Define the units of length the mesh is defined in.

By default the units are in the SI unit of length "m"

**Parameters**

| Name | Description |
| - | - |
| units | \[in] - The units the mesh is defined in. |

### setNodeZoneInfo()

```cpp theme={null}
void ansys::CffBase::setNodeZoneInfo(
    const ZoneIdType nodeZoneId,
    const NodeZoneInfoType nodeZoneInfoType,
    const int info
) const
```

set certain zone level info for a node zone. \


**Parameters**

| Name | Description |
| - | - |
| nodeZoneId | \[in] - The zone Id, of which the zone info will be set |
| nodeZoneInfoType | \[in] - The zone info type to set, refer [CffNodeZoneInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__enums.md#gacc3f469fa6326c4b75b40d9e4f8313db) for all node zone info types |
| info | \[in] - The actual data for the zone info type |

### setPartitionId()

```cpp theme={null}
void ansys::CffBase::setPartitionId(const PartitionIdType pId)
```

### setReadNCIOn()

```cpp theme={null}
void ansys::CffBase::setReadNCIOn(bool nci)
```

`virtual`

Turn on/off non-conformal interface reading.

**Parameters**

| Name | Description |
| - | - |
| nci | \[in] - If true, NCI reading is enabled |

### setSolverType()

```cpp theme={null}
void ansys::CffBase::setSolverType(SolverType solverType)
```

`virtual`

Set the name of the application that is supplying the data.

When supplyingn a model this function should be called to definie the owner of the data that is in the model. This name is used automatically by the API to determine the CffVariableAttributeProvider that is used to populate the [Ansys Common Fluids Solution Data Model](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_solution_d_m.md).

**Parameters**

| Name | Description |
| - | - |
| solverType | \[in] - String representing the application name writing the data e.g. "ANSYS\_FLUENT". |

### setTarget()

```cpp theme={null}
void ansys::CffBase::setTarget(const TargetCategory target)
```

Set the target category for which the data is intended.

The target category defines whether the mesh and solution data is written as a CFF Solver Restart data or a CFF Post Processing file.

Restart data is typically intended for use within the solver that wrote the data. This sometimes means that the data read from the file will not be suitable for Post Processing without further manipulation using domain knowledge. See [CFF Restart Format](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_file_formats_overview.md#CFFRestart).

Post processing data is always written corrected and in a simplified model that makes Post Processing in ANSYS Ensight quicker. See [CFF Post Format](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_file_formats_overview.md#CFFPost)

**Parameters**

| Name | Description |
| - | - |
| target | - The category of data being definied. |

### setTimeLevel()

```cpp theme={null}
bool ansys::CffBase::setTimeLevel(TimeLevelType timeLevel) const
```

`protected`

### setVariableAttributeProvider()

```cpp theme={null}
void ansys::CffBase::setVariableAttributeProvider(
    const CffVariableAttributeProvider * vap,
    bool takeOwnership = false
)
```

Register an alternative variable attribute provider.

Often the user may wish to supply variable attributes when reading or writing data. In the reading case this may be because the variable attributes are not in the file and a default provider doesn't exist. When writing the data this may also be the case if the attributes can be supplied from an alternative data source such as a configuration file. \


**Parameters**

| Name | Description |
| - | - |
| vap | \[in] - The alternative variable attribute provider. |
| takeOwnership | \[in] - The managementof the memory pointed to by `vap` is controlled by the CFFAPI if true or remains with the user otherwise. In the later case the user should call the function again with a null pointer to remove the reference in the API when no longer required. |

### setZoneAdjacency()

```cpp theme={null}
void ansys::CffBase::setZoneAdjacency()
```

`protected` `virtual`

### setZoneCategory()

```cpp theme={null}
void ansys::CffBase::setZoneCategory(
    const ZoneIds & zoneIds,
    const ZoneCategory zoneCategory
)
```

`protected`

set the zone categories of all zones of the same zone category

This function can be used to set zone categories of a batch of zones with the same zone category.

**Parameters**

| Name | Description |
| - | - |
| zoneIds | \[in] - zone ids that have the same zone category indicated by the second argument |
| zoneCategory | \[in] - zone category of all the zones indicated by the first argument, all supported zone categories are defined in [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga3cc9d15e024ad6722eb61bb422097ba5) |

### setZoneIds()

```cpp theme={null}
void ansys::CffBase::setZoneIds(
    const ZoneCategory zoneCategory,
    const ZoneIds & zoneIds
)
```

Define the zones that are of a specific category.

Zones define collections of nodes, faces or cells. This function defines the zones that exist a specific [ZoneCategory](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga3cc9d15e024ad6722eb61bb422097ba5).

**Parameters**

| Name | Description |
| - | - |
| zoneCategory | \[in] - The category of the zones being supplied. |
| zoneIds | \[in] - Collection of zones Ids that are of category. |

### setZoneSizeInfo()

```cpp theme={null}
void ansys::CffBase::setZoneSizeInfo(
    const ZoneIdType zoneId,
    const ZoneSizeType sizeType,
    const ElemIdType size
)
```

Sets a size setting of a zone.

Zones are defined with a dimension, number of objects, and the object Id range (start Id and end Id). This function allows the setting of each individual size independently. The type ofsetting is defined by an enum [ZoneSizeType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga596f56359ce823cc5274c3a7626a485a).

**Parameters**

| Name | Description |
| - | - |
| zoneId | \[in] - The id of the zone for which the value is being set. |
| sizeType | \[in] - The setting being defined. e.g. CFF\_ZONE\_DIMENSION |
| size | \[in] - The value being set. e.g. 3 |

### setZoneStringInfo()

```cpp theme={null}
void ansys::CffBase::setZoneStringInfo(
    const ZoneIdType zoneId,
    const ZoneStringInfoType type,
    const std::string & info
)
```

Sets a string value associated with a zone.

Typically a mesh zone will have a name that identifies it, it may also have a type represented as a string.

To set the appropriate value [ZoneStringInfoType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/group__typedefs.md#ga302285ede15d899051c0478f5b8190d6) is passed to the function to indicate the type of setting being supplied.

**Parameters**

| Name | Description |
| - | - |
| zoneId | \[in] - The Id of the Zone for which information is to be set. |
| type | \[in] - The type of string setting being set. |
| info | \[in] - The value of the setting being set. |

### solutionModel()

```cpp theme={null}
CffSolutionModel * ansys::CffBase::solutionModel() const
```

`protected`

### updateData()

```cpp theme={null}
virtual bool ansys::CffBase::updateData(DataClass)
```

`inline` `protected` `virtual`

## Member Data Documentation

### \_data

```cpp theme={null}
std::unique_ptr<DataInterface> ansys::CffBase::_data
```

`protected`

### \_defaultSettingsPath

```cpp theme={null}
std::string ansys::CffBase::_defaultSettingsPath = "settings"
```

`static`

### \_varAttrProvider

```cpp theme={null}
std::unique_ptr<const CffVariableAttributeProvider> ansys::CffBase::_varAttrProvider
```

`protected`
