CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Explicit source term implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2018, 12:31
Default Explicit source term implementation
  #1
wvn
New Member
 
Join Date: Jul 2018
Posts: 3
Rep Power: 8
wvn is on a distinguished road
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)
Q_T is computed explicitly based on chemical mole fractions.

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!
wvn is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:34.