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

interFoam with scalar transport in single phase

Register Blogs Community New Posts Updated Threads Search

Like Tree16Likes
  • 10 Post By randolph
  • 1 Post By Sud_fluid
  • 1 Post By 37269
  • 1 Post By randolph
  • 1 Post By randolph
  • 2 Post By JVNR

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 3, 2021, 08:50
Default interFoam with scalar transport in single phase
  #1
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 10
randolph is on a distinguished road
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
Attached Images
File Type: jpg Screenshot from 2021-03-03 08-47-16.jpg (43.1 KB, 199 views)
randolph is offline   Reply With Quote

 

Tags
interfoam, scalar transport


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
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


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