|
[Sponsors] |
Table input for fvOptions with Openfoam v6 and chtmultiregionfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 10, 2021, 13:02 |
Table input for fvOptions with Openfoam v6 and chtmultiregionfoam
|
#1 | |
New Member
christopher
Join Date: Apr 2017
Posts: 4
Rep Power: 9 |
Hello Foamers,
I am working on a simulation of a battery under load with a a combined air convection and coldplate cooling system. In order to do so, I vary the air input velocity and temperature as well as the glycol input velocity and temperature for the coldplate using a timestamps and a linear interpolation table between the two. This is no problem, and an example looks like: Temperature Glycol inlet: Code:
Glycol_inlet { type uniformFixedValue; uniformValue table 240 ( ( 0 294.96588 ) ( 1.0627 294.981162 ) ( 21.0717 294.9973796 ) ) ; } fvOptions Code:
options { energySource { type scalarSemiImplicitSource; active yes; selectionMode cellZone; cellZone Heater; volumeMode specific; injectionRateSuSp { h (8500 0); // W/m^3 == kg/m/s^3 } } } Code:
options { energySource { type scalarSemiImplicitSource; active yes; selectionMode cellZone; cellZone Heater; volumeMode specific; injectionRateSuSp { h { Su table ( ( 0 0 ) ( 1.0627 804.691468 ) ( 21.0717 8704.835964 ) ); Sp 0.0; } } } } Quote:
- Cana |
||
November 12, 2021, 12:53 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,177
Rep Power: 27 |
Hi Cana,
It is not possible to use a table with scalarSemiImplicitSource in OpenFOAM 6 nor 7. You will have to use OpenFOAM-8 or newer: https://github.com/OpenFOAM/OpenFOAM...plicitSource.H Cheers, Yann |
|
|
|