CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

field function report new value each iteration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2014, 09:14
Default field function report new value each iteration
  #1
Member
 
Join Date: Jan 2014
Posts: 40
Rep Power: 12
hebeldebel is on a distinguished road
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 10:06. Reason: Added the equation
hebeldebel is offline   Reply With Quote

Old   July 1, 2014, 13:25
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
me3840 is offline   Reply With Quote

Old   July 3, 2014, 07:57
Default
  #3
Member
 
Join Date: Jan 2014
Posts: 40
Rep Power: 12
hebeldebel is on a distinguished road
Thank you for your answer

Quote:
Originally Posted by me3840 View Post
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 View Post
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).
hebeldebel is offline   Reply With Quote

Old   July 3, 2014, 10:23
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
me3840 is offline   Reply With Quote

Old   July 11, 2014, 07:56
Default
  #5
Member
 
Join Date: Jan 2014
Posts: 40
Rep Power: 12
hebeldebel is on a distinguished road
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 09:02. Reason: more information
hebeldebel is offline   Reply With Quote

Old   July 14, 2014, 00:56
Default
  #6
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
me3840 is offline   Reply With Quote

Old   July 14, 2014, 07:23
Default
  #7
Member
 
Join Date: Jan 2014
Posts: 40
Rep Power: 12
hebeldebel is on a distinguished road
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.
hebeldebel is offline   Reply With Quote

Old   September 6, 2017, 02:01
Default
  #8
New Member
 
LIU JUN
Join Date: Sep 2017
Posts: 4
Rep Power: 8
lj0812 is on a distinguished road
Hi hebeldebel,
What's rounding errors you mentioned in star? It's maybe a answer of my difficulty for a long time.
lj0812 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
Field function lcg44 STAR-CCM+ 1 November 29, 2011 23:13
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Force Report help~ or maybe Custom Field Function sailor FLUENT 0 April 13, 2011 03:45


All times are GMT -4. The time now is 01:36.