×
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

ABAQUS: Calculating area of a Solid Of Revolution

ABAQUS: Calculating area of a Solid Of Revolution

ABAQUS: Calculating area of a Solid Of Revolution

(OP)
Hello,

I would like to calculate the area and volume of the solid of revolution obtained by revolving a sketch. I have used the query tool (mass properties) to get such values. The volume is OK but the area is equal to zero. How can this be possible? This is the warning I get from abaqus:

"Warnings: Some mass properties could not be computed due to the following issues detected while querying the selected region(s) - zero thickness, zero material density, missing section definition."

Is there any other method/work-around to calculate the area of the Solid of revolution?

I add the code in case someone finds it clarifying somehow.

Thank you!


from abaqus import *
from abaqusConstants import *

#Definitions
model=mdb.models['Model-1']
assy=model.rootAssembly
assy.DatumCsysByDefault(CARTESIAN)

#Sketch
s0 = model.ConstrainedSketch(name='__poly0__',sheetSize=2000.0)
s0.Line(point1=(914.1, 554.1), point2=(914.1, 579.2))
s0.Line(point1=(914.1, 579.2), point2=(928.8, 579.2))
s0.Line(point1=(928.8, 579.2), point2=(928.8, 554.1))
s0.Line(point1=(928.8, 554.1), point2=(914.1, 554.1))

#Shell from the sketch
p0 = model.Part(name='Part-0', dimensionality=THREE_D,type=DEFORMABLE_BODY)
p0 = model.parts['Part-0']
p0.BaseShell(sketch=s0)

#Solid of revolution
s0.ConstructionLine(point1=(0.0,0.0), point2=(1.0, 0.0))
pr0 = model.Part(name='Part-0-r', dimensionality=THREE_D,type=DEFORMABLE_BODY)
pr0 = model.parts['Part-0-r']
pr0.BaseSolidRevolve(angle=360.0, flipRevolveDirection=ON, sketch=s0)
del model.sketches['__poly0__']
assy.Instance(dependent=ON, name='Part-0-r-1', part=pr0)

#How can a solid of revolution have volume but not area (?)
volumeRing0= assy.getMassProperties()['volume']
print volumeRing0
areaRing0= assy.getMassProperties()['area']
print areaRing0

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