-
-
January 8, 2024 at 6:42 am
Myunghyun Shin
SubscriberI am a mechanical engineering student studying autodyn subroutines.
Â
I encountered an issue while implementing the ideal gas equation of state using a subroutine, so I am writing to seek assistance.
Â
I have written a subroutine code as shown below.
When I attempt to build the code, I encounter an error as depicted in the image. Also, nothing happens when subroutine code is simulated in Autodyn.
Â
I am curious whether there are issues in the parts of the code where variable values are fetched and stored (getmlt, putmlt), or in the EOS calculation section (solve_eos_user1).
Â
Thanks and best regards,
Myunghyun Shin
-
January 8, 2024 at 5:00 pm
Chris Quan
Ansys EmployeeThe error message indicates that there was a problem with the calculation of the PP due to the use of an array.Â
Please check the definition of the PP in your user subroutine.
PP in the default Autodyn user subroutine is not an array. The user subroutines in the mdeos_user_1.f90 is called by every element at every time step. All the variables, PP, EE, P0, E0, etc are not an array.
How is the gamma defined? If it is defined by user-defined variable from Autodyn GUI, it is an array. Make sure the gamma is a constant, not an array.
Â
-
January 9, 2024 at 2:38 am
Myunghyun Shin
SubscriberThanks for you kind response!
As you mentioned, "variable gamma" is defined in "Module EOS_USER_1" just like the picture below(variable "rho" also!).
I changed the array size to "Dimension 1" just like your comment.
However, after I changed the array size of "variable gamma" to 1, the same error has occurred.
Why has the error occurred? I still have no idea about it.
-
-
- The topic ‘Autodyn subroutine issue – ideal gas EOS’ is closed to new replies.
- LS-DYNA Installation Issues with Student Workbench 2024 R2
- Cross-coupled stiffness elements in LS-DYNA
- Initial Velocity Generation
- MAT072R3- concrete damage rel3 validation
- Initial Stress Shell Application and HistVarCosine in LS-DYNA
- shape memory alloy material in LS-DYNA
- *** Error 40058 (SOL+58) retractor 1000002:convergence failure at time1.01E+02
- LS-Dyna, Negative volume problem.
- Johnson-Cook material strength model and the Johnson-Cook fracture model.
- Mohr_Coulomb material model (MAT_173)
-
1987
-
896
-
599
-
591
-
408
© 2025 Copyright ANSYS, Inc. All rights reserved.