Skip to content

Mass source term model is working incorrectly for condensation #47

@Johannes-Kind

Description

@Johannes-Kind

if (intPsiLiquid.value() > 1e-99)
{
Nl = intPsi0/intPsiLiquid;
}
if (intPsiVapor.value() > 1e-99)
{
Nv = intPsi0/intPsiVapor;
}

if (intPsiLiquid.value() > 1e-99)
{
Nl = intPsi0/intPsiLiquid;
}
if (intPsiVapor.value() > 1e-99)
{
Nv = intPsi0/intPsiVapor;
}

In both Hardt & Wondra models for phase change (see above), the scaling of the smeared mass source terms is not activated, if the total mass source is smaller than 1e-99 (i.e., if condensation occurs). The code should be changed to

if (mag(intPsiLiquid.value()) > 1e-99)
{
    Nl = intPsi0/intPsiLiquid;
}
if (mag(intPsiVapor.value()) > 1e-99)
{
    Nv = intPsi0/intPsiVapor;
} 

Now both evaporation and condensation can be modeled, even simultaneously in one system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions