Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

nSensor in UAMP subroutine

Status
Not open for further replies.

GeorgeEllwood

Mechanical
Aug 22, 2006
134
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
 
Replies continue below

Recommended for you

Hello George,

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
 
Hi Bartosz, thanks for the response. I've found the problem I was trying to output nSensors as a real number when it's an integer. So my output was coming out as 0.0000 whereas the nSensors was being passed in and used correctly just my formatting of the output file was incorrect.
Thanks for taking the time to have a look.
Cheers
George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor