-
-
October 19, 2021 at 3:54 pm
marcansyl
SubscriberHi all,
I am using LS Dyna to model bond-slip of steel and concrete. I am using Beam In Solid, and I am implementing a user-defined function. I want to declare a static variable in the function because I want it to change it value each time the function is called. Do you know how I can do that ? And also, do you know which coding language LS Dyna uses ?
Marc
October 25, 2021 at 7:37 pmAndreas Koutras
Ansys EmployeeHello It seems that you are trying to implement a subroutine "rebar_bondslip_get_force" in the umat package. The umat subroutines are written in Fortran. To define a global variable, you can write a module in the umat file. For example, to define an integer global variable "icounter", you can copy following lines in dyn21.F. You can look online for general information and examples on Fortran commands. I hope this helps.
module example
implicit none
save
integer icounter
end module example
October 26, 2021 at 4:15 pmmarcansyl
SubscriberThanks. It is very helpful. Do you know how I can access the file dyn21.F ?Viewing 2 reply threads- The topic ‘Static Variable in User Defined Function’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3407
-
1057
-
1051
-
896
-
887
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY