> ## 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::dpf::locations Struct Reference

Predefined location quantities.

`#include <dpf_api_base.h>`

## Static Public Member Functions

| Type | Name |
| - | - |
| static std::vector\< [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) > const & | [all](#a271a9fed8a1f57c015715167a8ce72c0) () |
| static void | [add\_custom](#a2b734a87208388ed01d8cb587043405b) ([Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) const &) |

## Static Public Attributes

| Type | Name |
| - | - |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [nodal](#aa4e1967b0838d8597200c606c8564d29) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [elemental](#a3f66169a86ab935fb398b3fdde98bb04) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [elemental\_nodal](#a0bda534055805adc4c08bece34989ff3) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [elemental\_nodal\_centroid](#a5b54316cebce849e6a8489d19a990246) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [overall](#ada5a62dea9a6a1bf156f90282a273959) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [nodal\_elemental](#aba56d24e91e52e4742ee5505dff04b94) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [faces](#a111716841842157a978ebebdc9c503b6) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [elemental\_and\_faces](#a0a70014790184f7fd2e4341c2bdb7711) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [body](#acfb36fa3e6c22d12b971fdf941d6dab8) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [contact](#ae0384994ee793ef9de351b28c49ba706) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [joint](#a0a7d57a4476a34178090d4fa96f0c550) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [topology](#a3049c32b1dc96441810bd53803916a58) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [udf\_criteria](#af0cfa3922b89f1b5be079a47a714241a) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [time\_step](#abc48364ef6b184ddf696099c9a2993cd) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [time\_set](#a3cf1bbc2ad6d8b8f6173e83b5118031a) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [harmonic\_index](#a46ac72d7066346bc309dfb44de1a20cf) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [phase](#abaf9f2158d14707096139ab5eb27d70d) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [species](#a76bdfc819d94d708b849281adf480677) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [zone](#a2c1aea4cc98bb70ffb146a163121b8e4) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [band](#a6441fe6518684351e3f3f7ba52396615) |
| static const [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [unknown](#a223dc0f57d600b9acf15ac72a603835c) |

## Detailed Description

Predefined location quantities.

Results are evaluated at locations.

**See also**

[Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md)

## Member Function Documentation

### add\_custom()

```cpp theme={null}
static void ansys::dpf::locations::add_custom(Location const &)
```

`static`

Adds a custom defined location.

### all()

```cpp theme={null}
static std::vector< Location > const & ansys::dpf::locations::all()
```

`static`

Gets all user-defined and predefined locations.

**Returns**

All locations.

## Field Documentation

### band

```cpp theme={null}
const Location ansys::dpf::locations::band
```

`static`

Predefined band location.

### body

```cpp theme={null}
const Location ansys::dpf::locations::body
```

`static`

Predefined body location.

### contact

```cpp theme={null}
const Location ansys::dpf::locations::contact
```

`static`

Predefined contact location.

### elemental

```cpp theme={null}
const Location ansys::dpf::locations::elemental
```

`static`

Predefined elemental location.

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/AveragingTest_8cpp-example.md), [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataExport_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ModelTest_8cpp-example.md), [OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md), and [WorkflowExamples.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/WorkflowExamples_8cpp-example.md).

### elemental\_and\_faces

```cpp theme={null}
const Location ansys::dpf::locations::elemental_and_faces
```

`static`

Predefined elemental\_and\_faces location.

### elemental\_nodal

```cpp theme={null}
const Location ansys::dpf::locations::elemental_nodal
```

`static`

Predefined elemental\_nodal location.

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/AveragingTest_8cpp-example.md), and [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md).

### elemental\_nodal\_centroid

```cpp theme={null}
const Location ansys::dpf::locations::elemental_nodal_centroid
```

`static`

Predefined elemental\_nodal\_centroid location.

### faces

```cpp theme={null}
const Location ansys::dpf::locations::faces
```

`static`

Predefined faces location.

### harmonic\_index

```cpp theme={null}
const Location ansys::dpf::locations::harmonic_index
```

`static`

Predefined harmonic\_index location.

### joint

```cpp theme={null}
const Location ansys::dpf::locations::joint
```

`static`

Predefined joint location.

### nodal

```cpp theme={null}
const Location ansys::dpf::locations::nodal
```

`static`

Predefined nodal location.

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/AveragingTest_8cpp-example.md), [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataExport_8cpp-example.md), [OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md), [ResultTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ResultTest_8cpp-example.md), and [WorkflowExamples.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/WorkflowExamples_8cpp-example.md).

### nodal\_elemental

```cpp theme={null}
const Location ansys::dpf::locations::nodal_elemental
```

`static`

Predefined nodal\_elemental location.

### overall

```cpp theme={null}
const Location ansys::dpf::locations::overall
```

`static`

Predefined overall location.

### phase

```cpp theme={null}
const Location ansys::dpf::locations::phase
```

`static`

Predefined phase location.

### species

```cpp theme={null}
const Location ansys::dpf::locations::species
```

`static`

Predefined species location.

### time\_set

```cpp theme={null}
const Location ansys::dpf::locations::time_set
```

`static`

Predefined time\_set location.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataExport_8cpp-example.md).

### time\_step

```cpp theme={null}
const Location ansys::dpf::locations::time_step
```

`static`

Predefined time\_step location.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataExport_8cpp-example.md), and [OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/OperatorsApis_8cpp-example.md).

### topology

```cpp theme={null}
const Location ansys::dpf::locations::topology
```

`static`

Predefined topology location.

### udf\_criteria

```cpp theme={null}
const Location ansys::dpf::locations::udf_criteria
```

`static`

Predefined udf\_criteria location.

### unknown

```cpp theme={null}
const Location ansys::dpf::locations::unknown
```

`static`

Predefined unknown location.

### zone

```cpp theme={null}
const Location ansys::dpf::locations::zone
```

`static`

Predefined zones location.
