> ## 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::Project::SimProject Class Reference

Main object for [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) based projects.

`#include "SimProject.hpp"`

Inheritance diagram for ansys::Project::SimProject:

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

## Public Member Functions

| Type | Name |
| - | - |
| | [SimProject](#a3f922fab8e5b09aae55c41257f05a2de) () Constructor - See [Project::Project()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ae26ec5c1449c349cc767bdae9deb4339) |
| virtual | [\~SimProject](#abb78a8446d3f92224e4fa9ab84bd7256) () Constructor - See [Project::\~Project()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#af534abc0e2d1096eab9228880f007688) |
| [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [importMesh](#a692692dce4c38537f5dc51d06f034165) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter, std::string pName="") Import a mesh in a Mesh/ subfolder of the project. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getMesh](#a9b5bbd714641b81f5bb636599cc1756f) (const std::string \&pName) const Retrieve Mesh iterator from Mesh/ folder, by name. |
| std::vector\< std::string > | [getMeshes](#a9b541a3a08b20005c01b3838f4599736) () const Retrieve all mesh names from Mesh/ folder. |
| [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [importGeometry](#ac3d9e9f2012f9f7e232b80bffeeb0bd9) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter, std::string pName="") Import a CAD in a Geo/ subfolder of the project. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getGeometry](#af88b8c71345a8ecdc56d0568ca0a84cd) (const std::string \&pName) const Retrieve Geometry iterator from Geometry/ folder, by name. |
| std::vector\< std::string > | [getGeometries](#a3fc6747c70b590316b24ab5825faf8b4) () const Retrieve all geometry file names from Geometry/ folder. |
| [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [importItem](#a2a16bd7c5fc760e068129a1a0561897c) (const std::string \&pCategory, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter, std::string pName="") Import a file of any type in the Type/ subfolder of the project. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getItem](#a9a791ab40e74721fe999e3c9321c5d71) (const std::string \&pCategory, const std::string \&pName) const Retrieve Item iterator from Category/ folder, by name. |
| std::vector\< std::string > | [getItems](#a2837737e7e257a82c6d646e126010f08) (const std::string \&pCategory) const Retrieve all item names from from Category/ folder. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [newSimulation](#acc4e7086a02d22785934b3f5e2a0039c) (const std::string \&pName, const std::string \&pType) Create a new [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) folder in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md). |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getSimulation](#acb62ea25eef0ff2ff2c41750a4353202) (const std::string \&pName) const Retrieve a [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md), by name. |
| std::vector\< std::string > | [getSimulations](#ae8f0751aa1f3e286ed2397666856f984) () const Retrieve the list of [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) names in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md). |
| [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [removeSimulation](#a4756ec52234c2f0f0e6609f4a10510ab) (const std::string \&pName, bool pFlagErase) Remove a named simulation from the project. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [duplicateSimulation](#aa3d626edc79bb7a9b3428dfea5fe3809) (const std::string \&pOld, const std::string \&pNew) Duplicate a simulation to a new name. |
| void | [setCurrentSimulation](#ade8761d99b01d5fe7e75a68f944c4fa3) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pSim) Set the current simulation link - i.e. the 'default' simulation. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getCurrentSimulation](#a297140351ca2b01c66ec8e0d2d0b43ad) () const Returns the current simulation link - if any. |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [checkProject](#a9d89fa7443d65f1e2ad3befee9da068d) ([CheckProjectInfo](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/structansys_1_1_project_1_1_project_1_1_check_project_info.md) \&pInfo) const Check the currently loaded project for validity. |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [upgradeProject](#a4f6fa68a1de203d8ee8c306f03977422) () Upgrade project to current version. |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [copyMetadata](#a93f249fd03b7932c1ba5c83865f1c1b4) (const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pSource, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pTarget) const Copy metadata between two project items. |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [getInheritedMetadata](#af0007299e8f3e397ef30c8736a12d873) (const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter, [MetadataConst](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_metadata_const.md) \&pMeta) Return the metadata for the current iterator and include relevant data from parent iterators. |

> [accordion] Public Member Functions inherited from ansys::Project::Project
>
> Public Member Functions inherited from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project)
>
> | Type | Name |
> | - | - |
> | | [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ae26ec5c1449c349cc767bdae9deb4339) () Constructor. |
> | virtual | [\~Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#af534abc0e2d1096eab9228880f007688) () Destructor - Will close the project and release the lock (if any). |
> | bool | [isLoaded](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a191c8a3067fcd15685409d5102c6f3b0) () const Indicates if a project is currrently opened (or newly created with success). |
> | virtual bool | [isProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a1c91ce45672d515fa7c6f424506a3435) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation) Check if a filename is a project file (fast read, not entirely checked) |
> | virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [newProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a747d6326df2792b9830c54daf538071b) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation) Create a project at the specified [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md). |
> | virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [openProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a20e00fbfad7b9823356b635a18a701b3) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation, bool pReadOnly=false) Open a project at the specified [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md). |
> | virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [openProjectFromString](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a100dd4edabdd2f988cd4b7921ba597e5) (const std::string \&pData, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pProjectLocation, bool pReadOnly=false) Open a project by reading its data from a string. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [saveProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a5c10d316ae316b4e77b77707986115d5) () Save the currently opened project. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [saveProjectToString](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#aff3afe814f2bc3189971d237f31b8543) (std::string \&pString) Save the currently opened project to an XML string. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [saveAsProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a5030299e80c55a495dc39dc31ccc6692) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation, bool pFlagCopyFiles=false, bool pFlagCopyExternal=false) Save the project index file to a new location. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [exportProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#af431224de932d828ab1d824978d4caa0) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation, bool pFlagCopyExternal=true, bool pFlagEnforceStructure=false) Export the project to a new location (keeping current project opened and unchanged). |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [archiveProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a0c8749326d29338aac4be6c06a49570f) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pTargetArchive) const Compress the project to an archive (keeping current project opened and unchanged) |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [archiveProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a2f486b3e690db9742eab5a2775d0b74d) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pTargetArchive, const std::vector\< std::string > \&pListIgnore) const Compress the project to an archive (keeping current project opened and unchanged) |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [forkProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ac3f62102beca5155952fcf14114ef98c) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pNewProjectFilename, [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project) \*\&pProject) Split the project at the specified location to a subproject. |
> | bool | [isSubProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a6b805c7b989591d883a96b7c59e1dd74) () const |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [loadSubProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a95f212b1ae0044de8b53d21a08e2ee0e) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pIter) Load the specified subproject. |
> | std::vector\< [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) > | [getSubProjects](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#acd6ec65e720da76f11e297f60a74e3bc) () Return the list of subprojects stored in the project. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [loadAllSubProjects](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#aa954c845eaa067de83e84a20e349e3b3) () Load all subprojects stored in the project. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [join](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a3ebf27d2961a0be568411e4681e8be95) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pIter) Join the subproject back to the master project. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [getProjectLockInfo](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a1551943e6a65f018080a31a4bcdf1b80) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation, std::string \&pLockInfo) Indicates if the specified project is locked and retrieve the lock information. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [eraseProjectLock](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a37831e1a7dc4360781de4a9c44b88d5b) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pLocation) Erase the project lock. |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [copyItemTo](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a1c8960088174c3f898449c35d492367c) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pSource, [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project) \&pTarget, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pTargetFolder=[Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md)(), bool pRecursive=false) Copy the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) item to the target project. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [closeProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a940472a5df9b1275453c6880c68fb156) () Close the project and release the lock. |
> | const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) & | [getProjectLocation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a68e78169e875091055df1ea930bb1ac9) () const Get the [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) of the project file with path. |
> | [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) | [getProjectFolder](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#aa27f007a5fbbd5fd099cb681b6f3f186) () const Get the [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) of the project folder, if enabled by policy. |
> | [ProjectStoragePolicy](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project_storage_policy.md) & | [getStoragePolicy](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a554127e81daa6f0836dffcf33d17988c) () Return the StoragePolicy for the current project or to configure before [newProject()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a747d6326df2792b9830c54daf538071b). |
> | const [ProjectStoragePolicy](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project_storage_policy.md) & | [getStoragePolicy](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a90358d6f0f9d9ae05b019470cc05a6c4) () const |
> | bool | [isLocalToProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a2dd72e4e00fc697566aa919c184b038e) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL) const Indicates if the specified absolute [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) is inside the project folder. |
> | bool | [isOwnedByProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a46877c6320f47a155a75169d36238949) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL) const If the specified [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) is a file in the project folder, and registered, returns true. |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getIteratorForURL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#af7698dfb8ecc0eedf251d8f0f30abb70) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL) const If the specified [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) is a file in the project folder, and registered, returns the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md). |
> | [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) | [getRelativePathToFile](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a718a7912d243d9ec683e0006f161dd72) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pURL) const Future feature - Not available. |
> | bool | [registerCallback](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a5aabe52873c70c358b5676d7a040a9d5) (const std::string \&pOwner, const std::string \&pCallbackName, BaseCallback \*pCallback) Register a function callback to a project event. |
> | [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [executeCallback](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ad29b2f43e54a442e3c2aae16bfde9c05) (const std::string \&pCallbackName, CallbackParams \&pParams) Trigger any registered callback for this callback ID. |
> | virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [copyRuntimeMetadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a6abcade6d718d29916f6daabe1f3d6ea) (const [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pSource, [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pTarget) const Copy all runtime metadata values from source to target iterator. |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getDir](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a1acd31edcdcacab8c3e8640c9e87923f) () |
> | bool | [setDir](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ad204f23d657a51f9b9eaa486544f20c3) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) \&pDir) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [root](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a4d37d37587ca061d9cd7a4e10d0fc099) () const Return the iterator to the project root folder. |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [get](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a7e8b3e5b9ea8fcf583b9bff9e887dc09) (const [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_path.md) \&pPath) const For a project [Path](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_path.md), return the associated [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md). |
> | int | [getProjectId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a551f309b90cf9f495420ea02848cbf4d) () const Return a project id, which will be the same as in the matching [Iterator::getProjectId()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md#aab5adc1caad321f18f6f2cdb2d7eb6e2). |

## Protected Member Functions

| Type | Name |
| - | - |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [updateFromPolicy](#ada4a9e1fd566f6269eee8c4ebdab00dc) () |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [setupNewProject](#af5cbc075cc51feb22d83b3bedc32f366) () |
| virtual [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project) \* | [projectObjectFactory](#a865af56735c74ddbb95132c8e68e7d31) () const Create a new object of the current effective project type. |

> [accordion] Protected Member Functions inherited from ansys::Project::Project
>
> Protected Member Functions inherited from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project)
>
> | Type | Name |
> | - | - |
> | virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [copyProjectContent](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#afe6dccd1d416c6e84967a68107af8515) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pFolder, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pSourceFolder, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pTargetFolder, std::map\< [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md), [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) > \&pURLChanges, bool pCopyExternalFiles, bool pEnforceStructure) Internal function - Copy a folder iterator content files from a source directory to target. |

## Additional Inherited Members

> [accordion] Static Public Member Functions inherited from ansys::Project::Project
>
> Static Public Member Functions inherited from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project)
>
> | Type | Name |
> | - | - |
> | static [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [unarchiveProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a336ac0d006d6a24a08f1894c66e33940) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pArchive, const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pTargetFolder) Extract the project to an from an archive,. |

> [accordion] Static Protected Member Functions inherited from ansys::Project::Project
>
> Static Protected Member Functions inherited from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project)
>
> | Type | Name |
> | - | - |
> | static std::string | [getReleaseId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#acac291a635b82a5f2950222963905f02) () |

> [accordion] Static Protected Attributes inherited from ansys::Project::Project
>
> Static Protected Attributes inherited from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project)
>
> | Type | Name |
> | - | - |
> | static int | [sFormatVersion](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a3192d4bfc37c3510616854092b4608f6) = 2 |

## Detailed Description

Main object for [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) based projects.

The [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md) manages the .flprj index file, and (if enabled) the .cffdb folder. The project contains the global storage settings, and contains [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) subfolders.

The project concept is detailed in [Project API](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/_project_a_p_i.md)

## Constructor & Destructor Documentation

### SimProject()

```cpp theme={null}
ansys::Project::SimProject::SimProject()
```

Constructor - See [Project::Project()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#ae26ec5c1449c349cc767bdae9deb4339)

### \~SimProject()

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

`virtual`

Constructor - See [Project::\~Project()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#af534abc0e2d1096eab9228880f007688)

## Member Function Documentation

### checkProject()

```cpp theme={null}
Error ansys::Project::SimProject::checkProject(CheckProjectInfo & pInfo) const
```

`virtual`

Check the currently loaded project for validity.

[Project::checkProject()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a9926355c9f869546253870307d4c3f2a) will only check files and folders, while [SimProject::checkProject()](#a9d89fa7443d65f1e2ad3befee9da068d) will check the [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) and their files for consistency and project syntax compliance.

**Parameters**

| Name | Description |
| - | - |
| pInfo | CheckProjectInfo structure used to specify check project settings and return the results. |

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a9926355c9f869546253870307d4c3f2a).

### copyMetadata()

```cpp theme={null}
Error ansys::Project::SimProject::copyMetadata(
    const Iterator & pSource,
    Iterator & pTarget
) const
```

`virtual`

Copy metadata between two project items.

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a6891faa06d30ec30f3b47b53072034a1).

### duplicateSimulation()

```cpp theme={null}
Iterator ansys::Project::SimProject::duplicateSimulation(
    const std::string & pOld,
    const std::string & pNew
)
```

Duplicate a simulation to a new name.

[Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_metadata.md) is copied Input files stored in the source simulation are copied over and linked to the new location. Input files referencing files outside of the simulation are kept as such.

**Returns**

[Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) of the newly created run

### getCurrentSimulation()

```cpp theme={null}
Iterator ansys::Project::SimProject::getCurrentSimulation() const
```

Returns the current simulation link - if any.

### getGeometries()

```cpp theme={null}
std::vector< std::string > ansys::Project::SimProject::getGeometries() const
```

Retrieve all geometry file names from Geometry/ folder.

### getGeometry()

```cpp theme={null}
Iterator ansys::Project::SimProject::getGeometry(const std::string & pName) const
```

Retrieve Geometry iterator from Geometry/ folder, by name.

### getInheritedMetadata()

```cpp theme={null}
Error ansys::Project::SimProject::getInheritedMetadata(
    const Iterator & pIter,
    MetadataConst & pMeta
)
```

`virtual`

Return the metadata for the current iterator and include relevant data from parent iterators.

In [Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project) this only returns the metadata for the current iterator, unless the parent item is a Transparent item, the data is then also included. Used in some UI elements.

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a1de046a523c12e7e7c50aba05ba74e1e).

### getItem()

```cpp theme={null}
Iterator ansys::Project::SimProject::getItem(
    const std::string & pCategory,
    const std::string & pName
) const
```

Retrieve Item iterator from Category/ folder, by name.

### getItems()

```cpp theme={null}
std::vector< std::string > ansys::Project::SimProject::getItems(
    const std::string & pCategory
) const
```

Retrieve all item names from from Category/ folder.

### getMesh()

```cpp theme={null}
Iterator ansys::Project::SimProject::getMesh(const std::string & pName) const
```

Retrieve Mesh iterator from Mesh/ folder, by name.

### getMeshes()

```cpp theme={null}
std::vector< std::string > ansys::Project::SimProject::getMeshes() const
```

Retrieve all mesh names from Mesh/ folder.

### getSimulation()

```cpp theme={null}
Iterator ansys::Project::SimProject::getSimulation(const std::string & pName) const
```

Retrieve a [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md), by name.

### getSimulations()

```cpp theme={null}
std::vector< std::string > ansys::Project::SimProject::getSimulations() const
```

Retrieve the list of [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) names in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md).

### importGeometry()

```cpp theme={null}
Error ansys::Project::SimProject::importGeometry(
    const URL & pURL,
    Iterator & pIter,
    std::string pName = ""
)
```

Import a CAD in a Geo/ subfolder of the project.

**Parameters**

| Name | Description |
| - | - |
| pURL | File location of the file to copy |
| pInfo | Returned [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) of the newly imported file |
| pName | Name of the new project entry in Geo/ |

**Returns**

[Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) state

### importItem()

```cpp theme={null}
Error ansys::Project::SimProject::importItem(
    const std::string & pCategory,
    const URL & pURL,
    Iterator & pIter,
    std::string pName = ""
)
```

Import a file of any type in the Type/ subfolder of the project.

**Parameters**

| Name | Description |
| - | - |
| pCategory | File type - will also be assigned as DataType of the file |
| pURL | File location of the file to copy |
| pInfo | Returned [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) of the newly imported file |
| pName | Name of the new project entry in Type/ |

**Returns**

[Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) state

### importMesh()

```cpp theme={null}
Error ansys::Project::SimProject::importMesh(
    const URL & pURL,
    Iterator & pIter,
    std::string pName = ""
)
```

Import a mesh in a Mesh/ subfolder of the project.

**Parameters**

| Name | Description |
| - | - |
| pURL | File location of the file to copy |
| pInfo | Returned [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) of the newly imported file |
| pName | Name of the new project entry in Mesh/ |

**Returns**

[Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) state

### newSimulation()

```cpp theme={null}
Iterator ansys::Project::SimProject::newSimulation(
    const std::string & pName,
    const std::string & pType
)
```

Create a new [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) folder in the [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md).

**Parameters**

| Name | Description |
| - | - |
| pName | Name of the new simulation, must be unique |
| pType | Solver type of the simulation (ex: ANSYS\_FLUENT) |

### projectObjectFactory()

```cpp theme={null}
Project * ansys::Project::SimProject::projectObjectFactory() const
```

`protected` `virtual`

Create a new object of the current effective project type.

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a5e93913e59ac2ba3e0a6fad5a4ef667a).

### removeSimulation()

```cpp theme={null}
Error ansys::Project::SimProject::removeSimulation(
    const std::string & pName,
    bool pFlagErase
)
```

Remove a named simulation from the project.

**Parameters**

| Name | Description |
| - | - |
| pName | Name of the simulation |
| pFlagErase | Enable to erase all files and subfolders |

### setCurrentSimulation()

```cpp theme={null}
void ansys::Project::SimProject::setCurrentSimulation(Iterator pSim)
```

Set the current simulation link - i.e. the 'default' simulation.

The current simulation link is set automatically to any newly created simulation, and can be changed afterwards.

### setupNewProject()

```cpp theme={null}
Error ansys::Project::SimProject::setupNewProject()
```

`protected` `virtual`

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a6a9567588ffe6e0d6207cfaa743f2fa0).

### updateFromPolicy()

```cpp theme={null}
Error ansys::Project::SimProject::updateFromPolicy()
```

`protected` `virtual`

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#a276124462f413269f64dc33d70c9257a).

### upgradeProject()

```cpp theme={null}
Error ansys::Project::SimProject::upgradeProject()
```

`virtual`

Upgrade project to current version.

See [Project::upgradeProject()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#aeeb9331e9e1324ba6fa24e84515df312) The [SimProject](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_project.md) version will upgrade the [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) and related concepts to the latest project file format.

Reimplemented from [ansys::Project::Project](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_project#aeeb9331e9e1324ba6fa24e84515df312).
