CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   field function report new value each iteration (https://www.cfd-online.com/Forums/star-ccm/138261-field-function-report-new-value-each-iteration.html)

hebeldebel July 1, 2014 09:14

field function report new value each iteration
 
Hi,

I created a field function with a variable from a report ${nameofthereport} , I created a monitor for the report as well. Do I need to set an option for ccm+ to read in the value of ${nameofthereport} each iteration, or does this happen on its own?

Thanks for your help

kind regards
hebeldebel

This is the field function I wrote:

(9E-05)*${TemperaturKupferMitteReport}*${TemperaturKup ferMitteReport}-0.0144*${TemperaturKupferMitteReport}+10.382

I use it to define a volumetric heat source as a function of the temperature on a specific point. When I do the same calculation with my calculator I get approx. 9.8 Watt, when i do a heat transfer report on the region with the volumetric heat source, I get ~ 17 Watt. As ${TemperaturKupferMitteReport} lies between 60 and 130, something must be wrong with my field function.

me3840 July 1, 2014 13:25

No, this happens every time the field function is calculated, you don't have to specify an update frequency.

Are you sure your report contains no other heat transfer from other places in the region? That sounds like it's happening to me.

hebeldebel July 3, 2014 07:57

Thank you for your answer

Quote:

Originally Posted by me3840 (Post 499545)
No, this happens every time the field function is calculated, you don't have to specify an update frequency.

And the field function is automatically recalculated, after every iteration, right?

Quote:

Originally Posted by me3840 (Post 499545)
Are you sure your report contains no other heat transfer from other places in the region? That sounds like it's happening to me.

I double checked the report of the volumetric heat source. There are two interfaces (as there should be).

me3840 July 3, 2014 10:23

The field function is automatically calculated every time it needs to be. When it is called, it is calculated. How often it is called depends on how you've implemented it. If it's in a monitor that's updated every iteration, that would then calculate it every iteration.

Well, I don't know what your field function really means since there's a few constants in there, but it doesn't look like the 1d HX equation I've seen many-a-times.

hebeldebel July 11, 2014 07:56

It is a formula I derived from the datasheet of a LED manufacturer and its power output varies with the temperature. I typed the same equation into excel, created a monitor for the boundary I took the temperature and did the calculation with excel. I got the right wattage, but the output of the heat transfer report (of the volumetric heat source) shows a much higher number for the following iteration, than expected.

Something must be wrong with the way, I wrote the field function.

Here is another point:
the input ${TemperaturKupferMitteReport} is a temperature in C, while the field function I try to write is defined as Power [W] is this a problem?

the excel formula reads as:
=0.00009*L53*L53-0.0144*L53+10.382

L53 is the cell with the temperature value

me3840 July 14, 2014 00:56

It's a problem if the report outputs something other than C. I would just make everything in Kelvin and see if you get the same answer.

hebeldebel July 14, 2014 07:23

Hi me3840,

thanks for your answer, I tried it but still got some weird results, so I tried it all again, . . . turns out I had some rounding errors in my calculation and therefore got wrong values :rolleyes: . Everything works now. :)

lj0812 September 6, 2017 02:01

Hi hebeldebel,
What's rounding errors you mentioned in star? It's maybe a answer of my difficulty for a long time.


All times are GMT -4. The time now is 23:29.