CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

export scalars from a surface

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree5Likes
  • 3 Post By monkey1
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2012, 17:14
Default export scalars from a surface
  #1
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,122
Rep Power: 21
evcelica is on a distinguished road
Is there an easy way to export the numerical values of a scalar from a surface? Say I wanted temperature of a square flat region of a surface with a specified spacing between measurements.

Right now I just use 15 lines each with 15 samples each to give me my grid, but this seems very inefficient. Point clouds only work for vectors it seems?
evcelica is offline   Reply With Quote

Old   October 9, 2012, 10:56
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 13
monkey1 is on a distinguished road
You could write a perl script that increments an "x" and "y" variable within the range desired and creates for each x,y Pair a point where you then will call the "probe" function for Temperature and then write it to a .csv output readable in Excel....
monkey1 is offline   Reply With Quote

Old   October 9, 2012, 15:50
Default
  #3
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,122
Rep Power: 21
evcelica is on a distinguished road
Thanks for the reply,
Is this process described in the documentation somewhere? I'll have to look it up.
evcelica is offline   Reply With Quote

Old   October 10, 2012, 03:31
Default
  #4
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 13
monkey1 is on a distinguished road
I don't know if it is described. But for sure not in detail. You will have to write a perl script by yourself, save it as a .cse file and then "run" the file in post by selecting "Session->Play Session".
Don't know how familiar you are with the CEL/CCL...here is a portion of CEL/PERL Code that is supposed to do what I suggested, although I just noticed there must be a Bug somewhere...but had no time to search for it. Hope you are somewhat familiar with Perl so you can find out by yourself...
Maybe this is of some help anyhow.

The Lines beginning with # are comments and will be ignored by the compiler/interpreter.

You can rename the file from .txt to .cse and play it in post (if you get rid of the bug ).
Attached Files
File Type: txt Get_temp_at_point.txt (2.8 KB, 578 views)
Antanas, Nurzhan and savn like this.
monkey1 is offline   Reply With Quote

Old   October 10, 2012, 07:22
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,268
Rep Power: 136
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
And don't forget you could simply export the variable fromt he location directly, this uses the node points on the surface. They are only as regular as your mesh, and you cannot adjust the resolution of it, but it is easy and it is the resolution of the actual dataset.
monkey1 likes this.
ghorrocks is offline   Reply With Quote

Old   October 10, 2012, 10:32
Default
  #6
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 13
monkey1 is on a distinguished road
Of course Glenn is right and has found the easier way to export the scalars on a plane (as long as it is not mandatory to have specific positions). Cool just learned smth. new Thx Glenn!
monkey1 is offline   Reply With Quote

Old   September 13, 2016, 11:06
Default
  #7
Member
 
Thomas B
Join Date: Apr 2016
Location: Germany
Posts: 30
Rep Power: 8
Thomasbr is on a distinguished road
@monkey1: thanks for the .cse file you've written, I modified it in order for it to fit my case. I don't know if it works though: I can't seem to read the .cse file
Under 'Session' I only have

  • New Session
  • Start Recording
  • Stop Recording
Thomasbr is offline   Reply With Quote

Old   September 13, 2016, 11:19
Default
  #8
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 13
monkey1 is on a distinguished road
That's confusing.
When I open CFX POST and click on "Session" I have:
Play Session
------------
New Session
Start Recording
Stop Recording

Dunno where the difference may come from....
monkey1 is offline   Reply With Quote

Old   September 13, 2016, 11:47
Default
  #9
Member
 
Thomas B
Join Date: Apr 2016
Location: Germany
Posts: 30
Rep Power: 8
Thomasbr is on a distinguished road
Thanks for your answer:

when I open the .res file through ANSYS Workbench, I don't get 'Play Session', like I said. But if I open the .res file directly through CFD Post, it's ok

Now I'm trying to make it work but I got lots of errors. I will work on this and if it still does not work, I will try to post it here.
Thomasbr is offline   Reply With Quote

Old   November 13, 2018, 12:03
Default
  #10
Member
 
Thomas
Join Date: Nov 2017
Posts: 37
Rep Power: 7
hand90 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
And don't forget you could simply export the variable fromt he location directly, this uses the node points on the surface. They are only as regular as your mesh, and you cannot adjust the resolution of it, but it is easy and it is the resolution of the actual dataset.
Dear Glenn
I know this is a pretty old post but I would still be interested in how you export a variable of interest from its node points in CFD-Post for a transient simulation. Unfortunately I have no experience in writing a perl scrips.
hand90 is offline   Reply With Quote

Old   November 13, 2018, 17:55
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,268
Rep Power: 136
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You don't need perl to do this.

I was referring to the File/Export function. If you want to automate it record a session file and have a look at the text file it generates. You might be able to edit it to automate the functions you want.
hand90 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SampleDict patch export surface size amp orientation axel OpenFOAM Post-Processing 1 September 29, 2008 14:42
CCM+ Surface Wrapper Export Ross Kippenbrock Siemens 2 July 29, 2008 15:27
Patran Volume Meshing Deb CFX 19 April 17, 2003 11:56
Importing I-DEAS unv file hbetb FLUENT 1 August 10, 2001 14:22
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 07:47


All times are GMT -4. The time now is 20:55.