> ## 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 Common Fluids Settings Data Model

## Settings Data Model

The Setttings Data Model stores a number of keys (strings) that are associated with values. The values may be returned in a number of data types via the `CffVariant` type.

The model is relatively simple and there are functions in the API that return the available keys:

```cpp theme={null}
CffProvider::getSettingsKeys
```

and also the values associated with them:

```cpp theme={null}
CffProvider::getSettings
```

Currently, only a few settings are common across all solvers that write the model, but in the future, more settings will be standardized, allowing a more common approach to solver configuration processing.

### Physics Data Model

The Physics Data Model is part of the [Settings Data Model](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_settings_d_m.md).

There are several types of physics objects, including `domains`, `subdomains`, `boundaries`.

Use the object type as defined above to find out the names of all objects of that type by calling [CffProvider::getSettings](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_provider.md#ac1d7c0645d0ebab207214d92126b49c6) to access the settings, for example:

```cpp theme={null}
std::vector<std::string> domainNames =
  provider->getSettings(ansys::DataClass::CFF_CASE, "domains").asStringVector();
```

which will return an array of domain names.

One of the primary functions of the physics settings is to provide the `location` for each of the objects.

To obtain the location, do the following:

```cpp theme={null}
std::string> location =
  provider->getSettings(ansys::DataClass::CFF_CASE, "domains/<name>/location").asString();
```

where `<name>` is one of the domain names returned previously.

You should use the [Topology Data Model](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_topology_d_m.md) to resolve the location to the cell zones.
