Skip to content
Snippets Groups Projects
Commit 00ca85ae authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[PL] add integral measure term to natural BCs

parent fcd28677
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,8 @@ public: ...@@ -59,7 +59,8 @@ public:
auto const& sm = Base::_shape_matrices[ip]; auto const& sm = Base::_shape_matrices[ip];
auto const& wp = Base::_integration_method.getWeightedPoint(ip); auto const& wp = Base::_integration_method.getWeightedPoint(ip);
_local_rhs.noalias() += sm.N * _neumann_bc_parameter(t, pos)[0] * _local_rhs.noalias() += sm.N * _neumann_bc_parameter(t, pos)[0] *
sm.detJ * wp.getWeight(); sm.detJ * wp.getWeight() *
sm.integralMeasure;
} }
auto const indices = NumLib::getIndices(id, dof_table_boundary); auto const indices = NumLib::getIndices(id, dof_table_boundary);
......
...@@ -71,9 +71,9 @@ public: ...@@ -71,9 +71,9 @@ public:
// adding a alpha term to the diagonal of the stiffness matrix // adding a alpha term to the diagonal of the stiffness matrix
// and a alpha * u_0 term to the rhs vector // and a alpha * u_0 term to the rhs vector
_local_K.diagonal().noalias() += _local_K.diagonal().noalias() +=
sm.N * alpha * sm.detJ * wp.getWeight(); sm.N * alpha * sm.detJ * wp.getWeight() * sm.integralMeasure;
_local_rhs.noalias() += _local_rhs.noalias() += sm.N * alpha * u_0 * sm.detJ *
sm.N * alpha * u_0 * sm.detJ * wp.getWeight(); wp.getWeight() * sm.integralMeasure;
} }
auto const indices = NumLib::getIndices(id, dof_table_boundary); auto const indices = NumLib::getIndices(id, dof_table_boundary);
......
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