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

Activ Scalar transport equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2014, 05:18
Default Activ Scalar transport equation
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 15
Aurelien Thinat is on a distinguished road
Hello everyone,

I'm trying to add an activ scalar equation on the solver buoyantSimpleFoam.

The goal :
- 2 species involved (1 standard + 1 pollutant)
- density varying on temperature (large scale of T)
- turbulent flow

So I guess I need to declare 2 differents thermo in createFields.H :

Code:
autoPtr<rhoThermo> pThermo1(rhoThermo::New(mesh));
rhoThermo& thermo1 = pThermo1();
thermo1.validate(args.executable(), "h", "e");

volScalarField rho1
(
IOobject ( ... ), thermo1.rho1()
); autoPtr<rhoThermo> pThermo2(rhoThermo::New(mesh)); rhoThermo& thermo2 = pThermo2(); thermo2.validate(args.executable(), "h", "e"); volScalarField rho2 (
IOobject ( ... ), thermo2.rho2()
); // scalar definition volScalarField alpha2 (
IOobject ( ... ), mesh
); volScalarField rho (
IOobject ( ... ), alpha2*rho2+ (1-alpha2)*rho1
);
Does it look like the right way to code this kind of solver ?

Thank you for your help.

NB : For information, I already performed this for a passiv scalar (density of scalar = density of fluid).
Aurelien Thinat 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
Question about scalar transport osimonsimon OpenFOAM Running, Solving & CFD 33 August 21, 2020 10:45
Passive scalar transport novyno OpenFOAM Running, Solving & CFD 10 May 5, 2016 13:31
add source term to transport equation m003020002 Fluent UDF and Scheme Programming 0 September 10, 2013 03:09
How to solve a scalar equation with Fluent Tomik FLUENT 1 January 8, 2006 06:18
scalar advection-diffusion equation Darcy CFX 1 March 12, 2001 09:49


All times are GMT -4. The time now is 02:57.