|
[Sponsors] |
interFoam with scalar transport in single phase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2021, 08:50 |
interFoam with scalar transport in single phase
|
#1 |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 10 |
Hi everyone,
I am interested in simulating a scalar transport within the primary phase (i.e., water) in the interFoam. I follow the approach of phaseScalarTransport (https://github.com/OpenFOAM/OpenFOAM...larTransport.H) and successfully added a scalar transport to the primary phase with MULES compressed flux (i.e., alphaPhiUn). Code:
fvScalarMatrix YEqn ( fvm::ddt(Y) + fvm::div(alphaPhiUn, Y) - fvm::laplacian(Deff, Y) == alpha1*fvOptions(Y) ); YEqn.relax(); fvOptions.constrain(YEqn); YEqn.solve(); The code runs well and as expected the scalar is transported only within the water phase. When the water surface arises, the scalar will arise too. However, when the water surface falls, the part of the scalar will "stuck" above the surface (see attachment). I would like to have scalar fall as the water falls. Could you please shed some light on this issue? Thanks, Rdf |
|
Tags |
interfoam, scalar transport |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature calculation from total enthalpy in OpenFOAM (XiFOAM) | sharifi | OpenFOAM Running, Solving & CFD | 1 | October 8, 2020 09:16 |
Division by zero exception - loop over scalarField | Pat84 | OpenFOAM Programming & Development | 6 | February 18, 2017 05:57 |
problems concerning mass conservativity in bubbleFoam with custom scalar transport | cutter | OpenFOAM Programming & Development | 3 | February 10, 2015 04:25 |
dieselFoam problem!! trying to introduce a new heat transfer model | vivek070176 | OpenFOAM Programming & Development | 10 | December 23, 2014 23:48 |
Variable diffusion coefficient for scalar transport in interFoam | amwitt | OpenFOAM Programming & Development | 5 | September 10, 2013 19:12 |