deyentl
Materials
- Jul 12, 2011
- 39
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
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