diff --git a/ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp b/ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp index 0f5e0aa8d9ca851970fc894df1acc7c892f85757..0ab1bcebb44e52f73172f46fc5b296e6be93ee6e 100644 --- a/ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp +++ b/ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp @@ -356,9 +356,12 @@ void HydroMechanicsProcess<GlobalDim>::initializeConcreteProcess( { continue; } - ParameterLib::SpatialPosition x; - x.setElementID(e->getID()); - (*mesh_prop_b)[e->getID()] = frac->aperture0(0, x)[0]; + // Mean value for the element. This allows usage of node based + // properties for aperture. + (*mesh_prop_b)[e->getID()] = + frac->aperture0 + .getNodalValuesOnElement(*e, /*time independent*/ 0) + .mean(); } _process_data.mesh_prop_b = mesh_prop_b; diff --git a/ProcessLib/LIE/SmallDeformation/SmallDeformationProcess.cpp b/ProcessLib/LIE/SmallDeformation/SmallDeformationProcess.cpp index 89bfaa4ff0f0941553bda09f84595e1ae1b4656e..13f5530bdbddedfa1b1ba1343071b595646e9e87 100644 --- a/ProcessLib/LIE/SmallDeformation/SmallDeformationProcess.cpp +++ b/ProcessLib/LIE/SmallDeformation/SmallDeformationProcess.cpp @@ -496,9 +496,12 @@ void SmallDeformationProcess<DisplacementDim>::initializeConcreteProcess( { continue; } - ParameterLib::SpatialPosition x; - x.setElementID(e->getID()); - (*mesh_prop_b)[e->getID()] = fracture_prop.aperture0(0, x)[0]; + // Mean value for the element. This allows usage of node based + // properties for aperture. + (*mesh_prop_b)[e->getID()] = + fracture_prop.aperture0 + .getNodalValuesOnElement(*e, /*time independent*/ 0) + .mean(); } } _process_data._mesh_prop_b = mesh_prop_b;