|
[Sponsors] |
February 8, 2013, 02:50 |
time-varying internalField
|
#1 |
Member
Klio
Join Date: Mar 2012
Location: Austria
Posts: 45
Rep Power: 14 |
Hello!
I edited the chtMultiRegionFoam Solver so that it is possible to add a volumetric heat source to a region! Now I want to implement a circuit where the heat source is switched on and off. The problem is that the heat source entry has to be changed in the internalField because it is volumetric -> If i change the BC with timeVaryingMappedFixedValue of course it has no effects on the simulation ! Does anyone know how to fix that Problem? Thanks! Klio |
|
February 9, 2013, 18:02 |
|
#2 | |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
Quote:
If I understood correctly, a single scalar can be multiplied by the source term. This scalar can be your switch: 1 = lights on, 0 = lights off. You can even make it a volScalarField and turn it on in some cells and off for others. Hisham |
||
February 19, 2013, 03:32 |
|
#3 |
Member
Klio
Join Date: Mar 2012
Location: Austria
Posts: 45
Rep Power: 14 |
oh! ok that sounds very simple! Thank you!
how can i implement the switch? is it possible to code it in the controlDict? |
|
February 19, 2013, 08:04 |
|
#4 | |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
Quote:
However, you need to slightly modify the code not an input for that in (e.g. controlDict) or so. Hisham |
||
February 19, 2013, 22:17 |
|
#5 |
Member
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 94
Rep Power: 17 |
Hi Kilo,
My suggestion would be to use the expressionField or manipulateField functionObject in the swak4foam library. http://openfoamwiki.net/index.php/Contrib/swak4Foam Hope this helps Ivor |
|
April 12, 2013, 06:10 |
|
#6 |
Member
Marcus Letzel
Join Date: Sep 2012
Location: Bremen
Posts: 35
Rep Power: 13 |
Hi Kilo,
have you been successful with your solver? I would much appreciate if you could post your modified source code along with an example case that shows how to set up a time-dependent volumetric heat source. Best regards, Marcus |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 04:13 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
Problem with FloatingObject | Leech | OpenFOAM Running, Solving & CFD | 10 | March 29, 2012 15:24 |
time varying boundary condition | cfd-student | CFX | 0 | April 15, 2008 08:31 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 00:36 |