|
[Sponsors] |
January 9, 2014, 05:18 |
Activ Scalar transport equation
|
#1 |
Senior Member
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 15 |
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); Thank you for your help. NB : For information, I already performed this for a passiv scalar (density of scalar = density of fluid). |
|
|
|
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 |