GeorgeWeber
Materials
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
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