×
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

Abaqus : Access to Refpoint data

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 !

RE: Abaqus : Access to Refpoint data

I assume you get something like that from the GUI:
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

(OP)
The problem is that I don't know the keyword used to save the refpoints. Is 'Model-1' the name you choose to give it ?

RE: Abaqus : Access to Refpoint data

??? Your answer makes no sense.

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

(OP)
Ok ! I think I understand. I'll try this as soon as possible.

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

No you can't, since you don't know the ID of the refpoint in advance. The model name and the 4 was just my example. These kind of informations are queried when the user selects the entities and passed to your kernel script.

RE: Abaqus : Access to Refpoint data

(OP)
Thanks but that's precisely my problem : the ref points are selected with the Iteration section of Abaqus, not in the GUI. Is there a way to access these information in the script ?

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

Little trick: you can use a variable to store some data while using the constructor to create the refpoint.

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.

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! Already a Member? Login


Resources

White Paper - PLM and ERP: Their Respective Roles in Modern Manufacturing
Leading manufacturers are aligning their people, processes, and tools from initial product ideation through to field service. They do so by providing access to product and enterprise data in the context of each person’s domain expertise. However, it can be complicated and costly to unite engineering with the factory and supply chain. Download Now
White Paper - Medical Device Design Control
Medical device product development is a highly integrated and regulated process. Implementation of a requirements tracking solution requires attention to a variety of nuanced topics. When presented with the task of tracking the many concept relationships in a project of this type, the initial software solution of choice tends to be a two-dimensional text systems. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close