v2312: New and updated solvers and physics

Improved fvOptions: moving points

TOP

The finite volume options (fvOptions) framework has been improved:

  • Cell selections can now be updated at runtime via input dictionary updates.
  • New method to model points moving in space.

A minimal example usage is as follows:

fvOption1
{
    // Optional entries
    updateSelection         true;

    ...
}

fvOption2
{
    // Mandatory entries
    selectionMode   movingPoints;

    movingPoints
    {
        point1        table
        (
            // time    position
            (  0 (0 0 0.75))
            (  1 (0 0 0.65))
            (  2 (0 0 0.55))
            (  3 (0 0 0.45))
            (  4 (0 0 0.35))
            (  5 (0 0 0.25))
        );

        point2        (-0.25 -0.25 0.5);
    }

    ...
}

Source code

Merge request

  • Merge request 630

New fvOption: mapped field constraint

TOP

The MapFieldConstraint imposes value constraints on specified fields of type <Type>, using a source field from an external mesh. Here, <Type> can be {scalar, vector, sphericalTensor, symmTensor, tensor}. Optionally, the source field has the option of being translated and/or rotated over time.

Possible applications are, e.g. modelling the effect of moving electrical sources. A minimal example usage is as follows:

MapFieldConstraint1
{
    // Mandatory entries
    type                MapFieldConstraint;
    field               <word>;
    srcMesh             <fileName>;
    mapMethod           <word>;

    // Optional entries
    consistent          <bool>;
    patchMapMethod      <word>;
    transform
    {
        // Optional entries
        position    <Function1<vector>>;
        origin      <vector>;

        direction   <Function1<vector>>;
        normal      <vector>;
    }

    // Conditional entries

        // when consistent=false
        patchMap        <HashTable<word>>;  // (<patchSrc> <patchTgt>);
        cuttingPatches  <wordList>;  // (<patchTgt1> ... <patchTgtN>);

    // Inherited entries

        ...
}

Source code

Merge request

  • Merge request 630

Community contribution: new Turbulence Technical Committee submodule

TOP

A new community submodule has been launched to include a collection of nested submodules from the Turbulence Technical Committee within the OpenFOAM Governance. The submodule is hosted in the public Turbulence Technical Committee repository.

The community submodule serves as a host for academic and industrial contributions related to turbulence modelling, creating a space for knowledge exchange and fostering collaboration that advances both the field and OpenFOAM.

Prospective contributions can be hosted on any Git-based source code repository hosting service, such as Bitbucket or GitHub, and linked to the OpenFOAM software through this submodule.

In this release, the submodule incorporates the libWallModelledLES library, expanding OpenFOAM’s capabilities in the realm of wall-modelled large-eddy simulations (WMLES). This turbulence modelling methodology enables cost-effective LES by avoiding the resolution of the inner region of turbulent boundary layers.

Source code

Attribution

  • OpenCFD would like to acknowledge and thank Turbulence Technical Committee members for their contributions and help.

Improved Lagrangian Brownian motion

TOP

In this version support for a cubic distribution for Brownian motion has been reinstated. However, unless otherwise specified, the default spherical treatment will continue to be used (for compatibility), despite being incorrect at reasonably small time steps.

The cubic distribution is used when the spherical treatment is explicitly disabled. For example,

subModels
{
    particleForces
    {
        sphereDrag;
        BrownianMotion
        {
            lambda     2e-10;
            turbulence false;
            spherical  false;
        }
    }
    ...
}

The difference between the cubic and spherical distributions is seen in the following figure.

The reporting, validation and testing for the changes are courtesy of Guanyang Xue.

Source code

Issue


Merge request 634