SystemCoupling.hpp (line 48)
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.
Members
- addCouplingInterface
- addCouplingInterface
- addInputParameter
- addIntegerAttribute
- addOutputParameter
- addRealAttribute
- addRegion
- addStringAttribute
- checkMeshValidity
- checkMeshValidity
- completeCouplingSetup
- completeCouplingSetup
- completeSetup
- disconnect
- doIteration
- doTimeStep
- fatalError
- getAddedCouplingInterface
- getAddedRegion
- getCurrentTimeStep
- getInputParameter
- getIntegerAttribute
- getIntegerAttributeValue
- getNumCouplingInterfaces
- getNumInputParameters
- getNumIntegerAttributes
- getNumOutputParameters
- getNumRealAttributes
- getNumRegions
- getNumStringAttributes
- getOutputParameter
- getParameterValue
- getRealAttribute
- getRealAttributeValue
- getRegion
- getSetupInfo
- getSolutionControl
- getStringAttribute
- getStringAttributeValue
- initializeAnalysis
- operator=
- operator=
- registerDoesTargetDataExist
- registerDoesTargetDataExist
- registerInputComplexScalarDataAccess
- registerInputComplexScalarDataAccess
- registerInputComplexVectorDataAccess
- registerInputComplexVectorDataAccess
- registerInputScalarDataAccess
- registerInputScalarDataAccess
- registerInputScalarDataAccess
- registerInputScalarVariableAccess
- registerInputVectorDataAccess
- registerInputVectorDataAccess
- registerInputVectorDataAccess
- registerInputVectorVariableAccess
- registerOutputComplexScalarDataAccess
- registerOutputComplexScalarDataAccess
- registerOutputComplexVectorDataAccess
- registerOutputComplexVectorDataAccess
- registerOutputScalarDataAccess
- registerOutputScalarDataAccess
- registerOutputScalarDataAccess
- registerOutputScalarVariableAccess
- registerOutputVectorDataAccess
- registerOutputVectorDataAccess
- registerOutputVectorDataAccess
- registerOutputVectorVariableAccess
- registerPointCloudAccess
- registerPointCloudAccess
- registerPointCloudAccess
- registerRestartPointCreation
- registerSurfaceMeshAccess
- registerSurfaceMeshAccess
- registerSurfaceMeshAccess
- registerTargetDataCreation
- registerTargetDataCreation
- registerVolumeMeshAccess
- registerVolumeMeshAccess
- registerVolumeMeshAccess
- registerZoneCountAccess
- setParameterValue
- SystemCoupling
- SystemCoupling
- SystemCoupling
- SystemCoupling
- SystemCoupling
- SystemCoupling
- SystemCoupling
- SystemCoupling
- updateInputs
- updateOutputs
- writeResults
- writeSetupFile
- ~SystemCoupling
Public functions
Function SystemCoupling
Function SystemCoupling
- mpiCommunicator: MPI communicator cast to std::size_t.
- std::size_t mpiCommunicator
Function SystemCoupling
- participantInfo: The struct containing the attributes needed to connect to System Coupling: scHost, scPort, participantName, etc.
- const ParticipantInfo & participantInfo
Function SystemCoupling
- participantInfo: The struct containing the attributes needed to connect to System Coupling: scHost, scPort, participantName, etc.
- mpiCommunicator: MPI communicator cast to std::size_t.
- const ParticipantInfo & participantInfo
- std::size_t mpiCommunicator
Function SystemCoupling
- scHost: Name of the host on which System Coupling is running.
- scPort: Port number on which System Coupling is listening for participant connections.
- participantName: Name of this participant (e.g. “MAPDL-1”)
- buildInformation: Information about the build of this participant solver. This parameter is optional - default is “Unknown”.
- const std::string & scHost
- unsigned short scPort
- const std::string & participantName
- const std::string & buildInformation = “Unknown”
Function SystemCoupling
- scHost: Name of the host on which System Coupling is running.
- scPort: Port number on which System Coupling is listening for participant connections.
- participantName: Name of this participant (e.g. “MAPDL-1”)
- mpiCommunicator: MPI communicator cast to std::size_t.
- buildInformation: Information about the build of this participant solver. This parameter is optional - default is “Unknown”.
- const std::string & scHost
- unsigned short scPort
- const std::string & participantName
- std::size_t mpiCommunicator
- const std::string & buildInformation
Function ~SystemCoupling
Function completeSetup
- const sysc::SetupInfo & setupInfo
Function initializeAnalysis
Function getCurrentTimeStep
Function doIteration
Function doTimeStep
Function updateInputs
Function updateOutputs
- status: Status of participant solver after its solver iteration(s). See ConvergenceStatus for details
- ConvergenceStatus status
Function disconnect
Function fatalError
- const std::string & errorMessage
Function addRegion
- region: - Region to be added.
- const Region & region
Function addInputParameter
- parameter: Parameter whose values are provided by System Coupling and consumed by the participant.
- Parameter parameter
Function addOutputParameter
- parameter: Parameter whose values are provided by System Coupling and consumed by the participant.
- Parameter parameter
Function addRealAttribute
- realAttribute: real attribute whose values are provided by System Coupling and consumed by the participant.
- const RealAttribute & realAttribute
Function addIntegerAttribute
- integerAttribute: integer attribute whose values are provided by System Coupling and consumed by the participant.
- const IntegerAttribute & integerAttribute
Function addStringAttribute
- stringAttribute: string attribute whose values are provided by System Coupling and consumed by the participant.
- const StringAttribute & stringAttribute
Function addCouplingInterface
- couplingInterface: - coupling interface to be added.
- const CouplingInterface & couplingInterface
Function addCouplingInterface
- couplingInterface: - coupling interface to be added.
- autoGenerateTransfers: - flag whether to automatically create data transfers.
- const CouplingInterface & couplingInterface
- bool autoGenerateTransfers
Function getParameterValue
- parameterName: - name of the parameter.
- const ParameterName & parameterName
Function setParameterValue
- parameterName: - name of the parameter.
- value: - value of the parameter.
- const ParameterName & parameterName
- double value
Function getRealAttributeValue
- attributeName: - name of the real attribute.
- const AttributeName & attributeName
Function getIntegerAttributeValue
- attributeName: - name of the integer attribute.
- const AttributeName & attributeName
Function getStringAttributeValue
- attributeName: - name of the string attribute.
- const AttributeName & attributeName
Function registerInputScalarDataAccess
- dataAccess: - a pointer to the function that conforms to sysc::InputScalarDataAccess prototype.
- InputScalarDataAccess * dataAccess
Function registerInputScalarDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::InputScalarDataAccessWithPointer prototype.
- OpaqueDataAccess opaqueDataAccess
- InputScalarDataAccessWithPointer * dataAccess
Function registerInputVectorDataAccess
- dataAccess: - a pointer to the function that conforms to sysc::InputVectorDataAccess function prototype.
- InputVectorDataAccess * dataAccess
Function registerInputVectorDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::InputVectorDataAccessWithPointer prototype.
- OpaqueDataAccess opaqueDataAccess
- InputVectorDataAccessWithPointer * dataAccess
Function registerOutputScalarDataAccess
- dataAccess: - a pointer to the function that conforms to sysc::OutputScalarDataAccess function prototype.
- OutputScalarDataAccess * dataAccess
Function registerOutputScalarDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::OutputScalarDataAccessWithPointer prototype.
- OpaqueDataAccess opaqueDataAccess
- OutputScalarDataAccessWithPointer * dataAccess
Function registerOutputVectorDataAccess
- dataAccess: - a pointer to the function that conforms to sysc::OutputVectorDataAccess function prototype.
- OutputVectorDataAccess * dataAccess
Function registerOutputVectorDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::OutputVectorDataAccessWithPointer prototype.
- OpaqueDataAccess opaqueDataAccess
- OutputVectorDataAccessWithPointer * dataAccess
Function registerInputComplexScalarDataAccess
- dataAccess: - a pointer to the function that conforms to sysc::InputComplexScalarDataAccess prototype.
- InputComplexScalarDataAccess * dataAccess
Function registerInputComplexScalarDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::InputComplexScalarDataAccess prototype.
- OpaqueDataAccess opaqueDataAccess
- InputComplexScalarDataAccessWithPointer * dataAccess
Function registerInputComplexVectorDataAccess
- dataAccess: - a pointer to the function that conforms to InputComplexVectorDataAccess prototype.
- InputComplexVectorDataAccess * dataAccess
Function registerInputComplexVectorDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to InputComplexVectorDataAccess prototype.
- OpaqueDataAccess opaqueDataAccess
- InputComplexVectorDataAccessWithPointer * dataAccess
Function registerOutputComplexScalarDataAccess
- dataAccess: - a pointer to the function that conforms to OutputComplexScalarDataAccess prototype.
- OutputComplexScalarDataAccess * dataAccess
Function registerOutputComplexScalarDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to OutputComplexScalarDataAccess prototype.
- OpaqueDataAccess opaqueDataAccess
- OutputComplexScalarDataAccessWithPointer * dataAccess
Function registerOutputComplexVectorDataAccess
- dataAccess: - a pointer to the function that conforms to OutputComplexVectorDataAccess prototype.
- OutputComplexVectorDataAccess * dataAccess
Function registerOutputComplexVectorDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to OutputComplexVectorDataAccess prototype.
- OpaqueDataAccess opaqueDataAccess
- OutputComplexVectorDataAccessWithPointer * dataAccess
Function registerSurfaceMeshAccess
- meshAccess: - a pointer to the function that conforms to SurfaceMeshAccess function prototype. See SurfaceMeshAccess for details.
- SurfaceMeshAccess * meshAccess
Function registerSurfaceMeshAccess
- 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.
- OpaqueDataAccess opaqueDataAccess
- SurfaceMeshAccessWithPointer * meshAccess
- registerInputScalarDataAccess
- registerInputVectorDataAccess
- registerOutputScalarDataAccess
- registerSurfaceMeshAccess
Function registerZoneCountAccess
- OpaqueDataAccess opaqueDataAccess
- ZoneCountAccess * zoneCountAccess
Function registerSurfaceMeshAccess
- OpaqueDataAccess opaqueDataAccess
- SurfaceMeshMultiZoneAccess * dataAccess
Function registerVolumeMeshAccess
- OpaqueDataAccess opaqueDataAccess
- VolumeMeshMultiZoneAccess * dataAccess
Function registerInputScalarDataAccess
- OpaqueDataAccess opaqueDataAccess
- InputScalarDataMultiZoneAccess * dataAccess
Function registerOutputScalarDataAccess
- OpaqueDataAccess opaqueDataAccess
- OutputScalarDataMultiZoneAccess * dataAccess
Function registerInputVectorDataAccess
- OpaqueDataAccess opaqueDataAccess
- InputVectorDataMultiZoneAccess * dataAccess
Function registerOutputVectorDataAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- dataAccess: - a pointer to the function that conforms to sysc::OutputVectorDataMultiZoneAccess prototype.
- OpaqueDataAccess opaqueDataAccess
- OutputVectorDataMultiZoneAccess * dataAccess
Function registerVolumeMeshAccess
- meshAccess: - a pointer to the function that conforms to VolumeMeshAccess function prototype. See VolumeMeshAccess for details.
- VolumeMeshAccess * meshAccess
Function registerVolumeMeshAccess
- 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.
- OpaqueDataAccess opaqueDataAccess
- VolumeMeshAccessWithPointer * meshAccess
Function registerPointCloudAccess
- pointCloudAccess: - a pointer to the function that conforms to PointCloudAccess function prototype. See PointCloudAccess for details.
- PointCloudAccess * pointCloudAccess
Function registerPointCloudAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- pointCloudAccess: - a pointer to the function that conforms to PointCloudAccessWithPointer function prototype.
- OpaqueDataAccess opaqueDataAccess
- PointCloudAccessWithPointer * pointCloudAccess
Function registerPointCloudAccess
- opaqueDataAccess: - a pointer that is passed into the callback function.
- pointCloudAccess: - a pointer to the function that conforms to PointCloudMultiZoneAccess function prototype.
- OpaqueDataAccess opaqueDataAccess
- PointCloudMultiZoneAccess * pointCloudAccess
Function registerRestartPointCreation
- restartPointCreation: - a pointer to the function that conforms to RestartPointCreation function prototype. See RestartPointCreation for details.
- RestartPointCreation * restartPointCreation
Function registerTargetDataCreation
- targetDataCreation: - a pointer to the function that conforms to TargetDataCreation function prototype. See TargetDataCreation for details.
- TargetDataCreation * targetDataCreation
Function registerTargetDataCreation
- opaqueDataAccess: a pointer that is passed into the callback function.
- targetDataCreation: a pointer to the function that conforms to TargetDataCreationWithPointer function prototype.
- OpaqueDataAccess opaqueDataAccess
- TargetDataCreationWithPointer * targetDataCreation
Function registerDoesTargetDataExist
- doesTargetDataExist: a pointer to the function that conforms to DoesTargetDataExist function prototype. See DoesTargetDataExist for details.
- TargetDataExistenceChecker * doesTargetDataExist
Function registerDoesTargetDataExist
- opaqueDataAccess: a pointer that is passed into the callback function.
- doesTargetDataExist: a pointer to the function that conforms to DoesTargetDataExistWithPointer function prototype.
- OpaqueDataAccess opaqueDataAccess
- TargetDataExistenceCheckerWithPointer * doesTargetDataExist
Function writeSetupFile
- setupFileInfo: - struct containing the setup file info.
- const SetupFileInfo & setupFileInfo
Function writeResults
- const ResultsInfo & resultsInfo
Function getNumRegions
Function getAddedRegion
- index: - region index
- std::size_t index
Function getSolutionControl
Function getSetupInfo
Function getNumCouplingInterfaces
Function getAddedCouplingInterface
- index: - coupling interface index
- std::size_t index
Function getInputParameter
- index: - input parameter index
- std::size_t index
Function getOutputParameter
- index: - output parameter index
- std::size_t index
Function getNumInputParameters
Function getNumOutputParameters
Function getNumRealAttributes
Function getNumIntegerAttributes
Function getNumStringAttributes
Function getRealAttribute
- index: - real attribute index
- std::size_t index
Function getIntegerAttribute
- index: - integer attribute index
- std::size_t index
Function getStringAttribute
- index: - string attribute index
- std::size_t index
Function completeCouplingSetup
Function completeCouplingSetup
- sysc::AnalysisType analysisType
Function registerInputScalarVariableAccess
- InputScalarVariableAccess * dataAccess
Function registerInputVectorVariableAccess
- InputVectorVariableAccess * dataAccess
Function registerOutputScalarVariableAccess
- OutputScalarVariableAccess * dataAccess
Function registerOutputVectorVariableAccess
- OutputVectorVariableAccess * dataAccess
Function checkMeshValidity
- const Region & region
Function checkMeshValidity
- const std::string & regionName
Function getRegion
- std::size_t index
Function SystemCoupling
- const SystemCoupling &
Function SystemCoupling
Function operator=
- const SystemCoupling &