Jump to content
Dylan Stelzer

Importing Data as a Force Load

Recommended Posts

Hi,


 


I had a question concerning the integration of an array from Excel (or for that matter, any type of data where it is a string of numbers) into a boundary condition loading in HyperMesh. I have two arrays of length 126; is there any way to apply them to each of my 126 selected nodes in my HyperMesh model (it is composed of 2-D shell elements)? I've attached a picture of a section of the arc if that helps. I am trying to divide up a normal load over an arc into horizontal and vertical forces efficiently and quickly. If anyone has any suggestions, that would be greatly appreciated. Thanks!


 


Dylan Stelzer


post-35838-0-92941000-1439217282_thumb.p

Share this post


Link to post
Share on other sites
Guest

Maybe you need write a TCL script to read your Excel data and assign them to node group within Hypermesh.

Share this post


Link to post
Share on other sites

I'll google "how to" on the TCL script part, that doesn't sound too hard but where do I make the jump from reading Excel data to assigning them...I know there are only a few ways of assigning (specifically for me, I need it to be a force): components, vector, equation, linear interpolation, etc. etc.


 


Thanks for replying though!


Share this post


Link to post
Share on other sites
Guest

TCL has some library to read XLS/CSV files.


Have a look at following functions:



*loadcreate
*loadcreateonentitywithvars
*loadcreateonentity
*loadcreateonentity_curve
*loadcreatewithsystem
*loadcreatewithsystemonentity
*loadcreatewithsystemonentitywithvars

Here's work flow:


  1. Read data from XLS or CSV file
  2. Create new load collector (with *createentity(loadcols,name=....))
  3. Select some nodes (with *createmark ....)
  4. Apply load on selected nodes by using one of above functions.

HTH,


Share this post


Link to post
Share on other sites

I tried your method and did some research but still haven't had any luck for a few days now. I think I'll make a more detailed post and see if I can get any more specific information on where I'm running into problems. The tough part is that I've never even dealt with Tcl scripts before so I'm wondering in foreign land here. Thanks for your help though!


 


Dylan Stelzer


Share this post


Link to post
Share on other sites
On 13/08/2015 at 2:12 PM, Dylan Stelzer said:

I tried your method and did some research but still haven't had any luck for a few days now. I think I'll make a more detailed post and see if I can get any more specific information on where I'm running into problems. The tough part is that I've never even dealt with Tcl scripts before so I'm wondering in foreign land here. Thanks for your help though!

 

 

 

 

Dylan Stelzer

 

Hi @Dylan Stelzer,

 

Sorry to reopen this forum after 3 years. but I'm wondering if you've figured out the TCL script for the task above, as I'm trying to do something similar with pressures.

Cheers

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.


×
×
  • Create New...