Jump to content
raj

read result file using tcl

Recommended Posts

On 4/2/2017 at 9:42 AM, raj said:

Hi all,

I am new to tcl scripting

How can i read required data from .res file using tc lscripting

Thankyou in advance.

 

 

Dear,

I think .res file is a binary file

There is reference guide about how to read results using hmreslib.lib

looking for it in Hypermesh Help

Share this post


Link to post
Share on other sites

hi tinh,

thank you for your response

not only .res fie sir any other output  files like .out file or .op2 file

is there any separate keyword for reading those.will it be available in reference guide

 

regards

raj 

 

Share this post


Link to post
Share on other sites

Hi,

I am not sure whether it is listed in reference guide

.out file seems to be a text file and you can parse it by tcl commands open, gets, ...

but .op2, .res files contains structured data and you need to look for their format definition

Alternative solution: open them in hyperview and use tcl to parse known data. There is reference guide about tcl classes used in hyperview

Share this post


Link to post
Share on other sites

Hi tinh,

My requirement is I want to get 5 first order nodes  of tetra elements for example (number will varies)nearest to the selected node.

But using hm_getclosestnode I am getting one node only.. is there any way to do this.

Please assist me to get solution.

Thnks

Share this post


Link to post
Share on other sites

hi, add it to a mark to ignore in next search:

Set closest1 [hm_getclosestnode x y z]

*createmark nodes 1 $closest1

Set closest2 [hm_getclosestnode x y z 0 1]

*appendmark nodes 1 $closest2

Set closest3 ....

*appendmark...

Share this post


Link to post
Share on other sites

Hi tinh,

thank you for ur suggestion.

While doing this it is considering 2nd order nodes also..but I want to ignore 2nd order node.(in tetra mesh)

And while appending it considering selected node also as nearest node.

thank you

Share this post


Link to post
Share on other sites

Hi tinh,

Thank you very much ..i got with this.

I have a question ..reference I have is node number .with this node ..how to get a node in x direction on other side of component elements

Other end distance may varies in x direction.i want to get a perpenduclar opposite node to the selected node on the component outer surface elements.

Thank you.

 

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...