Abaqus : Access to Refpoint data
Abaqus : Access to Refpoint data
(OP)
Hello,
I'm currently working on improving a plug-in for Abaqus. When using the plug-in, we need to select some reference points in the Interaction section of Abaqus. Then we chose to use them in the plug-in.
I then need to have access to the coordinates of the ref points but I can't find them. Do you have any idea how to do that ? the only methods I found needed the Reference points to be defined in the code.
Here's the part of the code I have :
self.label1=FXLabel(hf, 'Select the first RefPoint (E11,E22)', opts=JUSTIFY_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
FXButton(hf, 'Edit...',None,self,self.ID_M1,opts=LAYOUT_RIGHT|BUTTON_NORMAL)
Thanks for your help !
I'm currently working on improving a plug-in for Abaqus. When using the plug-in, we need to select some reference points in the Interaction section of Abaqus. Then we chose to use them in the plug-in.
I then need to have access to the coordinates of the ref points but I can't find them. Do you have any idea how to do that ? the only methods I found needed the Reference points to be defined in the code.
Here's the part of the code I have :
self.label1=FXLabel(hf, 'Select the first RefPoint (E11,E22)', opts=JUSTIFY_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
FXButton(hf, 'Edit...',None,self,self.ID_M1,opts=LAYOUT_RIGHT|BUTTON_NORMAL)
Thanks for your help !





RE: Abaqus : Access to Refpoint data
refpoint_x = mdb.models['Model-1'].rootAssembly.referencePoints[4]
Then you could use:
mdb.models['Model-1'].rootAssembly.getCoordinates(refpoint_x)
RE: Abaqus : Access to Refpoint data
RE: Abaqus : Access to Refpoint data
Model-1 is the model name that the user is using in A/CAE. Model-1 is the default name, but it also could be something else.
refpoint_x is the variable name that might be defined as the variable that passes the information to the kernel script.
Both information can then be used in the kernel script to do the work.
RE: Abaqus : Access to Refpoint data
One last question though: Can I just add the line refpoint_x = mdb.models['Model-1'].rootAssembly.referencePoints[4] right under the FXButton ? Will the program understand which refpoint I'm talking about ?
RE: Abaqus : Access to Refpoint data
RE: Abaqus : Access to Refpoint data
I know I wasn't clear enough in my post so I'll try to give a better explanation :
The plug-in uses Abaqus to create the system and create the reference points. It then asks you to select the ref points and sections you want to use for your simulation and proceeds with the calculs.
My problem is that I want to have access to the data after the ref points are created through a normal use of abaqus.
RE: Abaqus : Access to Refpoint data
a = mdb.models['Model-1'].rootAssembly
data_refpoint = a.ReferencePoint(point=(0.0, 0.0, 0.0))
Behind the variable data_refpoint you have now a couple of information, which includes also the feature ID.
Try it on an simple example and use 'print' to see what data you can access.