Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 100
    • Issues 100
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 92
    • Merge requests 92
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositoriesdumux-repositories
  • dumuxdumux
  • Merge requests
  • !1108

[fluidsystems] Implement ranges to iterate over phases and components

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Timo Koch requested to merge feature/fluid-ranges into master Jul 16, 2018
  • Overview 6
  • Commits 1
  • Pipelines 0
  • 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
Reviewers
Request review from
Time tracking
Source branch: feature/fluid-ranges