23template <
typename ShapeFunction,
int GlobalDim>
38 std::size_t
const local_matrix_size,
40 bool const is_axially_symmetric,
42 :
Base(e, is_axially_symmetric, integration_method),
50 double const t, std::vector<GlobalVector*>
const& ,
56 unsigned const n_integration_points =
61 typeid(
_data.neumann_bc_parameter))
65 parameter_node_values =
66 _data.neumann_bc_parameter
69 ShapeFunction::MeshElement::n_all_nodes>();
72 double integral_measure = 1.0;
73 for (
unsigned ip = 0; ip < n_integration_points; ip++)
76 auto const& N = ip_data.N;
77 auto const& w = ip_data.weight;
86 if (
_data.integral_measure)
88 integral_measure = (*
_data.integral_measure)(t, position)[0];
91 typeid(
_data.neumann_bc_parameter))
94 N * parameter_node_values.dot(N) * w * integral_measure;
98 auto const value =
_data.neumann_bc_parameter(t, position)[0];
99 _local_rhs.noalias() += N * value * w * integral_measure;
MathLib::EigenMatrix GlobalMatrix
MathLib::EigenVector GlobalVector
EigenFixedShapeMatrixPolicy< ShapeFunction, GlobalDim > ShapeMatrixPolicyType
void add(IndexType rowId, double v)
add entry
GenericNaturalBoundaryConditionLocalAssembler(MeshLib::Element const &e, bool is_axially_symmetric, NumLib::GenericIntegrationMethod const &integration_method)
MeshLib::Element const & _element
NumLib::GenericIntegrationMethod const & _integration_method
std::vector< NAndWeight, Eigen::aligned_allocator< NAndWeight > > const _ns_and_weights
typename ShapeMatricesType::NodalVectorType NodalVectorType
NeumannBoundaryConditionLocalAssembler(MeshLib::Element const &e, std::size_t const local_matrix_size, NumLib::GenericIntegrationMethod const &integration_method, bool const is_axially_symmetric, NeumannBoundaryConditionData const &data)
NodalVectorType _local_rhs
GenericNaturalBoundaryConditionLocalAssembler< ShapeFunction, GlobalDim > Base
typename Base::NodalVectorType NodalVectorType
void assemble(std::size_t const id, NumLib::LocalToGlobalIndexMap const &dof_table_boundary, double const t, std::vector< GlobalVector * > const &, int const, GlobalMatrix *, GlobalVector &b, GlobalMatrix *) override
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
NeumannBoundaryConditionData const & _data
ShapeMatrixPolicyType< ShapeFunction, GlobalDim > ShapeMatricesType
std::vector< GlobalIndexType > getIndices(std::size_t const mesh_item_id, NumLib::LocalToGlobalIndexMap const &dof_table)
std::array< double, 3 > interpolateCoordinates(MeshLib::Element const &e, typename ShapeMatricesType::ShapeMatrices::ShapeType const &N)
A parameter represented by a mesh property vector.
ParameterLib::Parameter< double > const & neumann_bc_parameter
ParameterLib::Parameter< double > const *const integral_measure