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

Activ Scalar transport equation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 9, 2014, 06:18
Default Activ Scalar transport equation
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 154
Rep Power: 7
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about scalar transport osimonsimon OpenFOAM Running, Solving & CFD 32 August 23, 2014 01:07
add source term to transport equation m003020002 Fluent UDF and Scheme Programming 0 September 10, 2013 03:09
Passive scalar transport novyno OpenFOAM Running, Solving & CFD 9 September 6, 2012 06:52
How to solve a scalar equation with Fluent Tomik FLUENT 1 January 8, 2006 07:18
scalar advection-diffusion equation Darcy CFX 1 March 12, 2001 10:49


All times are GMT -4. The time now is 07:19.