Skip to main content

System Coupling Participant library 2026 R1

File syscVariable.h

Last update: 09.03.2026

Location: syscVariable.h

Classes

Includes

  • SystemCouplingParticipant/LibraryType.hpp
  • SystemCouplingParticipant/syscCommonTypes.h
  • SystemCouplingParticipant/syscAttribute.h
  • <stddef.h>
graph LR
1["syscVariable.h"]
click 1 "syscVariable_8h.md#syscVariable_8h"
1 --> 2
1 --> 3
1 --> 4
1 --> 5

2["SystemCouplingParticipant/LibraryType.hpp"]

4["SystemCouplingParticipant/syscAttribute.h"]

3["SystemCouplingParticipant/syscCommonTypes.h"]

5["stddef.h"]

Typedefs

Typedef SyscVariable

Functions

Function syscGetVariable

Function syscGetVariableDTELQD

Function syscGetVariableTE

Function syscGetVariableTEQ

Function syscGetVariableQ

Function syscVariableAddRealAttribute

Function syscVariableAddIntegerAttribute

Function syscVariableGetNumRealAttributes

Function syscVariableGetNumIntegerAttributes

Function syscVariableGetRealAttribute

Function syscVariableGetIntegerAttribute

Source

/*
* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*/

#pragma once

#include "SystemCouplingParticipant/LibraryType.hpp"

#include "SystemCouplingParticipant/syscCommonTypes.h"
#include "SystemCouplingParticipant/syscAttribute.h"

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif


typedef struct SyscVariable {
  char name[SYSC_STRING_LENGTH];        
  enum SyscQuantityType quantityType;   
  enum SyscLocation location;           
  char displayName[SYSC_STRING_LENGTH]; 
  enum SyscTensorType tensorType;       
  int isExtensive;                      
  enum SyscDataType dataType;           
} SyscVariable;

 SyscVariable syscGetVariable(
  const char* name);

 SyscVariable syscGetVariableDTELQD(
  const char* name,
  const char* displayName,
  enum SyscTensorType tensorType,
  int isExtensive,
  enum SyscLocation location,
  enum SyscQuantityType quantityType,
  enum SyscDataType dataType);

 SyscVariable syscGetVariableTE(
  const char* name,
  enum SyscTensorType tensorType,
  int isExtensive,
  enum SyscLocation location);

 SyscVariable syscGetVariableTEQ(
  const char* name,
  const char* displayName,
  enum SyscTensorType tensorType,
  int isExtensive,
  enum SyscLocation location,
  enum SyscQuantityType quantityType);

 SyscVariable syscGetVariableQ(
  const char* name,
  const char* displayName,
  enum SyscLocation location,
  enum SyscQuantityType quantityType);


SyscError syscVariableAddRealAttribute(
  SyscVariable variable,
  SyscRealAttribute attribute);


SyscError syscVariableAddIntegerAttribute(
  SyscVariable variable,
  SyscIntegerAttribute attribute);


size_t syscVariableGetNumRealAttributes(SyscVariable variable);


size_t syscVariableGetNumIntegerAttributes(SyscVariable variable);


SyscRealAttribute syscVariableGetRealAttribute(
  SyscVariable variable,
  size_t index);


SyscIntegerAttribute syscVariableGetIntegerAttribute(
  SyscVariable variable,
  size_t index);


#ifdef __cplusplus
}
#endif

Connect with Ansys