Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #720

Closed
Open
Created Feb 01, 2018 by Mark Olesen@markMaintainer

add toc-style functionality to clouds/parcels

Can currently write to an objectRegistry, but cannot otherwise ascertain which fields a cloud would normally write.

Add a classes() method similar to what objectRegistry and IOobjectList have. However, it is probably inconvenient to have the matcher predicate.

In the cloud:

template<class CloudType>
void queryClasses(const CloudType&, HashTable<wordHashSet>& classes) const
{
    classes(IOField<label>::typeName).insert
    ({
        "active",
        "typeId",
    });

    classes(IOField<scalar>::typeName).insert
    ({
        "nParticle",
        "d",
        "dTarget",
        "rho",
        "age",
        "tTurb",
    });

    ...
}

@andy

Edited Feb 01, 2018 by Mark Olesen
Assignee
Assign to
Time tracking