Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 81
    • Merge requests 81
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositories
  • dumuxdumux
  • Merge requests
  • !1108

Closed
Created Jul 16, 2018 by Timo Koch@timokOwner
  • Report abuse
Report abuse

[fluidsystems] Implement ranges to iterate over phases and components

  • Overview 6
  • Commits 1
  • Changes 4

Multiphase fluidsystem can be used for single or multiphase simulations with the less phases and the same number of components. This adds general iterators that extract from model traits which phases to use. The default goes over phases 0..numPhases and 0..numComponents. However modeltraits can implement an optional function phases/components that returns an array of size numPhases/numComponents containing the selected phases/components. For selecting components there is currently no use case but when iterating over all phases and component this is going to look more consistent.

for (const auto phase : phases(model)
    for (const auto component : components(model))
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/fluid-ranges