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

# sysc::SystemCoupling Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide the main class for interacting with the System Coupling participant library.

`#include <SystemCoupling.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [SystemCoupling](#aa85c07a47dbf3cccce8049e8c8fe86cc) () Provide a (default) constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for non-cosimulation mode. |
| | [SystemCoupling](#a0381ca6fb1dcf81258ada4e95c354ab9) (std::size\_t mpiCommunicator) Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for non-cosimulation mode with a custom MPI communicator. |
| | [SystemCoupling](#a9f7e98bb312a412ae7bc81f0a49afa1a) (const [ParticipantInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ParticipantInfo.md) \&participantInfo) Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class with a custom struct representing the default input parameters. |
| | [SystemCoupling](#a28570e0829c5d0c2177d1b25b55b2da0) (const [ParticipantInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ParticipantInfo.md) \&participantInfo, std::size\_t mpiCommunicator) Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class with an mpiCommunicator object set to non default. |
| | [SystemCoupling](#a68a64fa8efe499cc189979d44624d0f7) (const std::string \&scHost, unsigned short scPort, const std::string \&participantName, const std::string \&buildInformation="Unknown") Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for cosimulation mode. |
| | [SystemCoupling](#a197f13843de7afcd2f84b85eaffa11ad) (const std::string \&scHost, unsigned short scPort, const std::string \&participantName, std::size\_t mpiCommunicator, const std::string \&buildInformation) Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for cosimulation mode with a custom MPI communicator. |
| void | [completeSetup](#a204a3a8145961af7bc28d2cfd58a4358) (const [sysc::SetupInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1SetupInfo.md) \&setupInfo) Provide a function to notify System Coupling that setup can be completed. |
| void | [initializeAnalysis](#ab47a6eaf83eae538e17290a5c2582b8e) () Provide a function to notify System Coupling that analysis initialization can be completed. |
| [sysc::TimeStep](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1TimeStep.md) | [getCurrentTimeStep](#a6ab306d83db2610887c8fb18c554eba6) () Provide a function to get current time step. |
| bool | [doIteration](#a0cb8cd28d752af2cfd0b4d27511ea306) () Provide a function to check whether to do a coupling iteration. |
| bool | [doTimeStep](#a285a15756651ef5027191ca69dfab7e0) () Provide a function to check whether to do a coupling time step. |
| void | [updateInputs](#a9c768f6965f14e8ab3308c7df4144da7) () Provide a function to update the participants input variables. |
| void | [updateOutputs](#a468e5e084477cdaca2adee6c50edf7e9) ([ConvergenceStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga0b8801743579159eb41cf07d8372a734) status) Provide a function to update the participants output variables. |
|  void | [disconnect](#a4f15e4d02257cde7717b9fffae806311) () Provide a function to end the analysis and disconnect from System Coupling. |
|  void | [fatalError](#a9d5c081a6a43f86de3aef366d6527730) (const std::string \&errorMessage) Provide a function to notify System Coupling about a fatal error. |
| void | [addRegion](#afd8d4beebb3a46d80c9f9fcddc385db2) (const [Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) \&region) Provide a function to add a region that could be used in a coupled analysis. |
| void | [addInputParameter](#a141ea7f0524e5e8dc7e051408477e9cb) ([Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) parameter) Provide a method to add an input parameter that could be used in a coupled analysis. |
| void | [addOutputParameter](#aefc367f59f86420aaaa425d7d24b071c) ([Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) parameter) Provide a method to add an output parameter that could be used in a coupled analysis. |
| void | [addRealAttribute](#ab298f64d5d97a11f59650605c062d38a) (const [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) \&realAttribute) Provide a method to add a real attribute that could be used in a coupled analysis. |
| void | [addIntegerAttribute](#a85e574ea482ec764a16b7ee64beda3de) (const [IntegerAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1IntegerAttribute.md) \&integerAttribute) Provide a method to add an integer attribute that could be used in a coupled analysis. |
| void | [addCouplingInterface](#ae4c93f4502c9df950fddddab3aab5eec) (const [CouplingInterface](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1CouplingInterface.md) \&couplingInterface) Provide a function to add a coupling interface. |
| void | [addCouplingInterface](#ae1f7fe88e678c07cde61acff8742b608) (const [CouplingInterface](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1CouplingInterface.md) \&couplingInterface, bool autoGenerateTransfers) Provide a function to add a coupling interface. |
| double | [getParameterValue](#aefb34bf071d430de2dd4f1be1dc74e84) (const [ParameterName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga9cadba4f4e91a46ad88e42877c682d46) \&parameterName) Provide a function to get a [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) value. |
| void | [setParameterValue](#aca0700c21a60e92e3b67c0e50a575133) (const [ParameterName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga9cadba4f4e91a46ad88e42877c682d46) \&parameterName, double value) Provide a function to set a [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) value. |
| double | [getRealAttributeValue](#a8ec3e49911120cd590ec285456de40ac) (const [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadb06eacf4ed0787d18e8ddbf0612c83c) \&attributeName) Provide a function to get a [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) value. |
| int64\_t | [getIntegerAttributeValue](#a4c59f4d91ed51f811b9a8af91129250e) (const [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadb06eacf4ed0787d18e8ddbf0612c83c) \&attributeName) Provide a function to get an [IntegerAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1IntegerAttribute.md) value. |
| void | [registerInputScalarDataAccess](#a60439772708be217b06f07f8554d5abd) ([InputScalarDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga7dd9c918ef6adb34c5e7832dfb077cf2) \*dataAccess) Provide a function to register input scalar data access. |
| void | [registerInputScalarDataAccess](#a61c7be7c0e7ab939f27b49b015fbd8d0) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputScalarDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga31d70598dce8c2bef6ec3f0c167ab271) \*dataAccess) Provide a function to register input scalar data access. |
| void | [registerInputVectorDataAccess](#aac58f07f6eaa259959f39eefa3a48275) ([InputVectorDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gab7625786f580e802bcae651a9e6b8ab6) \*dataAccess) Provide a function to register input vector data access. |
| void | [registerInputVectorDataAccess](#a3c27f87e2afbd4fc4cd1a3936af119a4) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputVectorDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga12662b1595f7ffd8429f9e6d6cdcf4e5) \*dataAccess) Provide a function to register input vector data access. |
| void | [registerOutputScalarDataAccess](#adeacbc3dfb240c3f389d344337839458) ([OutputScalarDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaf919dd1650fbc5b6cede63027640a40f) \*dataAccess) Provide a function to register output scalar data access. |
| void | [registerOutputScalarDataAccess](#ada68571b9d10213009b97e4701cba62a) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputScalarDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga0198dfa2f53816088cfc3c0f94b33fb5) \*dataAccess) Provide a function to register output scalar data access. |
| void | [registerOutputVectorDataAccess](#abb613dba476f0873e7d59585acb7d981) ([OutputVectorDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga3af176d8520259b81f0460e1299e04b6) \*dataAccess) Provide a function to register output vector data access. |
| void | [registerOutputVectorDataAccess](#aedc414935e27b77ce784e7f1c5fc6a75) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputVectorDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga816b3979bcee14cdb92a88c0621a8e1e) \*dataAccess) Provide a function to register output vector data access. |
| void | [registerInputComplexScalarDataAccess](#ae65892603ab7d6f24d3a1cbc80af7edb) ([InputComplexScalarDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gac45104dcb153caae0c4edac26e46351e) \*dataAccess) Provide a function to register input complex scalar data access. |
| void | [registerInputComplexScalarDataAccess](#a878ad16bd59726553ee0a3de9d2bca06) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputComplexScalarDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga90ec216c6ff3f8ada5d0b0b4ea362b15) \*dataAccess) Provide a function to register input complex scalar data access. |
| void | [registerInputComplexVectorDataAccess](#a58064b5079b01898a6951e366ea86331) ([InputComplexVectorDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga0cc318418bce4c3aa356f91798e962e7) \*dataAccess) Provide a function to register input complex vector data access. |
| void | [registerInputComplexVectorDataAccess](#abdd59a061b86ef7cef6301652d98ec65) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputComplexVectorDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaf213c1ae6a1bff131c598f99ad9320b4) \*dataAccess) Provide a function to register input complex vector data access. |
| void | [registerOutputComplexScalarDataAccess](#a6e31333c6867d5214565215c5de97ba2) ([OutputComplexScalarDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaeb662bc24c2d2c6f4248f038eee43e74) \*dataAccess) Provide a function to register output complex scalar data access. |
| void | [registerOutputComplexScalarDataAccess](#a09a5b550343939ded20c225c4cd7c980) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputComplexScalarDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga74e6e9bec4808c21fab845daa661b50c) \*dataAccess) Provide a function to register output complex scalar data access. |
| void | [registerOutputComplexVectorDataAccess](#a6ccb2d4f3fe8a866648ffa1f310bc78f) ([OutputComplexVectorDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaec1b87f8104f48c01859a46d280894db) \*dataAccess) Provide a function to register output complex vector data access. |
| void | [registerOutputComplexVectorDataAccess](#a85be3c843ee3b5e71f5e54fff61468aa) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputComplexVectorDataAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaa3871403c3c169499a051ce8cc88d9a7) \*dataAccess) Provide a function to register output complex vector data access. |
| void | [registerSurfaceMeshAccess](#afb819aa4b19aa15dc552d73803352fb4) ([SurfaceMeshAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga31a21ade99a36c30fdc24d33c6d5c9aa) \*meshAccess) Provide a function to register surface mesh access. |
| void | [registerSurfaceMeshAccess](#a183340630be801da193518a69e183cd1) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [SurfaceMeshAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaefc47d665f38f4380346fb9c29b9c8ff) \*meshAccess) Provide a function to register surface mesh access. |
|  void | **registerZoneCountAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [ZoneCountAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga67496d998ace1dd2796a5a96f6356483) \*zoneCountAccess) |
|  void | **registerSurfaceMeshAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [SurfaceMeshMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga78db51b86b998102a74753c41118d0de) \*dataAccess) |
|  void | **registerVolumeMeshAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [VolumeMeshMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaf8cf8d3d04cd46c0841bd0d1fdb54158) \*dataAccess) |
|  void | **registerInputScalarDataAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputScalarDataMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga3b4a0b9036a3be955d417a16c6acb695) \*dataAccess) |
|  void | **registerOutputScalarDataAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputScalarDataMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaad003be96e3cd29fc18e0d2a27889db4) \*dataAccess) |
|  void | **registerInputVectorDataAccess** ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [InputVectorDataMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga59cfd8bf053c1492e4c0a6b4c0109ef6) \*dataAccess) |
| void | [registerOutputVectorDataAccess](#a76d36b21f00f091187e875e5dfb6f6d6) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [OutputVectorDataMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga46429473df8e53efff6e5d967897a291) \*dataAccess) Provide a function to register output vector data access. |
| void | [registerVolumeMeshAccess](#a692aa29e269337e50d3b134f4628b7c0) ([VolumeMeshAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga7a37f14608ada16bb16d44c498325fff) \*meshAccess) Provide a function to register volume mesh access. |
| void | [registerVolumeMeshAccess](#ad6950fb23d3f98f17f023c29555743b8) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [VolumeMeshAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga6c3e4e3f977efd6284430b6f8e918ce1) \*meshAccess) Provide a function to register volume mesh access. |
| void | [registerPointCloudAccess](#a05632386db24345a895d5b504c52af5e) ([PointCloudAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga1651bb5df846358dfae0401b4a51331d) \*pointCloudAccess) Provide a function to register point cloud access. |
| void | [registerPointCloudAccess](#a71eeb76fc93f4d9b8618d70ef5f66493) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [PointCloudAccessWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga1ec70c59d86f6f43cc865c72e4a9d76e) \*pointCloudAccess) Provide a function to register point cloud access. |
| void | [registerPointCloudAccess](#a1e24a3be97eb868486fd6477f26356fd) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [PointCloudMultiZoneAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga2108977976cabe1b6207eb8bc58175f4) \*pointCloudAccess) Provide a function to register point cloud access. |
| void | [registerRestartPointCreation](#aaae2fc4f2cee448f97e69fae2510c1ce) ([RestartPointCreation](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga871467e0179633e71b13d4a1904ad732) \*restartPointCreation) Provide a function to register a restart point creation callback. |
| void | [registerTargetDataCreation](#a16f160af31ea38f0a502ff1f746b957b) ([TargetDataCreation](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23c842f309f11150deb4dda666115091) \*targetDataCreation) Provide a function to register a target data creation callback. |
| void | [registerTargetDataCreation](#a753caed2214ab353ae9a377e55c3c2d8) ([OpaqueDataAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga23b9971b358756814178dd1cb3c0bc80) opaqueDataAccess, [TargetDataCreationWithPointer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga62d0a9b9a904f4345ff12f30b052e278) \*targetDataCreation) Provide a function to register a target data creation callback. |
| bool | [writeSetupFile](#a3d0f96215b1b4609d46e0772c3e3578b) (const [SetupFileInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1SetupFileInfo.md) \&setupFileInfo) const Provide a function to write the setup file. |
|  void | [writeResults](#ac9b3de74b577b71eccf44c901ba0d225) (const [ResultsInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ResultsInfo.md) \&resultsInfo) const Write results to a file. |
| std::size\_t | [getNumRegions](#af1cac0616352ad6998eefad0593c8ffb) () const Provide a function to return the number of regions. |
| const [Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) & | [getAddedRegion](#adb354cb78a277f08c87b59f97bcdd453) (std::size\_t index) const Provide a function to return region information. |
| [SolutionControl](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1SolutionControl.md) | [getSolutionControl](#ace4a88af60a1aa93a68fa4b071592413) () const Get solution control. |
| std::size\_t | [getNumCouplingInterfaces](#a83c9856515b950fa453f36a29c3dd0ca) () const Provide a function to return the number of coupling interfaces. |
| const [CouplingInterface](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1CouplingInterface.md) & | [getAddedCouplingInterface](#a8aab50ac4eedd188745852bb0cc94f6d) (std::size\_t index) const Provide a function to return coupling interface. |
| const [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) & | [getInputParameter](#aff74fa8017356c93a1ea5677a29103e5) (std::size\_t index) const Provide a function to return input parameter information. |
| const [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) & | [getOutputParameter](#acd9357a14b747921037daa0c24c9bc1b) (std::size\_t index) const Provide a function to return output parameter information. |
| std::size\_t | [getNumInputParameters](#a5043b933c85893f89b72c967922e0397) () const Provide a function to return the number of input parameters. |
| std::size\_t | [getNumOutputParameters](#a6b0bc9b6b4c6155f573c94376e37ba8d) () const Provide a function to return the number of output parameters. |
| std::size\_t | [getNumRealAttributes](#a7d91d3013cc5c826f91d42f6e8f5c6d8) () const Provide a function to return the number of real attributes. |
| std::size\_t | [getNumIntegerAttributes](#aeeb32be00caa7d33c4ddd9b28f80a3a0) () const Provide a function to return the number of integer attributes. |
| const [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) & | [getRealAttribute](#adac66a89bdba3cc298631045b659fba1) (std::size\_t index) const Provide a function to return real attribute information. |
| const [IntegerAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1IntegerAttribute.md) & | [getIntegerAttribute](#a47057e45b7637d4709138c5f64d7e0d4) (std::size\_t index) const Provide a function to return integer attribute information. |
|  void | [completeCouplingSetup](#a6d389ee7e0740e0348919cd3b7d956f7) () This function will be deprecated. Use [completeSetup()](#a204a3a8145961af7bc28d2cfd58a4358) instead. |
|  void | [completeCouplingSetup](#ae07c136aa42d636df179cc7352065430) ([sysc::AnalysisType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gaffd523474fbd708f481a712f1841a967) analysisType) This function will be deprecated. Use [completeSetup()](#a204a3a8145961af7bc28d2cfd58a4358) instead. |
|  void | [registerInputScalarVariableAccess](#a7f6ec98123d0c18a6fce5c51d9af5e28) ([InputScalarVariableAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gabfe4908649fe177d889ed488b090fdea) \*dataAccess) Deprecated - do not use. |
|  void | [registerInputVectorVariableAccess](#a742d335b9842d2574d4522834154c3c7) ([InputVectorVariableAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga9b14545ae1ed82c6d1471c1672ca5247) \*dataAccess) Deprecated - do not use. |
|  void | [registerOutputScalarVariableAccess](#a215a0a89ded36ecab1c4720c7c581b5e) ([OutputScalarVariableAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga81e8c19ed24a2ea0433af309188710a6) \*dataAccess) Deprecated - do not use. |
|  void | [registerOutputVectorVariableAccess](#ab63d037d8a7545bd6b5a6f2b3e91c30f) ([OutputVectorVariableAccess](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga4684b116da21b415e4e63ae927ba12ae) \*dataAccess) Deprecated - do not use. |
| [MeshValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1MeshValidityStatus.md) | [checkMeshValidity](#a8c7d2613f81b8d9a5bd81db9dcbae8fd) (const [Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) \&region) Deprecated. Use [sysc::SurfaceMesh::checkMeshValidity](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md#a786a6cbbf2ab08214207b4fe38f0f013) instead. |
| [MeshValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1MeshValidityStatus.md) | [checkMeshValidity](#ac6a85f6aae44d330b8042dc9296bd59b) (const std::string \&regionName) Deprecated. Use [sysc::SurfaceMesh::checkMeshValidity](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md#a786a6cbbf2ab08214207b4fe38f0f013) instead. |
|  const [Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) & | [getRegion](#ab70a16b544c86e9681e9946f2ce3ec53) (std::size\_t index) const Deprecated. Use [getAddedRegion()](#adb354cb78a277f08c87b59f97bcdd453) instead. |
| | [SystemCoupling](#a692355d68459adf3eddfaef350bf0c9c) (const [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) &)=delete Delete the copy-constructor. |
| | [SystemCoupling](#a8d869edcfaaace05684e095add7d733b) ([SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) &&)=default Provide the move-constructor. |
| [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) & | [operator=](#af9e2480d475df72014f4b565f97d8c70) (const [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) &)=delete Delete the copy-assign operator. |
| [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) & | [operator=](#a11c5ccef62c2719e4d0af87796311914) ([SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) &&)=default Provide the move-assign operator. |

## Detailed Description

Provide the main class for interacting with the System Coupling participant library.

For co-simulation, this class maintains the socket connection to the System Coupling solver. The coupling participant will need to provide host and port information for existing System Coupling server, as well as the name of this coupling participant.

For mapping, an instance of this class should be created to perform mapping.

There should only be one instance of this System Coupling class.

Definition at line [45](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/SystemCoupling_8hpp_source) of file [SystemCoupling.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/SystemCoupling_8hpp_source).

## Constructor & Destructor Documentation

### SystemCoupling() \[1/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling()
```

