|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7 ![]() |
Hello,
I want to introduce a heat source in my simulation that takes power as an input. I am trying to do this using fvOption file. My fvOption file is given below: Code:
heatSource { type scalarSemiImplicitSource; active true; scalarSemiImplicitSourceCoeffs { selectionMode all; // all, cellSet, cellZone, points //cellSet c1; volumeMode specific; // absolute; injectionRateSuSp { h (300 0); } } } with the above mentioned file, I am able to generate a heat source of some temperature. But I don't exactly understand that how to initialize the parameters in this file. what does 'h' stands for? Does it take only temperature as an input OR it can be power, energy or anything that generates heat? If I want to use power as an input for my heat source (say 65W) then how can I put this power in this fvOption file? Thank you |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 ![]() |
Quick answers : h is enthalpy (you could also use e if solving for internal energy). Its units are J/kg. You could back out a value for the source from your desired power.
Caelan |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 ![]() |
You have power -- energy/time. Run the simulation for some time -- compute a total amount of energy. Divide this by mass of fluid it is working on -- energy/mass.
Note that you are using the "specific" option, so you are also dividing by volume. A search for existing tutorials using fvOptions and scalarSemiImplicitSource comes up with numerous examples, and reveals that the units are therefore : kg*m^2/s^3 Caelan |
|
![]() |
![]() |
![]() |
Tags |
fvoption, heat transfer |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 08:46 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 21:53 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 21:03 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 11:46 |