nSensor in UAMP subroutine
nSensor in UAMP subroutine
(OP)
Hello,
I'm using a UAMP user subroutine.
I'm trying to use the number of sensors (nSensor) passed in from Abaqus to use to control a DO loop that names the sensors in the subroutine.
However when I check the output file nSensor is coming up as zero when it should be 122 in the example I'm trying. Any ideas? I've tried setting something to be equal to nSensor and outputting that but this is also zero. I've also tried len(sensorNames), sensorNames being nSensor long, but this also comes out as zero.
Any help would be appreciated.
Thanks
George
I'm using a UAMP user subroutine.
I'm trying to use the number of sensors (nSensor) passed in from Abaqus to use to control a DO loop that names the sensors in the subroutine.
However when I check the output file nSensor is coming up as zero when it should be 122 in the example I'm trying. Any ideas? I've tried setting something to be equal to nSensor and outputting that but this is also zero. I've also tried len(sensorNames), sensorNames being nSensor long, but this also comes out as zero.
Any help would be appreciated.
Thanks
George





RE: nSensor in UAMP subroutine
I use UAMP & VUAMP seburoutines with my models.
I never tested "nSensors" variable but after your post I did it.
In all my runs I got correct value, number of sensors outputs in inputdeck.
Do you mind to post your subroutine?
I would like to take a look for it.
Best Regards,
Bartosz
RE: nSensor in UAMP subroutine
Thanks for taking the time to have a look.
Cheers
George