×
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

Script to define node sets

Script to define node sets

Script to define node sets

(OP)
Hello everyone!
I need script to define node sets from node name. I read manual and found NodeSetFromNodeLabels command, how can I use this command. I want to define node set to every node in model (node 1-->nodeSet=N0001, node 2-->nodeSet=N0002,....).
Could anyone help me with some advice please?
Thank you for answer!!

regards
Nejc

RE: Script to define node sets

If each node set has a single node in it, why not just refer to the node directly instead of creating a set?

RE: Script to define node sets

(OP)
Because I need sets for concentrated force definition. I want to prescribe load at every node (for this I already have script) ;)

RE: Script to define node sets

You can define a force at a node by a number if it's only being applied at that node, no need to create a set containing a single node.

RE: Script to define node sets

(OP)
I didn't know that this is possible...Is it possible using CAE or only with script? Could you give me some tips about this...
Thank you!
regards

RE: Script to define node sets

I work a lot with the text input files directly, so refer to the Abaqus Keywords Reference Manual.

RE: Script to define node sets

I would do it with a script in the input file, not CAE.
The keyword and datalines for pointloads are simple:
*CLOAD
315, 1, 23
316, 3, 54
:
:

So at node 315 a load of 23 is applied in x-direction. And then comes the next load on the next line, and so on. See Keyword Reference Manual for more informations.

I would create a script that takes all nodes from the input file and creates a new file with all the datalines of the point loads. This new file is referenced with *INCLUDE from the main input file.

*CLOAD
*INCLUDE, Input=loadfilename

RE: Script to define node sets

(OP)
Many thanks for your answers!! I will try both ways...
Now I use this simple script:

a = mdb.models['Model-1'].rootAssembly

region = a.sets['N0023']

mdb.models['Model-1'].ConcentratedForce(name='N0023_1',

createStepName='Step-1', region=region, cf1=1.0, amplitude='N0023_1',

field='', localCsys=None)

Where I have simple C program to change names of sets/amplitudes/names of CF and I paste that to Abaqus command module... (Nxxxx is node number and _1/2/3 are directions)
Regards

RE: Script to define node sets

(OP)
Dear Mustaine3

I tried to use your method, but I get error:

in keyword *CLOAD, file "Job-1.inp", line 100: Unknown assembly id 1.
Concentrated load is specified on 1 nodes that are not active. Check loading definitions in the model. The nodes may have been deleted because they were not connected to any elements.
Analysis Input File Processor exited with an error.

I use this in input file:
*CLOAD
1, 2, 1.1

Have you maybe any idea where is the problem?

Thank you for your answer!

RE: Script to define node sets

Seems like this node is removed because he is not used by any element. Then will a load on that node create an error.

Request additional output in the datacheck with *Preprint, Model=yes and check the .dat.

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