Skip to content
Snippets Groups Projects
Commit 64ab8fa7 authored by Timo Koch's avatar Timo Koch
Browse files

[md][embedded][average] Compute average cell distance to be used as a correction factor

parent cb5d3a56
No related branches found
No related tags found
1 merge request!2288Feature/1d3d coupling manager improvements
......@@ -34,6 +34,8 @@
#include <dumux/common/properties.hh>
#include <dumux/common/indextraits.hh>
#include <dumux/geometry/distance.hh>
#include <dumux/multidomain/embedded/couplingmanagerbase.hh>
#include <dumux/multidomain/embedded/circlepoints.hh>
#include <dumux/multidomain/embedded/extendedsourcestencil.hh>
......@@ -315,6 +317,10 @@ public:
// publish point source data in the global vector
this->pointSourceData().emplace_back(std::move(psData));
// mean distance to outside element for source correction schemes
const auto outsideGeometry = bulkGridGeometry.element(bulkElementIdx).geometry();
this->averageDistanceToBulkCell().push_back(averageDistancePointGeometry(globalPos, outsideGeometry));
// export the bulk coupling stencil
if (isBox<lowDimIdx>())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment