|
[Sponsors] |
November 14, 2018, 12:31 |
Explicit source term implementation
|
#1 |
New Member
Join Date: Jul 2018
Posts: 3
Rep Power: 8 |
Hi all,
I am trying to implement a reaction heat source term into the temperature equation of a clone of buoyantBoussinesqPimpleFoam. The source term is given by Code:
Q_T/(rho_compat*rhok*cp) I have plotted Q_T to verify that it is being properly computed. The maximum value of Q_T is on the order of 3.4e-2. The T equation implementation looks like this: Code:
fvScalarMatrix TEqn ( fvm::ddt(T) + fvm::div(phi, T) - fvm::laplacian(alphaEff, T) == radiation->ST(rhoCpRef, T) + fvOptions(T) + Q_T/(rho_compat*rhok*cp) ); TEqn.relax(); fvOptions.constrain(TEqn); TEqn.solve(); However, when I run the case with an initial, uniform temperature distribution of 300K, the temperature distribution does not change and no buoyancy effects can be seen. The OpenFOAM programmer's guide suggests (in a footnote on page P-35) that this implementation should be sufficient for an explicit source term. I have also made an attempt to use fvOptions, but I have struggled to find sufficient documentation. Suggestions are welcome. Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |