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

export scalars from a surface

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

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Display Modes
Old   October 3, 2012, 16:14
Default export scalars from a surface
  #1
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 487
Rep Power: 10
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, 09:56
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 120
Rep Power: 6
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, 14:50
Default
  #3
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 487
Rep Power: 10
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, 02:31
Default
  #4
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 120
Rep Power: 6
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, 67 views)
monkey1 is offline   Reply With Quote

Old   October 10, 2012, 06:22
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,951
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 09:32
Default
  #6
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 120
Rep Power: 6
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

Reply

Thread Tools
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 On
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 13:42
CCM+ Surface Wrapper Export Ross Kippenbrock CD-adapco 2 July 29, 2008 14:27
Patran Volume Meshing Deb CFX 19 April 17, 2003 10:56
Importing I-DEAS unv file hbetb FLUENT 1 August 10, 2001 13:22
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 06:47


All times are GMT -4. The time now is 09:42.