-
-
October 19, 2021 at 3:54 pmmarcansylSubscriber
Hi 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 KoutrasAnsys 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 pmmarcansylSubscriberThanks. 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 discussions- LS-DYNA Installation Issues with Student Workbench 2024 R2
- LS-Dyna CESE SMP d vs MPP d solver
- CESE solver – Ignition mechanism
- Cross-coupled stiffness elements in LS-DYNA
- Mathematical model generation stuck at 10%
- About combine different unconnected body into one part
- CONTROL_REFERENCE_CONFIGURATION
- Tiebreak using Segment set for contact b/w 20 noded Hexahedral elements
- shape memory alloy material in LS-DYNA
- CESE combustion model
Top Contributors-
1216
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 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.
-