Skip to content
  • Henry Weller's avatar
    liquidThermo: rhoThermo instantiated on liquidProperties · f6dacfb4
    Henry Weller authored
    This allows single, multi-phase and VoF compressible simulations to be performed
    with the accurate thermophysical property functions for liquids provided by the
    liquidProperty classes.  e.g. in the
    multiphase/compressibleInterFoam/laminar/depthCharge2D tutorial water can now be
    specified by
    
    thermoType
    {
        type            heRhoThermo;
        mixture         pureMixture;
        properties      liquid;
        energy          sensibleInternalEnergy;
    }
    
    mixture
    {
        H2O;
    }
    
    as an alternative to the previous less accurate representation defined by
    
    thermoType
    {
        type            heRhoThermo;
        mixture         pureMixture;
        transport       const;
        thermo          hConst;
        equationOfState perfectFluid;
        specie          specie;
        energy          sensibleInternalEnergy;
    }
    
    mixture
    {
        specie
        {
            molWeight   18.0;
        }
        equationOfState
        {
            R           3000;
            rho0        1027;
        }
        thermodynamics
        {
            Cp          4195;
            Hf          0;
        }
        transport
        {
            mu          3.645e-4;
            Pr          2.289;
        }
    }
    
    However the increase in accuracy of the new simpler and more convenient
    specification and representation comes at a cost: the NSRDS functions used by
    the liquidProperties classes are relatively expensive to evaluate and the
    depthCharge2D case takes ~14% longer to run.
    f6dacfb4