Provide a (default) constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for non-cosimulation mode.

This is a default constructor that will initialize the participant library in standalone (non-cosimulation) mode.

When running in parallel MPI environment, the parallel communication within the participant library will use MPI\_COMM\_WORLD communicator.

### SystemCoupling() \[2/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling(std::size_t mpiCommunicator)
```

Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for non-cosimulation mode with a custom MPI communicator.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | mpiCommunicator | MPI communicator cast to std::size\_t. |

This will initialize the participant library in standalone mode and will use the provided MPI communicator for all parallel communication.

### SystemCoupling() \[3/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling(const ParticipantInfo & participantInfo)
```

Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class with a custom struct representing the default input parameters.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | participantInfo | The struct containing the attributes needed to connect to System Coupling: scHost, scPort, participantName, etc. |

### SystemCoupling() \[4/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling(
    const ParticipantInfo & participantInfo,
    std::size_t mpiCommunicator
)
```

Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class with an mpiCommunicator object set to non default.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | participantInfo | The struct containing the attributes needed to connect to System Coupling: scHost, scPort, participantName, etc. |
| \[in] | mpiCommunicator | MPI communicator cast to std::size\_t. |

### SystemCoupling() \[5/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling(
    const std::string & scHost,
    unsigned short scPort,
    const std::string & participantName,
    const std::string & buildInformation = "Unknown"
)
```

Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for cosimulation mode.

