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

Addition of enthalpy diffusion terms in energy equation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2022, 09:35
Default Addition of enthalpy diffusion terms in energy equation
  #1
New Member
 
Mihir
Join Date: Dec 2021
Posts: 2
Rep Power: 0
Mihir is on a distinguished road
I am trying to make a solver for binary species. I need to add enthalpy diffusion terms in the energy equation. I am using rhoSimpleFoam. Energy equation for rhoSimpleFoam is

Code:
volScalarField& he = thermo.he();
  
  fvScalarMatrix EEqn
  (
      fvm::ddt(rho, he) + fvm::div(phi, he)
    + fvc::ddt(rho, K) + fvc::div(phi, K)
    + (
          he.name() == "e"
        ? fvc::div
          (
              fvc::absolute(phi/fvc::interpolate(rho), U),
              p,
              "div(phiv,p)"
          )
        : -dpdt
      )
    - fvm::laplacian(turbulence->alphaEff(), he)
   ==
      fvOptions(rho, he)
  );
I need to these extra terms in the energy equation.

Ca, Cb are the mass fraction of the two species. Dab is the ordinary diffusion while DT is the thermal diffusion coefficient. Cao is the initial mass fraction of specie A. I have already added specie transport equation and the solver is working but could not figure out how to add these terms.
Attached Images
File Type: png Screenshot 2022-03-22 at 7.56.24 PM.png (14.1 KB, 28 views)
Mihir is offline   Reply With Quote

Reply

Tags
binary diffusion, openfoam, rhosimplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Energy equation terms for reacting flows pavaninguva Main CFD Forum 3 December 27, 2019 02:35
buoyantPimpleFoam General Assumptions (thermophysical model, energy equation, etc) AMK53 OpenFOAM Running, Solving & CFD 1 October 23, 2018 05:30
Problem about sensible enthalpy in Fluent energy equation Echo FLUENT 0 January 5, 2015 03:50
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 04:22
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 13:22


All times are GMT -4. The time now is 05:13.