Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 444
    • Issues 444
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Merge requests
  • !586

ENH: pureZoneMixture: different mixture properties according to cellZone

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mattijs Janssens requested to merge feature-pureZoneMixture into develop Dec 13, 2022
  • Overview 4
  • Commits 1
  • Changes 8

Summary

Use a different mixture on a per-cell basis.

Details of new models (If applicable)

In the thermoPhysicalProperties one can now select the new pureZoneMixture model. It is a drop-in replacement for pureMixture where the mixture properties itself are sub selected by cellZones. In below example (for a solid mesh) there are two cellZones, heater1 and heater2. The second, heater2 has slightly different properties:

thermoType
{
    type            heSolidThermo;
    mixture         pureZoneMixture;    //pureMixture;
    transport       constIso;
    thermo          hConst;
    equationOfState rhoConst;
    specie          specie;
    energy          sensibleEnthalpy;
}

mixture
{
    heater1
    {
        specie
        {
            molWeight   50;
        }

        transport
        {
            kappa   80;
        }

        thermodynamics
        {
            Hf      0;
            Cp      450;
        }

        equationOfState
        {
            rho     8000;
        }
    }
    heater2
    {
        //- Start off from heater1 properties
        ${heater1}

        //- Selectively overwrite properties
        equationOfState
        {
            rho     4000;
        }
    }
}

Risks

  • the input works with the usual explicit boundary conditions (compressible::turbulentTemperatureRadCoupledMixed) for chtMultiRegionFoam. The only difference is that the per-cell properties are looked up through the cellZone the cell is in.
  • the two cellZones can also not be separated (i.e. share faces) in which case attention has to be paid to the interpolation scheme (e.g. harmonic)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-pureZoneMixture