|
[Sponsors] |
[swak4Foam] adjust inlet temperature depending on values of monitor points (groovyBC) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
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 |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 ![]() |
Thanks... as always quite interesting!
The workshop is a bit too far away :-( Fabian |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature dependent values in dependence of K? | h0rst | FLUENT | 0 | February 2, 2017 13:46 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 06:27 |
To change temperature in mass flow inlet boundary condition per iteration | ajinkya201991 | FLUENT | 1 | July 11, 2014 11:29 |
[swak4Foam] groovyBC elevated inlet. pos() issue | grjmell | OpenFOAM Community Contributions | 6 | January 23, 2013 08:14 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 15:45 |