|
[Sponsors] |
December 12, 2016, 18:10 |
Saving Value of Surface Integral
|
#1 |
New Member
Liam111
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Hello All,
I am attempting to find the value of a surface-integral and store it to a variable. (I would prefer an answer using Journal however is it is only possible in Scheme then I will work with that). So far I have tried: (define machnum1 ("/report/surface-integrals/mass-weighted-avg 13 , mach no")) I get an error: Error: eval: invalid function Error Object: "/report/surface-integrals/mass-weighted-avg 13 , mach no" Any help with this would be highly appreciated! |
|
December 13, 2016, 02:35 |
|
#2 | |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 13 |
Quote:
(pick-a-real"report/surface-integral/mwa (13) mach no")) |
||
December 13, 2016, 07:05 |
|
#3 | |
New Member
Liam111
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Quote:
I thought this would be enough, however I am running into a second issue. Basically I am trying to determine if the Mach number is greater than 1 and depending if it is or isn't change the cfl number. I have done: (if (> machnum1 1) (ti-menu-load-string "/solve/set/courant-number/10") (ti-menu-load-string "/solve/set/courant-number/100")) However it doesn't seem to be working, as "machnum1" is not an value (I should have specified I required this in numerical form in my original question - apoligies) I really have no clue where to go from here. Again, any help would be greatly appreciated! Cheers Last edited by bigbird142; December 13, 2016 at 09:50. |
||
December 13, 2016, 10:23 |
|
#4 | |
New Member
Liam111
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Quote:
I have found the solution: (define machnum1(string->number (pick "/report/surface-integrals/mass-weighted-avg (11) mach-number"))) This will create machnum1 as a double and allow one to use it in standard operations. |
||
Tags |
fluent, journal, scheme |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface integral on only part of a surface? | nathanblank | ANSYS | 2 | January 23, 2022 07:39 |
new-parameter :surface integral of velocity | nenazarian | Fluent UDF and Scheme Programming | 1 | December 6, 2013 03:16 |
[snappyHexMesh] Snap Precision to a STL Surface | malaboss | OpenFOAM Meshing & Mesh Conversion | 16 | July 26, 2013 02:44 |
[snappyHexMesh] Layers don't fully surround surface | EVBUCF | OpenFOAM Meshing & Mesh Conversion | 14 | August 20, 2012 05:31 |
Surface Integral - Mass Flow Rate | Venkatesh V | FLUENT | 3 | October 10, 2008 17:18 |