×
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

NFORC difference between scripting and GUI

NFORC difference between scripting and GUI

NFORC difference between scripting and GUI

(OP)
Hello,

This question was asked before by deyentl but nobody answered it. Now I have the same problem. I'd really appreciate it if you could give me an idea that what;s the reason.
I copied the question here:

Hello everybody,

I'm trying to calculate the nodal forces in a very simple model with only 8 elements. I have two approaches, and I would expect both to be equivalent, but they aren't. The first method uses the GUI to plot the NFORC1 field output and then goes to Tools > Query > Probe Values. The second model uses scripting by the following command:

nodal_forces = myodb.steps['Step-1'].frames[-1].fieldOutputs['NFORC1']
node = odb.rootAssembly.instances[InstanceName].nodes[5] #Or any other number
nodal_forces.getSubset(region = node).values[0].data

To make the case even stronger, the value reported by the GUI is not found at any node through scripting. Therefore, it cannot be related to using the wrong index or anything like that.

Do you have any idea what may be causing this remarkable contradiction between GUI and scripting?

Best regards
deyentl

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