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.