Jump to content
Sign in to follow this  
yao

How do I get text file with x, y, z, Temperature on a Surface ?

Recommended Posts

To get date in desired format, first get the complete set of nodes from Nodal Output, then parse that for just the nodes on the surface. If you are using Linux (or cygwin on Windows) you can do the following:


1. Extract the nodes for the surface in question - let's say the surface set is Wall_1 and the EBC file in MESH.DIR is Wall_1.ebc
reform -3,100,1 Wall_1.ebc | sort -nu > Wall_1.nbc
Wall_1.nbc will have the node numbers on the surface Wall_1

2. Get the nodes, coordinates, and temperature for the model using acuTrans:
acuTrans -out -extout -to table -outv node,coordinates,temperature
Let's say this creates a file called problem1_step100.out

3. Extract the information from the .out file for only the nodes on the surface:
unique -i Wall_1.nbc problem1_step100.out > Wall_1.temp
This will extract the lines from problem1_step100.out that have the same first column (the node number) as Wall_1.nbc.

Both reform and unique are in the /tools/ directory of the Linux installation. These will also work on Windows as well if you have Cygwin installed (or some other Unix/Linux emulator).

 

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