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 JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a shell part using nodal coordinates in ABAQUS

Status
Not open for further replies.

xli

Student
Joined
Oct 22, 2023
Messages
8
Location
CA
Hello!

I'd like to create a triangular shell part in ABAQUS using its nodal cooordinates in 3D. For example, how can I make a trianglular shell with vertices (0,0,0), (1,2,3), (3,2,1)? Would it be possible to create parts like this with python scripts since I have too many of them?

Thank you!
 
Sure, you can use Python scripting for that. There is a Node(…) method that takes coordinates as input. Then you can use Element(…) method to create elements based on those nodes. Check the Scripting Reference guide in Abaqus documentation for more details ahout those commands.
 
Thank you, it worked! However, the part I created only have one element. How can I break it down into a finer mesh?
 
I've figured it out. Thank you so much for the help!

Here are my codes:

from abaqus import *
import testUtils
testUtils.setBackwardCompatibility()
from abaqusConstants import *
from caeModules import *
import sketch
import part
from regionToolset import*
import load
from shutil import *
from odbAccess import *
import assembly


m = mdb.Model(name = 'Model-1')
p = m.Part(name='Panel1', dimensionality=THREE_D,
type=DEFORMABLE_BODY)
n1 = p.Node(coordinates=(0,0,0))
n2 = p.Node(coordinates=(1,2,3))
n3 = p.Node(coordinates=(3,2,1))
e1 = p.Element(nodes=(n1,n2,n3),elemShape=TRI3)
side1Elements = p.elements
p.FaceFromElementFaces(elementFaces=regionToolset.Region(
side1Elements=side1Elements))
p.deleteMesh()
p.seedPart(size=1.0, deviationFactor=0.1, minSizeFactor=0.1)
p.generateMesh()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top