CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

adjust inlet temperature depending on values of monitor points (groovyBC)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2011, 03:30
Default adjust inlet temperature depending on values of monitor points (groovyBC)
  #1
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
Hello,
I would like to use an time-varying inlet temperature, where the temperature gets adjusted/controlled by the mean value of temperature probes and the mean value of a certain cellSet/faceSet (slice through the domain).

The adjustment should happen around every 500 iterations in small steps. If the mean values are above a certain limit, the inlet temperature should become smaller and vice versa.

Right now, I would say that the best approach would be to use groovyBC, where I could use as a variable:
Tmean{faceZone'sliceToMonitor}=average(T)
(Tmean>300.0) ? ((Tinlet=T{inlet}-0.5) : Tinlet=T{inlet}+0.5)

I think this could work...
Do you have an idea how to further include probes and how the time iterations of 500 could be achieved? Maybe it would be enough to slightly adjust the temperature after an initial convergence time with smaller steps continously.

Thanks!
Fabian
braennstroem is offline   Reply With Quote

Old   May 31, 2011, 04:50
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by braennstroem View Post
Hello,
I would like to use an time-varying inlet temperature, where the temperature gets adjusted/controlled by the mean value of temperature probes and the mean value of a certain cellSet/faceSet (slice through the domain).

The adjustment should happen around every 500 iterations in small steps. If the mean values are above a certain limit, the inlet temperature should become smaller and vice versa.

Right now, I would say that the best approach would be to use groovyBC, where I could use as a variable:
Tmean{faceZone'sliceToMonitor}=average(T)
(Tmean>300.0) ? ((Tinlet=T{inlet}-0.5) : Tinlet=T{inlet}+0.5)

I think this could work...
Do you have an idea how to further include probes and how the time iterations of 500 could be achieved? Maybe it would be enough to slightly adjust the temperature after an initial convergence time with smaller steps continously.

Thanks!
Fabian
Hi Fabian!

The latest incarnation of swak4Foam (definitly in Mercurial, not sure about SVN) has something called "stored variables" which are variables that keep their value and which you can abuse to store states (of course you'll have to do some ?:-switching as all the variables are evaluated, but you'll figure that out). There is an example fillingTheDam-there. I'll give a more detailed explanation at my talk at the workshop, so if you're not already registered, its not to late ....

Bernhard
gschaider is offline   Reply With Quote

Old   May 31, 2011, 13:45
Default
  #3
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
Thanks... as always quite interesting!
The workshop is a bit too far away :-(

Fabian
braennstroem is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Temperature and shear stress depending viscositiy mannobot FLUENT 0 April 22, 2010 03:56
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
the material parameters depending on temperature Jason CFX 4 December 22, 2006 20:54
Problem with transport properties depending on Temperature galaad OpenFOAM Running, Solving & CFD 5 December 6, 2005 13:51


All times are GMT -4. The time now is 03:43.