> ## 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.

# Project API

## The Project Concept

A [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project) is an index file that provides hierarchical organization for file references and their associated properties ([Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md)). The files can be organized locally within a project folder or elsewhere as defined by a file [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md). The index file is an XML file (file extension: \*.flprj), which is read, written, and modified using the [ansys::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/namespaceansys_1_1_project) API.

There are two types of project storage:

* **Managed storage**: A [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project) with a project folder: A folder is created side by side with the index file. All files imported to the project are copied into the project folder. Erasing the project will erase all files. For example

  ```cpp theme={null}
  FILENAME.flprj
  FILENAME.cffdb/
    file
    folder/
    folder/file
  ```
* **Free storage**: [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project) is an index file only. All files are referenced as either a relative or global/remote path. Relative paths are calculated from the project file location.

  ```cpp theme={null}
  FILENAME.flprj
  file     (indexed as ./file)
  folder/file   (indexed as ./folder/file)
  /home/user/file   (indexed as /home/user/file)
  ```

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

The project internal hierarchy is organized using [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_path.md). The file or folder references are stored as a [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md).

A [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_path.md) will define a unique location in the project, the file name of a path entry does not need to match the [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md) filename.

```cpp theme={null}
/Meshes/file.cas  -> ./file.cas
/Meshes/database/  -> /share/all/mesh-database/
```

## Project Buiding Blocks

At the lowest level, the project contains only either:

* **Files**
* **Folders**: A container (typically a directory) containing multiple **Files**
* **Links**: A link to another project location

All project items will define the following properties:

* **Name**: The name of the item in the project, used in the access [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_path.md)
* **[Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md)**: A dictionary of properties (variable -> value)

Files and folders will define a [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md) to a storage location.

* If the [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md) is empty, the file or folder is only stored in the project index and can be seen as a virtual filesystem. Virtual items can have [Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md).
* The [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_u_r_l.md) can point to a location currently accessible, or to a file that is removed or to a file that will be created in the future in that location.

## Simulations

The [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project) allows storage of any file or folders. However, specialized concepts specific to computational applications are defined. \


* **[SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_sim_project.md)**: Specialized version of [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_project), set up to manage the [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_simulation.md) and its Results.
* **[Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_simulation.md)**: A folder stored in the project, containing a Case and its [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_result.md) files, stored into [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md) subfolders.
* **[Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md)**: A subfolder of a [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_simulation.md), containing Results grouped in [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) subfolders.
* **[Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md)**: Groups of [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_result.md) files. For example, an [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) might be recorded for each time step or parametric design point. Typically, an [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) is created as a virtual subfolder, as all of the files are stored in the [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md) folder, but the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) is used to regroup the files created by each step.
* **[Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_result.md)**: One output file.

[Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_simulation.md), [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md), and [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) are project folders. The storage policy might define them to be actual folders on disk, or project-only concepts.

For example, for a storage policy in which [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md) is virtual folders, all Results are side by side in the [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md) folder on the disk:

```cpp theme={null}
Sim1/demo.cas                   -> Sim1/demo.cas
Sim1/run1/out1/demo.000001.dat  -> Sim1/run1/demo.000001.dat
Sim1/run1/out2/demo.000002.dat  -> Sim1/run1/demo.000002.dat
Sim1/run1/out3/demo.000003.dat  -> Sim1/run1/demo.000003.dat
```

## Iterators

All operations in the project are done through the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md). The [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) is a pointer to a location in the project. It is possible to obtain the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) for a specific [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_path.md), or to navigate through the children, parent, or links from an [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_iterator.md) or its [Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_metadata.md).

[Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_simulation.md), [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_run.md), [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_output.md), and [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_project_1_1_result.md) are specialized iterators, offering extra functions and validations for the file/folder at that location.
