Skip to main content

System Coupling Fortran library 2024 R1

syscVariableF

Last update: 17.07.2025
1module fortran
2!
3! Copyright ANSYS, Inc.
4! Unauthorized use, distribution, or duplication is prohibited.
5!
6! Provide free-form Fortran interface for
7! System Coupling Participant Library.
8!
9! *********************************************************************
22! *********************************************************************
25 character(len=SyscStrLen) :: variablename
27 integer(kind=4) :: quantitytype
29 integer(kind=4) :: location
31 character(len=SyscStrLen) :: displayname
33 integer(kind=4) :: tensortype
35 logical :: isextensive
37 integer(kind=4) :: datatype
38end type syscvariablef
39!
40!**********************************************************************
42!**********************************************************************
43!
45!
46!**********************************************************************
63!**********************************************************************
64function syscgetvariablef(variableName) result(ret)
65!
66 import :: syscvariablef
67 character(len=*), intent(in) :: variablename
68 type(syscvariablef) :: ret
69!
70!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
71!DIR$ ATTRIBUTES DLLIMPORT :: syscGetVariableF
72!DIR$ ENDIF
73!
74end function syscgetvariablef
75!
76!**********************************************************************
94!**********************************************************************
95function syscgetvariablef_te(&
96 variableName, tensorType, isExtensive,&
97 location) result(ret)
98!
99 import :: syscvariablef
100 character(len=*), intent(in) :: variablename
101 integer(kind=4), intent(in) :: tensortype
102 logical, intent(in) :: isextensive
103 integer(kind=4), intent(in) :: location
104 type(syscvariablef) :: ret
105!
106!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
107!DIR$ ATTRIBUTES DLLIMPORT :: syscGetVariableF_TE
108!DIR$ ENDIF
109!
110end function syscgetvariablef_te
111!
112!**********************************************************************
143!**********************************************************************
144function syscgetvariablef_q(&
145 variableName, displayName, location, quantityType) result(ret)
146!
147 import :: syscvariablef
148 character(len=*), intent(in) :: variablename
149 character(len=*), intent(in) :: displayname
150 integer(kind=4), intent(in) :: location
151 integer(kind=4), intent(in) :: quantitytype
152 type(syscvariablef) :: ret
153!
154!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
155!DIR$ ATTRIBUTES DLLIMPORT :: syscGetVariableF_Q
156!DIR$ ENDIF
157!
158end function syscgetvariablef_q
159!
160!**********************************************************************
179!**********************************************************************
180function syscgetvariablef_teq(&
181 variableName, displayName, tensorType, isExtensive,&
182 location, quantityType) result(ret)
183!
184 import :: syscvariablef
185 character(len=*), intent(in) :: variablename
186 character(len=*), intent(in) :: displayname
187 integer(kind=4), intent(in) :: tensortype
188 logical, intent(in) :: isextensive
189 integer(kind=4), intent(in) :: location
190 integer(kind=4), intent(in) :: quantitytype
191 type(syscvariablef) :: ret
192!
193!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
194!DIR$ ATTRIBUTES DLLIMPORT :: syscGetVariableF_TEQ
195!DIR$ ENDIF
196!
197end function syscgetvariablef_teq
198!
199!**********************************************************************
221function syscgetvariablef_dtelqd(&
222 variableName, displayName, tensorType, isExtensive,&
223 location, quantityType, dataType) result(ret)
224!
225import :: syscvariablef
226character(len=*), intent(in) :: variablename
227character(len=*), intent(in) :: displayname
228integer(kind=4), intent(in) :: tensortype
229logical, intent(in) :: isextensive
230integer(kind=4), intent(in) :: location
231integer(kind=4), intent(in) :: quantitytype
232integer(kind=4), intent(in) :: datatype
233type(syscvariablef) :: ret
234!
235!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
236!DIR$ ATTRIBUTES DLLIMPORT :: syscGetVariableF_DTELQD
237!DIR$ ENDIF
238!
239end function syscgetvariablef_dtelqd
240!
241!**********************************************************************
242!
243end interface syscgetvariablef
244!
245!**********************************************************************
248!
249function syscvariableaddrealattributef(variable, attribute) result(ret)
250!
252type(SyscVariableF) :: variable
253type(SyscRealAttributeF) :: attribute
254type(SyscErrorF) :: ret
255!
256!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
257!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableAddRealAttributeF
258!DIR$ ENDIF
259!
261!
262!**********************************************************************
263!
265!
266!**********************************************************************
269!
270function syscvariableaddintegerattributef(variable, attribute) &
271 result(ret)
272!
274type(SyscVariableF) :: variable
275type(SyscIntegerAttributeF) :: attribute
276type(SyscErrorF) :: ret
277!
278!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
279!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableAddIntegerAttributeF
280!DIR$ ENDIF
281!
283!
284!**********************************************************************
285!
287!
288!**********************************************************************
291!
292function syscvariablegetnumrealattributesf(variable) result(ret)
293!
294import :: syscvariablef
295type(SyscVariableF) :: variable
296integer(kind=8) :: ret
297!
298!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
299!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableGetNumRealAttributesF
300!DIR$ ENDIF
301!
303!
305!
306!**********************************************************************
309!
310function syscvariablegetnumintegerattributesf(variable) result(ret)
311!
312import :: syscvariablef
313type(SyscVariableF) :: variable
314integer(kind=8) :: ret
315!
316!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
317!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableGetNumIntegerAttributesF
318!DIR$ ENDIF
319!
321!
323!
324!**********************************************************************
327!
328function syscvariablegetrealattributef(variable, index) result(ret)
329!
331type(SyscVariableF) :: variable
332integer(kind=8) :: index
333type(SyscRealAttributeF) :: ret
334!
335!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
336!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableGetRealAttributeF
337!DIR$ ENDIF
338!
340!
342!
343!**********************************************************************
346!
347function syscvariablegetintegerattributef(variable, index) result(ret)
348!
350type(SyscVariableF) :: variable
351integer(kind=8) :: index
352type(SyscIntegerAttributeF) :: ret
353!
354!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
355!DIR$ ATTRIBUTES DLLIMPORT :: syscVariableGetIntegerAttributeF
356!DIR$ ENDIF
357!
359!
361!
362end module fortran
Provide an interface to get a System Coupling variable.
Provide an interface to add integer attribute to a variable.
Provide an interface to add real attribute to a variable.
Provide an interface to get integer attribute from variable.
Provide an interface to get number of real attributes.
Provide an interface to get number of real attributes.
Provide an interface to get real attribute from variable.
Provide an error type returned by the Fortran interface calls.
Provide a struct for an integer-valued attribute.
Provide a struct for a real-valued attribute.
Provide a struct for a System Coupling variable.

Connect with Ansys