|
[Sponsors] |
August 16, 2018, 05:42 |
Species and Energy source term unit.
|
#1 |
New Member
Join Date: Aug 2018
Posts: 18
Rep Power: 8 |
Hi,all.
I try wall condensation of H2O gas,using OpenFOAM 2.3.1. I modify rhoReactingBuoyantFoam. Into YEqn.H, I add source term "Mass_sou" volScalarField ,and into EEqn.H "Eng_sou" . I want to know the unit of Mass_sou and Eng_sou. I think Mass_sou as "kg/m3/s" and Eng_sou "W/m3". Is it right? following is source code. <<YEqn.H>> fvScalarMatrix YiEqn ( fvm::ddt(rho, Yi) + mvConvection->fvmDiv(phi, Yi) - fvm::laplacian(turbulence->muEff(), Yi) == reaction->R(Yi) + fvOptions(rho, Yi) + Mass_sou ) <<EEqn.H>> fvScalarMatrix EEqn ( fvm::ddt(rho, he) + mvConvection->fvmDiv(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) == reaction->Sh() + fvOptions(rho, he) + Eng_sou ); How can I find out the information? please tell me... Regard. |
|
August 21, 2018, 18:14 |
|
#2 |
New Member
Join Date: Nov 2016
Posts: 15
Rep Power: 10 |
Beside doing it per hand (you know the dimensions for rho and he and can calculate it from fvm::ddt(rho, he)) you could just add whatever as a source term and then run the simulation. OpenFOAM will tell you which dimensions you need.
|
|
August 22, 2018, 01:57 |
|
#3 |
New Member
Join Date: Aug 2018
Posts: 18
Rep Power: 8 |
Hi, mitti.
Thank you for replying in spite of my poor questions. Calculations seem to proceed without problems. I think that I could probably set as I intended. I appreciate your response. |
|
Tags |
openfoam2.3.1 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
doubts about the source term energy in cfx | TallesC | CFX | 5 | August 26, 2015 18:17 |
Adding an energy source term to a phase with reactions | lxlxlxt | Fluent Multiphase | 0 | February 10, 2014 21:42 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |