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

Species and Energy source term unit.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2018, 05:42
Default Species and Energy source term unit.
  #1
New Member
 
Join Date: Aug 2018
Posts: 18
Rep Power: 8
nago is on a distinguished road
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.
nago is offline   Reply With Quote

Old   August 21, 2018, 18:14
Default
  #2
New Member
 
Join Date: Nov 2016
Posts: 15
Rep Power: 10
mitti is on a distinguished road
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.
mitti is offline   Reply With Quote

Old   August 22, 2018, 01:57
Default
  #3
New Member
 
Join Date: Aug 2018
Posts: 18
Rep Power: 8
nago is on a distinguished road
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.
nago is offline   Reply With Quote

Reply

Tags
openfoam2.3.1


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
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


All times are GMT -4. The time now is 11:18.