|
[Sponsors] |
June 27, 2014, 08:27 |
Scalar Transport - multiphaseEulerFoam
|
#1 |
New Member
Dominik Schmidt
Join Date: Mar 2014
Posts: 11
Rep Power: 12 |
Dear Foamers,
I'm trying to implement a passive scalar transport into multiphaseEulerFoam (2.2.x). The scalar is only transported by one of the phases, so I need to access the corresponding phi. I got a little confused by phases.phiAlpha(), which is used in the UEqns.H and is calculated within the multiphaseSystem and phases.phi(), which is used for calculating the overall phi (Peqn.H) and is calculated as: Code:
PEqn.H ... phase.phi() = phiHbyAs[phasei] + rAlphaAUfs[phasei]*mSfGradp/phase.rho(); ... Code:
//- Volumetric flux of the phase surfaceScalarField phiAlpha_; //- Volumetric flux for the phase autoPtr<surfaceScalarField> phiPtr_; Code:
fvm::ddt(alpha, Tracer) + fvm::div(fvc::interpolate(alpha)*phase.phi(),Tracer) //+ fvm::div(phase.phiAlpha(), Tracer) - fvm::laplacian(fvc::interpolate(alpha)*DTotal, Tracer) Thanks, Dominik Last edited by dschmidt; June 30, 2014 at 11:02. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 07:15 |
problems concerning mass conservativity in bubbleFoam with custom scalar transport | cutter | OpenFOAM Programming & Development | 3 | February 10, 2015 04:25 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 06:20 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 01:27 |