×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

nSensor in UAMP subroutine

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

RE: nSensor in UAMP subroutine

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

RE: nSensor in UAMP subroutine

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources