|
[Sponsors] |
October 3, 2012, 17:14 |
export scalars from a surface
|
#1 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
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? |
|
October 9, 2012, 10:56 |
|
#2 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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....
|
|
October 9, 2012, 15:50 |
|
#3 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
Thanks for the reply,
Is this process described in the documentation somewhere? I'll have to look it up. |
|
October 10, 2012, 03:31 |
|
#4 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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 ). |
|
October 10, 2012, 07:22 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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.
|
|
October 10, 2012, 10:32 |
|
#6 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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!
|
|
September 13, 2016, 11:06 |
|
#7 |
Member
Thomas B
Join Date: Apr 2016
Location: Germany
Posts: 30
Rep Power: 10 |
@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
|
|
September 13, 2016, 11:19 |
|
#8 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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.... |
|
September 13, 2016, 11:47 |
|
#9 |
Member
Thomas B
Join Date: Apr 2016
Location: Germany
Posts: 30
Rep Power: 10 |
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. |
|
November 13, 2018, 12:03 |
|
#10 | |
Member
Thomas
Join Date: Nov 2017
Posts: 37
Rep Power: 9 |
Quote:
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. |
||
November 13, 2018, 17:55 |
|
#11 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
June 22, 2023, 08:53 |
|
#12 |
New Member
mar
Join Date: May 2023
Posts: 2
Rep Power: 0 |
same problem here. Is this still working and also for ansys fluent?
|
|
June 22, 2023, 19:20 |
|
#13 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
It should work fine for fluent data.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
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 |