barlume
Aerospace
- Jun 10, 2015
- 15
I am still playing with subroutines in Abaqus 6.13 and I was trying to obtain the most from them.
I am using the *Parameter card to obtain a standard code which can be used for different studies, just changing the parameters at the beginning.
My problem is that these parameters are not passed in the subroutine, as far as I have seen.
Here you are my example:
My SDV_2 is always equal to 0 and when I print h or N, they are equal to 0.
What can I do in order to add them?
Do I have to redefine them in the subroutine in this way:
?
Is there another method?
I defined many different parameters and I would prefer to avoid to repeat them.
Thank you very much
I am using the *Parameter card to obtain a standard code which can be used for different studies, just changing the parameters at the beginning.
My problem is that these parameters are not passed in the subroutine, as far as I have seen.
Here you are my example:
Code:
*PARAMETER
TIME_LOAD = 0.04
N = 2.
h = 0.1
Code:
do 100 k = 1, nblock
X = coordMp(k,1)
Y = coordMp(k,2)
Z = coordMp(k,3)
c
FIELD(k,1) = Z
stateNew(k,1)= Z
stateNew(k,2)=(Z+h)**N
My SDV_2 is always equal to 0 and when I print h or N, they are equal to 0.
What can I do in order to add them?
Do I have to redefine them in the subroutine in this way:
Code:
parameter(N=2.d0, h=0.1d0, TIME_LOAD=0.04d0)
Is there another method?
I defined many different parameters and I would prefer to avoid to repeat them.
Thank you very much