CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2011, 04: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: 19
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, 05:50
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 14:45
Default
  #3
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
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


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
Temperature dependent values in dependence of K? h0rst FLUENT 0 February 2, 2017 14:46
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
To change temperature in mass flow inlet boundary condition per iteration ajinkya201991 FLUENT 1 July 11, 2014 12:29
[swak4Foam] groovyBC elevated inlet. pos() issue grjmell OpenFOAM Community Contributions 6 January 23, 2013 09:14
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45


All times are GMT -4. The time now is 09:27.