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 413
    • Issues 413
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1279
Closed
Open
Issue created Apr 11, 2019 by Mattijs Janssens@MattijsMaintainer

fieldToCell does not use lookup; always reads from disk

Functionality to add/problem to solve

fieldToCell currently always reads from disk. Hence it cannot be used in e.g. a functionObject to select some cells during the run (). Would be nice if it would try lookup first instead.

Proposal

  • add database lookup first and loading from disk only if that fails
  • move fieldToCell to finiteVolume and use proper fields

Example of desired use: plot all cells where the pressure is between 5 and 1000.

    vtkWrite1
    {
        type            vtkWrite;
        libs            ("libutilityFunctionObjects.so");
        timeStart        10;
        writeControl    timeStep;
        writeInterval   1;
        format          binary;
        legacy          false;
        decompose       false;
        fields          (p U);

        selection
        {
            threshold
            {
                action  use;
                source  fieldToCell;
                field   p;
                min     5;
                max     1000;
            }
        }
    }

There is currently also a bug in that it searches for the last valid p,U instead of loading them from the current time (and failing).

Edited Jul 06, 2021 by Kutalmış Berçin
Assignee
Assign to
Time tracking