Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W waLBerla
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waLBerla
  • waLBerla
  • Issues
  • #149

Closed
Open
Created May 21, 2021 by Daniel Bauer@he66coqeContributor

SimpleDiffusionDirichlet doesn't work in conjunction with complex geometry

I followed Tutorial - LBM 4: Complex Geometry in order to use complex geometry. However, when using the boundary condition SimpleDiffusionDirichlet i perceive the following error:

terminate called after throwing an instance of 'std::bad_cast'

I initialize the ColorToBoundaryMapper with a BoundaryInfo which itself receives a shared_ptr<SimpleDiffusionDirichlet<..>::ScalarConfiguration>. After calling BoundarySetup::setBoundaries(..), the configuration gets passed to the BoundaryHandlingFactory. A few internal function calls later it ends up in SimpleDiffusionDirichlet<..>::registerCell(..). The cast in this method fails.

I might be missing something here but the code in this function doesn't seem to be essential. All it does is initializing val_. However, that value has already been set by the constructor.

Assignee
Assign to
Time tracking