Initializes the participant library in cosimulation mode. It establishes the connection to the System Coupling solver.

The participant solver must have obtained the host and port information from System Coupling prior to creating this object (e.g. via an input argument when participant application was started). Copy constructor and assignment operators are disabled to avoid copying the created object.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | scHost | Name of the host on which System Coupling is running. |
| \[in] | scPort | Port number on which System Coupling is listening for participant connections. |
| \[in] | participantName | Name of this participant (e.g. "MAPDL-1") |
| \[in] | buildInformation | Information about the build of this participant solver. This parameter is optional - default is "Unknown". |

### SystemCoupling() \[6/6]

```cpp theme={null}
sysc::SystemCoupling::SystemCoupling(
    const std::string & scHost,
    unsigned short scPort,
    const std::string & participantName,
    std::size_t mpiCommunicator,
    const std::string & buildInformation
)
```

Provide a constructor for the [SystemCoupling](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md) class for cosimulation mode with a custom MPI communicator.

This constructor works the same way as the one above (see above), but it takes in one additional argument, which is the MPI communicator, cast as std::size\_t.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | scHost | Name of the host on which System Coupling is running. |
| \[in] | scPort | Port number on which System Coupling is listening for participant connections. |
| \[in] | participantName | Name of this participant (e.g. "MAPDL-1") |
| \[in] | mpiCommunicator | MPI communicator cast to std::size\_t. |
| \[in] | buildInformation | Information about the build of this participant solver. This parameter is optional - default is "Unknown". |

