Use of *Parameter card and subroutines
Use of *Parameter card and subroutines
(OP)
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 --> MainFile
*PARAMETER TIME_LOAD = 0.04 N = 2. h = 0.1
CODE --> Subroutine
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 --> Subroutine
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





RE: Use of *Parameter card and subroutines
RE: Use of *Parameter card and subroutines
However, I would like to change the declaration vusdfld() at the beginning of the code to say I am adding also parameters from the INP file.
Or add some lines in the subroutine to recall the parameters I have already calculated in my INP file.
Is it possible?
In this way I would be able to have much more possibilities in my work (parametric analyses with subroutines).
RE: Use of *Parameter card and subroutines
But without knowing the overall thing you try to do, it is hard to recommend something.
RE: Use of *Parameter card and subroutines
To pass any value from inputdeck to VUSDFLD subroutine you can use PROPERTIES option and props array.
CODE
CODE
Remember to have always enough PROPERTIES size to pass all values you need.
CODE
CODE
Since props array is declared as real all values from inputdeck will be real as well.
Regards,
Bartosz