Jump to content
Sign in to follow this  
rjromijnders

How to create a list of area, volume and total mass for all components

Recommended Posts

Hi all,

 

I was wondering if it would be possible to generate a table of components, with the area, volume and total mass.

It would look something like this:

 

myFilename.txt or myFilename.csv (at least a text-based file format)

 

ComponentID1, ComponentName01, Area, Volume, TotalMass

ComponentID2, ComponentName02, Area, Volume, TotalMass

et cetera

 

Previously, I have used Tools > Mass calc, and then manually noted down the values in an Excel file.

My model is becoming to big at the moment to keep working like that.

 

Kind regards,

Robbin

Share this post


Link to post
Share on other sites
Guest

Try my script. Here's is output for my test:

ID,Name,Area,Volume,Mass
22,m_QUAD4,4.02940827E+002,6.04411241E+002,4.71440768E-006
24,m_QUAD8,4.00000000E+002,6.00000000E+002,4.68000000E-006
31,m_TET4,0.00000000E+000,3.91417029E+003,3.05305282E-005
32,m_TET10,0.00000000E+000,3.91417029E+003,3.05305282E-005

HTH,

check_comp_NGUYENDAI_20160407.zip

Share this post


Link to post
Share on other sites

I have downloaded your script, and try to use it via:

 

File > Run / Tcl/Tk script

 

I am given the opportunity to select a component then, and to click Proceed.

It seems like something is happening, but it took quite long.

 

Hence, I did setup a small model of just a simple beam that is loaded on one side, and constrained on the other.

Again I ran the script, choose the component, but nothing seems to happen.

 

Do you mind sharing your source code, or explain how you would access the values (area, volume, mass)?

 

Kind regards,

Robbin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...