## Member Function Documentation

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

```cpp theme={null}
void sysc::SystemCoupling::addCouplingInterface(
    const CouplingInterface & couplingInterface
)
```

Provide a function to add a coupling interface.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | couplingInterface | - coupling interface to be added. |

Data transfers will be automatically created. If a variable is defined as an output on all regions on one side of the interface and as an input on all regions on the opposite side of the interface, then the data transfer will be added for this variable.

If this coupling interface has already been added, then this call will have no effect.

If a different coupling interface with the same has already been added, then a runtime error will be thrown.

If the coupling interface name contains invalid characters, then a runtime error will be thrown.

See [sysc::CouplingInterface](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1CouplingInterface.md) for more details.

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

```cpp theme={null}
void sysc::SystemCoupling::addCouplingInterface(
    const CouplingInterface & couplingInterface,
    bool autoGenerateTransfers
)
```

Provide a function to add a coupling interface.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | couplingInterface | - coupling interface to be added. |
| \[in] | autoGenerateTransfers | - flag whether to automatically create data transfers. |

If this coupling interface has already been added, then this call will have no effect.

If a different coupling interface with the same has already been added, then a runtime error will be thrown.

If the coupling interface name contains invalid characters, then a runtime error will be thrown.

If autoGenerateTransfers is true, then the data transfers are generated automatically according to the following rule: if a variable is defined as an output on all regions on one side of the interface and as an input on all regions on the opposite side of the interface, then the data transfer will be added for this variable.

