|
[Sponsors] |
field function report new value each iteration |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2014, 10:14 |
field function report new value each iteration
|
#1 |
Member
Join Date: Jan 2014
Posts: 40
Rep Power: 12 |
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. Last edited by hebeldebel; July 1, 2014 at 11:06. Reason: Added the equation |
|
July 1, 2014, 14:25 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 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. |
|
July 3, 2014, 08:57 |
|
#3 | |
Member
Join Date: Jan 2014
Posts: 40
Rep Power: 12 |
Thank you for your answer
Quote:
I double checked the report of the volumetric heat source. There are two interfaces (as there should be). |
||
July 3, 2014, 11:23 |
|
#4 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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. |
|
July 11, 2014, 08:56 |
|
#5 |
Member
Join Date: Jan 2014
Posts: 40
Rep Power: 12 |
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 Last edited by hebeldebel; July 11, 2014 at 10:02. Reason: more information |
|
July 14, 2014, 01:56 |
|
#6 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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.
|
|
July 14, 2014, 08:23 |
|
#7 |
Member
Join Date: Jan 2014
Posts: 40
Rep Power: 12 |
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 . Everything works now. |
|
September 6, 2017, 03:01 |
|
#8 |
New Member
LIU JUN
Join Date: Sep 2017
Posts: 4
Rep Power: 9 |
Hi hebeldebel,
What's rounding errors you mentioned in star? It's maybe a answer of my difficulty for a long time. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 11:51 |
Field function | lcg44 | STAR-CCM+ | 1 | November 30, 2011 00:13 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
Force Report help~ or maybe Custom Field Function | sailor | FLUENT | 0 | April 13, 2011 04:45 |