Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Abaqus - Creating an Orphan Mesh Part with Python Script

Status
Not open for further replies.

GeorgeWeber

Materials
Joined
Jan 11, 2013
Messages
1
Location
US
I am attempting to create an orphan mesh part with a python script in Abaqus 6.8. I have been working through the manual and cannot find a method or constructor that does this. At first, it looked like PartFromNodesAndElements(...) would do the job. However, the node definitions have repeatedly given me errors. Here is a test element that I tried to generate.

nodelabels = [1,2,3,4]
coords = [ [0.,0.,0.], [1.,0.,0.], [0.,1.,0.], [1.,1.,0.] ]

typ = 'CPE4R'
elelabels = [1]
eleconnect = [ [nodelabels] ]

mdb.models('Model-1').PartFromNodesAndElements(
name='Particle',
dimensionality=TWO_D_PLANAR,
type=DEFORMABLE_BODY,
nodes=
[
(nodelabels, coords)
],
elements=
[
[ (typ, elelabels, eleconnect) ]
]
)

I then wanted to use the Node constructor, but I need an orphan mesh part to start with.

28.9.1 Node(...)

This method creates a node on an orphan mesh part.

Path
mdb.models[name].parts[name].Node
Required argument

coordinates
A sequence of three Floats specifying the coordinates of the new node.

Optional arguments

localCsys
A DatumCsys object specifying the local coordinate system. If unspecified, the global coordinate system will be used.

label
An Int specifying the node label.


Does anyone have any ideas on ways to accomplish creating a set-defined mesh with a python script?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top