See [sysc::CouplingInterface](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1CouplingInterface.md) for more details.

### addInputParameter()

```cpp theme={null}
void sysc::SystemCoupling::addInputParameter(Parameter parameter)
```

Provide a method to add an input parameter that could be used in a coupled analysis.

If this parameter has already been added as an input solver parameter, then this call will have no effect.

If a different parameter with the same name has already been added as an input parameter, then a runtime error will be thrown.

If a parameter with the same name has already been added as an output parameter, then a runtime error will be thrown.

If the parameter name contains invalid characters, a runtime error will be thrown.

**Parameters**

| Name | Description |
| - | - |
| parameter | [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) whose values are provided by System Coupling and consumed by the participant. |

### addIntegerAttribute()

```cpp theme={null}
void sysc::SystemCoupling::addIntegerAttribute(const IntegerAttribute & integerAttribute)
```

Provide a method to add an integer attribute that could be used in a coupled analysis.

If this attribute has already been added as an integer attribute, then this call will have no effect.

If a different integer attribute with the same name has already been added as an integer attribute, then a runtime error will be thrown.

If the integer attribute name contains invalid characters, a runtime error will be thrown.

**Parameters**

| Name | Description |
| - | - |
| integerAttribute | integer attribute whose values are provided by System Coupling and consumed by the participant. |

### addOutputParameter()

```cpp theme={null}
void sysc::SystemCoupling::addOutputParameter(Parameter parameter)
```

Provide a method to add an output parameter that could be used in a coupled analysis.

If this parameter has already been added as an output solver parameter, then this call will have no effect.

If a different parameter with the same name has already been added as an output parameter, then a runtime error will be thrown.

If a parameter with the same name has already been added as an input parameter, then a runtime error will be thrown.

If the parameter name contains invalid characters, a runtime error will be thrown.

**Parameters**

| Name | Description |
| - | - |
| parameter | [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) whose values are provided by System Coupling and consumed by the participant. |

### addRealAttribute()

```cpp theme={null}
void sysc::SystemCoupling::addRealAttribute(const RealAttribute & realAttribute)
```

Provide a method to add a real attribute that could be used in a coupled analysis.

If this attribute has already been added as a real attribute, then this call will have no effect.

If a different real attribute with the same name has already been added as a real attribute, then a runtime error will be thrown.

If the real attribute name contains invalid characters, a runtime error will be thrown.

**Parameters**

| Name | Description |
| - | - |
| realAttribute | real attribute whose values are provided by System Coupling and consumed by the participant. |

### addRegion()

```cpp theme={null}
void sysc::SystemCoupling::addRegion(const Region & region)
```

Provide a function to add a region that could be used in a coupled analysis.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | region | - [Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) to be added. |

If this region has already been added, then this call will have no effect.

If a different region with the same has already been added, then a runtime error will be thrown.

If the region name contains invalid characters, then a runtime error will be thrown.

### completeSetup()

```cpp theme={null}
void sysc::SystemCoupling::completeSetup(const sysc::SetupInfo & setupInfo)
```

Provide a function to notify System Coupling that setup can be completed.

After this function is called, coupled analysis setup can no longer be updated, i.e. regions and variables cannot be changed. Participant should also pass in [sysc::SetupInfo](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1SetupInfo.md) struct to provide additional information about the setup, such as whether steady or transient analysis is to be performed.

Once the setup is complete, any subsequent call to complete the setup will have no effect.

### doIteration()

```cpp theme={null}
bool sysc::SystemCoupling::doIteration()
```

Provide a function to check whether to do a coupling iteration.

This function returns true if another coupling iteration is required, otherwise it returns false.

### doTimeStep()

```cpp theme={null}
bool sysc::SystemCoupling::doTimeStep()
```

Provide a function to check whether to do a coupling time step.

This function returns true if another coupling time step is required, otherwise it returns false.

This function should be called to check if another coupling time step should be done. If the previous coupling time step is finished and another time step should be performed, then calling this function will tell System Coupling that the coupling participant is going to advance to the next time step (i.e. calling [doTimeStep()](#a285a15756651ef5027191ca69dfab7e0) will cause [doIteration()](#a0cb8cd28d752af2cfd0b4d27511ea306) to change from returning false to returning true, under the conditions described above).

This function only makes sense for transient analysis. It will always return false for steady analysis.

### getAddedCouplingInterface()

```cpp theme={null}
const CouplingInterface & sysc::SystemCoupling::getAddedCouplingInterface(
    std::size_t index
) const
```

Provide a function to return coupling interface.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - coupling interface index |

**Returns**

Reference to the coupling interface at specified index.

### getAddedRegion()

```cpp theme={null}
const Region & sysc::SystemCoupling::getAddedRegion(std::size_t index) const
```

Provide a function to return region information.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - region index |

**Returns**

Reference to region information at specified index.

### getCurrentTimeStep()

```cpp theme={null}
sysc::TimeStep sysc::SystemCoupling::getCurrentTimeStep()
```

Provide a function to get current time step.

**Returns**

Returns a time step struct, which contains time step number, start time, and time step size for the current coupling time step.

A default value (time step number 0, start time 0.0, time step size 0.0) is returned if this function is called outside the coupled analysis loop or if the analysis is steady.

### getInputParameter()

```cpp theme={null}
const Parameter & sysc::SystemCoupling::getInputParameter(std::size_t index) const
```

Provide a function to return input parameter information.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - input parameter index |

**Returns**

Reference to input parameter information at specified index.

### getIntegerAttribute()

```cpp theme={null}
const IntegerAttribute & sysc::SystemCoupling::getIntegerAttribute(std::size_t index) const
```

Provide a function to return integer attribute information.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - integer attribute index |

**Returns**

Reference to integer attribute information at specified index.

### getIntegerAttributeValue()

```cpp theme={null}
int64_t sysc::SystemCoupling::getIntegerAttributeValue(const AttributeName & attributeName)
```

Provide a function to get an [IntegerAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1IntegerAttribute.md) value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | attributeName | - name of the integer attribute. |

### getNumCouplingInterfaces()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumCouplingInterfaces() const
```

Provide a function to return the number of coupling interfaces.

**Returns**

Number of coupling interfaces.

### getNumInputParameters()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumInputParameters() const
```

Provide a function to return the number of input parameters.

**Returns**

Number of input parameters.

### getNumIntegerAttributes()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumIntegerAttributes() const
```

Provide a function to return the number of integer attributes.

**Returns**

Number of integer attributes.

### getNumOutputParameters()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumOutputParameters() const
```

Provide a function to return the number of output parameters.

**Returns**

Number of output parameters.

### getNumRealAttributes()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumRealAttributes() const
```

Provide a function to return the number of real attributes.

**Returns**

Number of real attributes.

### getNumRegions()

```cpp theme={null}
std::size_t sysc::SystemCoupling::getNumRegions() const
```

Provide a function to return the number of regions.

**Returns**

Number of regions.

### getOutputParameter()

```cpp theme={null}
const Parameter & sysc::SystemCoupling::getOutputParameter(std::size_t index) const
```

Provide a function to return output parameter information.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - output parameter index |

**Returns**

Reference to output parameter information at specified index.

### getParameterValue()

```cpp theme={null}
double sysc::SystemCoupling::getParameterValue(const ParameterName & parameterName)
```

Provide a function to get a [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | parameterName | - name of the parameter. |

### getRealAttribute()

```cpp theme={null}
const RealAttribute & sysc::SystemCoupling::getRealAttribute(std::size_t index) const
```

Provide a function to return real attribute information.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | - real attribute index |

**Returns**

Reference to real attribute information at specified index.

### getRealAttributeValue()

```cpp theme={null}
double sysc::SystemCoupling::getRealAttributeValue(const AttributeName & attributeName)
```

Provide a function to get a [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | attributeName | - name of the real attribute. |

### initializeAnalysis()

```cpp theme={null}
void sysc::SystemCoupling::initializeAnalysis()
```

Provide a function to notify System Coupling that analysis initialization can be completed.

This function must be called after registering mesh and variable data access and prior to entering the coupled analysis loop.

If this function is called before the coupled analysis is complete, it will automatically complete the coupled analysis and assume steady analysis type.

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputComplexScalarDataAccess(
    InputComplexScalarDataAccess * dataAccess
)
```

Provide a function to register input complex scalar data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to sysc::InputComplexScalarDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputComplexScalarDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    InputComplexScalarDataAccessWithPointer * dataAccess
)
```

Provide a function to register input complex scalar data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::InputComplexScalarDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputComplexVectorDataAccess(
    InputComplexVectorDataAccess * dataAccess
)
```

Provide a function to register input complex vector data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to InputComplexVectorDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputComplexVectorDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    InputComplexVectorDataAccessWithPointer * dataAccess
)
```

Provide a function to register input complex vector data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to InputComplexVectorDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputScalarDataAccess(
    InputScalarDataAccess * dataAccess
)
```

