Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to define node sets

Status
Not open for further replies.

gugi91

Mechanical
Feb 22, 2015
15
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
 
Replies continue below

Recommended for you

If each node set has a single node in it, why not just refer to the node directly instead of creating a set?
 
Because I need sets for concentrated force definition. I want to prescribe load at every node (for this I already have script) ;)
 
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.
 
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
 
I work a lot with the text input files directly, so refer to the Abaqus Keywords Reference Manual.
 
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
 
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
 
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!
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor