@@ -359,7 +359,7 @@ void Discret::Elements::SolidScatraEleCalc<celltype,
359359 params.isParameter (" total time" ) ? ¶ms.get <double >(" total time" ) : nullptr ;
360360 const double * time_step_size =
361361 params.isParameter (" delta time" ) ? ¶ms.get <double >(" delta time" ) : nullptr ;
362- for_each_gauss_point (nodal_coordinates, {} , stiffness_matrix_integration_,
362+ for_each_gauss_point (nodal_coordinates, element_properties_ , stiffness_matrix_integration_,
363363 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
364364 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
365365 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -383,8 +383,9 @@ void Discret::Elements::SolidScatraEleCalc<celltype,
383383 .time_step_size = time_step_size,
384384 .xi = &xi,
385385 .ref_coords = &gp_ref_coord};
386- const Stress<celltype> stress = evaluate_material_stress<celltype>(solid_material, {},
387- deformation_gradient, gl_strain, params, context, gp, ele.id ());
386+ const Stress<celltype> stress =
387+ evaluate_material_stress<celltype>(solid_material, element_properties_,
388+ deformation_gradient, gl_strain, params, context, gp, ele.id ());
388389
389390 if constexpr (has_condensed_contribution<SolidFormulation>)
390391 {
@@ -443,7 +444,7 @@ void Discret::Elements::SolidScatraEleCalc<celltype,
443444 {
444445 // integrate mass matrix
445446 FOUR_C_ASSERT (element_mass > 0 , " It looks like the element mass is 0.0" );
446- for_each_gauss_point<celltype>(nodal_coordinates, {} , mass_matrix_integration_,
447+ for_each_gauss_point<celltype>(nodal_coordinates, element_properties_ , mass_matrix_integration_,
447448 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
448449 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
449450 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -496,7 +497,7 @@ void Discret::Elements::SolidScatraEleCalc<celltype, SolidFormulation>::evaluate
496497 params.isParameter (" total time" ) ? ¶ms.get <double >(" total time" ) : nullptr ;
497498 const double * time_step_size =
498499 params.isParameter (" delta time" ) ? ¶ms.get <double >(" delta time" ) : nullptr ;
499- for_each_gauss_point (nodal_coordinates, {} , stiffness_matrix_integration_,
500+ for_each_gauss_point (nodal_coordinates, element_properties_ , stiffness_matrix_integration_,
500501 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
501502 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
502503 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -610,7 +611,8 @@ void Discret::Elements::SolidScatraEleCalc<celltype, SolidFormulation>::update(
610611 params.isParameter (" total time" ) ? ¶ms.get <double >(" total time" ) : nullptr ;
611612 const double * time_step_size =
612613 params.isParameter (" delta time" ) ? ¶ms.get <double >(" delta time" ) : nullptr ;
613- Discret::Elements::for_each_gauss_point (nodal_coordinates, {}, stiffness_matrix_integration_,
614+ Discret::Elements::for_each_gauss_point (nodal_coordinates, element_properties_,
615+ stiffness_matrix_integration_,
614616 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
615617 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
616618 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -672,7 +674,8 @@ double Discret::Elements::SolidScatraEleCalc<celltype, SolidFormulation>::calcul
672674 params.isParameter (" total time" ) ? ¶ms.get <double >(" total time" ) : nullptr ;
673675 const double * time_step_size =
674676 params.isParameter (" delta time" ) ? ¶ms.get <double >(" delta time" ) : nullptr ;
675- Discret::Elements::for_each_gauss_point (nodal_coordinates, {}, stiffness_matrix_integration_,
677+ Discret::Elements::for_each_gauss_point (nodal_coordinates, element_properties_,
678+ stiffness_matrix_integration_,
676679 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
677680 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
678681 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -738,7 +741,8 @@ void Discret::Elements::SolidScatraEleCalc<celltype, SolidFormulation>::calculat
738741 params.isParameter (" total time" ) ? ¶ms.get <double >(" total time" ) : nullptr ;
739742 const double * time_step_size =
740743 params.isParameter (" delta time" ) ? ¶ms.get <double >(" delta time" ) : nullptr ;
741- Discret::Elements::for_each_gauss_point (nodal_coordinates, {}, stiffness_matrix_integration_,
744+ Discret::Elements::for_each_gauss_point (nodal_coordinates, element_properties_,
745+ stiffness_matrix_integration_,
742746 [&](const Core::LinAlg::Tensor<double , Core::FE::dim<celltype>>& xi,
743747 const ShapeFunctionsAndDerivatives<celltype>& shape_functions,
744748 const JacobianMapping<celltype>& jacobian_mapping, double integration_factor, int gp)
@@ -762,13 +766,14 @@ void Discret::Elements::SolidScatraEleCalc<celltype, SolidFormulation>::calculat
762766 .time_step_size = time_step_size,
763767 .xi = &xi,
764768 .ref_coords = &gp_ref_coord};
765- const Stress<celltype> stress = evaluate_material_stress<celltype>(solid_material, {},
766- deformation_gradient, gl_strain, params, context, gp, ele.id ());
767-
768- assemble_strain_type_to_matrix_row<celltype>(
769- gl_strain, deformation_gradient, strainIO.type , strain_data, gp);
770- assemble_stress_type_to_matrix_row (
771- deformation_gradient, stress, stressIO.type , stress_data, gp);
769+ const Stress<celltype> stress =
770+ evaluate_material_stress<celltype>(solid_material, element_properties_,
771+ deformation_gradient, gl_strain, params, context, gp, ele.id ());
772+
773+ assemble_strain_type_to_matrix_row<celltype>(element_properties_, gl_strain,
774+ deformation_gradient, strainIO.type , strain_data, gp);
775+ assemble_stress_type_to_matrix_row (element_properties_, deformation_gradient, stress,
776+ stressIO.type , stress_data, gp);
772777 });
773778 });
774779
0 commit comments