Skip to main content

System Coupling C Library 2023 R2

syscCommonTypes

Last update: 17.07.2025
1/*
2* Copyright 2023 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
3*/
4
5#pragma once
6
7#include "SystemCouplingParticipant/LibraryType.hpp"
8
9#include "SystemCouplingParticipant/syscElementTypes.h"
10
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
23#define SYSC_STRING_LENGTH 256
24
28 SyscElement = 1
29};
30
34 SyscVector = 1
35};
36
40 SyscVolume = 3
41};
42
47};
48
51 SyscInterfaceSide_One = 1,
52 SyscInterfaceSide_Two = 2
53};
54
56typedef struct {
57 double length;
58 double time;
59 double mass;
60 double temperature;
62 double current;
64 double angle;
66
70
80 SyscUnspecified = 0,
81 SyscForce = 1,
82 SyscIncrementalDisplacement = 2,
83 SyscTemperature = 3,
84 SyscHeatRate = 4,
85 SyscHeatTransferCoefficient = 5,
86 SyscConvectionReferenceTemperature = 6,
87 SyscModeShape = 7,
88 SyscElectricalConductivity = 8
89};
90
91enum SyscDataType {
92 SyscDataType_Real = 0,
93 SyscDataType_Complex = 1
94};
95
98 SyscDiverging = -1,
99 SyscNotYetConverged = 0,
100 SyscConverged = 1,
101 SyscComplete = 2,
102 SyscNotEvaluated = 3
103};
104
108 SyscTransient = 1
110
112typedef struct {
114 double startTime;
117
119typedef struct SyscSolutionControl {
123
125typedef struct {
127 char message[SYSC_STRING_LENGTH];
128} SyscError;
129
132SyscError syscGetSyscError(int retcode, const char* message);
133
143
144typedef void* SyscOpaqueDataAccess;
146/******************************* Setup info **********************************/
147
160typedef struct SyscSetupInfo {
164
174
184 enum SyscAnalysisType analysisType);
185
195 enum SyscAnalysisType analysisType,
196 int restartsSupported);
197
198/**************************** Setup file info ********************************/
199
212typedef struct SyscSetupFileInfo {
216
227 const char* setupFileName);
228
229/***************************** Results info **********************************/
230
232typedef struct SyscResultsInfo {
235
242SyscResultsInfo syscGetResultsInfo(const char* baseFileName);
243
271typedef struct SyscParticipantInfo {
272 char scHost[SYSC_STRING_LENGTH];
273 unsigned short scPort;
274 char participantName[SYSC_STRING_LENGTH];
275 char buildInformation[SYSC_STRING_LENGTH];
276 char transcriptFilename[SYSC_STRING_LENGTH];
278
306SyscParticipantInfo syscGetParticipantInfo(
307 const char* scHost,
308 unsigned short scPort,
309 const char* participantName);
310
311
312SyscParticipantInfo syscGetParticipantInfoB(
313 const char* scHost,
314 unsigned short scPort,
315 const char* participantName,
316 const char* buildInformation);
317
318
319SyscParticipantInfo syscGetParticipantInfoBT(
320 const char* scHost,
321 unsigned short scPort,
322 const char* participantName,
323 const char* buildInformation,
324 const char* transcriptFileName);
325
326#ifdef __cplusplus
327}
328#endif
SyscTensorType
Provide an enum for variable tensor type.
SyscConvergenceStatus
Provide enum for participant's solver convergence status.
void * SyscOpaqueDataAccess
SyscError syscGetSyscError(int retcode, const char *message)
Provide a function to return SyscError struct.
SyscDimensionality syscGetDimensionality()
Get dimensionality.
SyscSetupInfo syscGetSetupInfoAR(enum SyscAnalysisType analysisType, int restartsSupported)
Create a setup info struct.
SyscSetupInfo syscGetSetupInfo()
Create a setup info struct.
SyscAnalysisType
Provide an enum for coupled analysis type.
struct SyscSetupInfo SyscSetupInfo
Provide a structure for System Coupling setup information.
SyscRegionDiscretizationType
Provoide an enum for region mesh type.
struct SyscSetupFileInfo SyscSetupFileInfo
Provide a structure for writing System Coupling setup files.
SyscQuantityType
Provide an enum for supported quantity types.
struct SyscSolutionControl SyscSolutionControl
Provide a structure containing solution control.
#define SYSC_STRING_LENGTH
Define maximum string length.
SyscTopology
Provide an enum for region topologies.
SyscResultsInfo syscGetResultsInfo(const char *baseFileName)
Provide a function to create SetupFileInfo struct.
SyscSetupFileInfo syscGetSetupFileInfo(const char *setupFileName)
Provide a function to create SetupFileInfo struct.
struct SyscResultsInfo SyscResultsInfo
Provide a structure for writing results files.
SyscInterfaceSide
Provide enum for coupling interface side.
SyscPrimitiveType
Provide an enum for supported primitive types.
SyscLocation
Provide an enum for variable mesh locations.
SyscSetupInfo syscGetSetupInfoA(enum SyscAnalysisType analysisType)
Create a setup info struct.
@ SyscVector
@ SyscScalar
@ SyscTransient
@ SyscSteady
@ SyscPointCloudRegion
@ SyscMeshRegion
@ SyscVolume
@ SyscSurface
@ SyscInt32
@ SyscDouble
@ SyscFloat
@ SyscUnsignedInt64
@ SyscInt64
@ SyscUnsignedInt16
@ SyscElement
@ SyscNode
Provide a structure for dimensionality.
Provide a struct for detecting errors from the interface calls.
Provide a structure to provide connection info to System Coupling.
Provide a structure for writing results files.
char baseFileName[SYSC_STRING_LENGTH]
Provide a structure for writing System Coupling setup files.
char setupFileName[SYSC_STRING_LENGTH]
Provide a structure for System Coupling setup information.
enum SyscAnalysisType analysisType
Provide a structure containing solution control.
Provide a struct for time step.

Connect with Ansys