Provide a function to register input scalar data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to sysc::InputScalarDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputScalarDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    InputScalarDataAccessWithPointer * dataAccess
)
```

Provide a function to register input scalar data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::InputScalarDataAccessWithPointer prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputVectorDataAccess(
    InputVectorDataAccess * dataAccess
)
```

Provide a function to register input vector data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to sysc::InputVectorDataAccess function prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerInputVectorDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    InputVectorDataAccessWithPointer * dataAccess
)
```

Provide a function to register input vector data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::InputVectorDataAccessWithPointer prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputComplexScalarDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    OutputComplexScalarDataAccessWithPointer * dataAccess
)
```

Provide a function to register output complex scalar data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to OutputComplexScalarDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputComplexScalarDataAccess(
    OutputComplexScalarDataAccess * dataAccess
)
```

Provide a function to register output complex scalar data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to OutputComplexScalarDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputComplexVectorDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    OutputComplexVectorDataAccessWithPointer * dataAccess
)
```

Provide a function to register output complex vector data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to OutputComplexVectorDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputComplexVectorDataAccess(
    OutputComplexVectorDataAccess * dataAccess
)
```

Provide a function to register output complex vector data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to OutputComplexVectorDataAccess prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputScalarDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    OutputScalarDataAccessWithPointer * dataAccess
)
```

Provide a function to register output scalar data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::OutputScalarDataAccessWithPointer prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerOutputScalarDataAccess(
    OutputScalarDataAccess * dataAccess
)
```

Provide a function to register output scalar data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to sysc::OutputScalarDataAccess function prototype. |

### registerOutputVectorDataAccess() \[1/3]

```cpp theme={null}
void sysc::SystemCoupling::registerOutputVectorDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    OutputVectorDataAccessWithPointer * dataAccess
)
```

Provide a function to register output vector data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::OutputVectorDataAccessWithPointer prototype. |

### registerOutputVectorDataAccess() \[2/3]

```cpp theme={null}
void sysc::SystemCoupling::registerOutputVectorDataAccess(
    OpaqueDataAccess opaqueDataAccess,
    OutputVectorDataMultiZoneAccess * dataAccess
)
```

Provide a function to register output vector data access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| dataAccess | - a pointer to the function that conforms to sysc::OutputVectorDataMultiZoneAccess prototype. |

### registerOutputVectorDataAccess() \[3/3]

```cpp theme={null}
void sysc::SystemCoupling::registerOutputVectorDataAccess(
    OutputVectorDataAccess * dataAccess
)
```

Provide a function to register output vector data access.

**Parameters**

| Name | Description |
| - | - |
| dataAccess | - a pointer to the function that conforms to sysc::OutputVectorDataAccess function prototype. |

### registerPointCloudAccess() \[1/3]

```cpp theme={null}
void sysc::SystemCoupling::registerPointCloudAccess(
    OpaqueDataAccess opaqueDataAccess,
    PointCloudAccessWithPointer * pointCloudAccess
)
```

Provide a function to register point cloud access.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | opaqueDataAccess | - a pointer that is passed into the callback function. |
| \[in] | pointCloudAccess | - a pointer to the function that conforms to PointCloudAccessWithPointer function prototype. |

### registerPointCloudAccess() \[2/3]

```cpp theme={null}
void sysc::SystemCoupling::registerPointCloudAccess(
    OpaqueDataAccess opaqueDataAccess,
    PointCloudMultiZoneAccess * pointCloudAccess
)
```

Provide a function to register point cloud access.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | opaqueDataAccess | - a pointer that is passed into the callback function. |
| \[in] | pointCloudAccess | - a pointer to the function that conforms to PointCloudMultiZoneAccess function prototype. |

### registerPointCloudAccess() \[3/3]

```cpp theme={null}
void sysc::SystemCoupling::registerPointCloudAccess(PointCloudAccess * pointCloudAccess)
```

Provide a function to register point cloud access.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | pointCloudAccess | - a pointer to the function that conforms to PointCloudAccess function prototype. See PointCloudAccess for details. |

### registerRestartPointCreation()

```cpp theme={null}
void sysc::SystemCoupling::registerRestartPointCreation(
    RestartPointCreation * restartPointCreation
)
```

Provide a function to register a restart point creation callback.

**Parameters**

| Name | Description |
| - | - |
| restartPointCreation | - a pointer to the function that conforms to RestartPointCreation function prototype. See RestartPointCreation for details. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerSurfaceMeshAccess(
    OpaqueDataAccess opaqueDataAccess,
    SurfaceMeshAccessWithPointer * meshAccess
)
```

