Skip to content

Phase-constrained ScalarTransport only diffusive and not phase-constrained

Summary

Using the scalarTransport function object with interFoam results in the scalar being "stuck in the air" (i.e. leaving the phase and not propagating any further). Furthermore, there is no convective transport of the scalar.

The issue is described e.g. in this post as well: https://www.cfd-online.com/Forums/openfoam-solving/234344-interfoam-scalar-transport-single-phase.html#post798013

Steps to reproduce

Example case

What is the current bug behaviour?

Scalar which should be phase-constrained leaves the phase. No convective transport. Setting the diffusion coefficient D=0 will result in the scalar not being transported at all.

What is the expected correct behavior?

Convective + Diffusive transport of scalar, scalar should not leave the defined phase.

Relevant logs and/or images

See this post: https://www.cfd-online.com/Forums/openfoam-solving/234344-interfoam-scalar-transport-single-phase.html#post798013

Environment information

  • OpenFOAM version : v1912,v2006,v2012
  • Operating system : Ubuntu
  • Hardware info : various.
  • Compiler : gcc

Possible fixes

Maybe see https://www.cfd-online.com/Forums/openfoam-solving/234344-interfoam-scalar-transport-single-phase.html#post798013 And https://www.cfd-online.com/Forums/openfoam-solving/188437-foam-error-printstack-foam-ostream-interfoam-parallel-2.html#post797806

Edited by Franz D