Provide a function to register surface mesh access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| meshAccess | - a pointer to the function that conforms to SurfaceMeshAccessWithPointer function prototype. See SurfaceMeshAccessWithPointer for details. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerSurfaceMeshAccess(SurfaceMeshAccess * meshAccess)
```

Provide a function to register surface mesh access.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | meshAccess | - a pointer to the function that conforms to SurfaceMeshAccess function prototype. See SurfaceMeshAccess for details. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerTargetDataCreation(
    OpaqueDataAccess opaqueDataAccess,
    TargetDataCreationWithPointer * targetDataCreation
)
```

Provide a function to register a target data creation callback.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | a pointer that is passed into the callback function. |
| targetDataCreation | a pointer to the function that conforms to TargetDataCreationWithPointer function prototype. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerTargetDataCreation(
    TargetDataCreation * targetDataCreation
)
```

Provide a function to register a target data creation callback.

**Parameters**

| Name | Description |
| - | - |
| targetDataCreation | - a pointer to the function that conforms to TargetDataCreation function prototype. See TargetDataCreation for details. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerVolumeMeshAccess(
    OpaqueDataAccess opaqueDataAccess,
    VolumeMeshAccessWithPointer * meshAccess
)
```

Provide a function to register volume mesh access.

**Parameters**

| Name | Description |
| - | - |
| opaqueDataAccess | - a pointer that is passed into the callback function. |
| meshAccess | - a pointer to the function that conforms to VolumeMeshAccessWithPointer function prototype. See VolumeMeshAccessWithPointer for details. |

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

```cpp theme={null}
void sysc::SystemCoupling::registerVolumeMeshAccess(VolumeMeshAccess * meshAccess)
```

Provide a function to register volume mesh access.

**Parameters**

| Name | Description |
| - | - |
| meshAccess | - a pointer to the function that conforms to VolumeMeshAccess function prototype. See VolumeMeshAccess for details. |

### setParameterValue()

```cpp theme={null}
void sysc::SystemCoupling::setParameterValue(
    const ParameterName & parameterName,
    double value
)
```

Provide a function to set a [Parameter](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Parameter.md) value.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | parameterName | - name of the parameter. |
| \[in] | value | - value of the parameter. |

### updateInputs()

```cpp theme={null}
void sysc::SystemCoupling::updateInputs()
```

Provide a function to update the participants input variables.

Solution data for all input variables will be updated. Depending on the defined interfaces, data will be transferred from another coupling participant solver, or from the opposite side of the same-participant coupling interface.

When doing cosimulation, this function must be called from inside the coupled analysis loop. It tells System Coupling that the participant is about to begin its solver iterations. All input variable data will be up-to-date after returning from this function. If any local coupling interfaces are defined, all corresponding input variable data will also be updated.

When doing same-participant mapping only (without cosimulation), this function should be called whenever input data needs to be brought up-to-date.

### updateOutputs()

```cpp theme={null}
void sysc::SystemCoupling::updateOutputs(ConvergenceStatus status)
```

Provide a function to update the participants output variables.

This function must be called from inside the coupled analysis loop. It tells System Coupling that the participant has finished performing its solver iterations.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | status | Status of participant solver after its solver iteration(s). See ConvergenceStatus for details |

### writeSetupFile()

```cpp theme={null}
bool sysc::SystemCoupling::writeSetupFile(const SetupFileInfo & setupFileInfo) const
```

Provide a function to write the setup file.

This function can be used to generate a System Coupling setup file, which contains participant's setup information. It should be called after calling completeSetup.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | setupFileInfo | - struct containing the setup file info. |

**Returns**

True if the setup file was successfully written, and false otherwise.
