31template <
typename ShapeFunction,
int GlobalDim>
46 std::size_t
const local_matrix_size,
48 bool const is_axially_symmetric,
50 :
Base(e, is_axially_symmetric, integration_method),
59 double const t, std::vector<GlobalVector*>
const& x,
69 unsigned const n_integration_points =
74 std::vector<double>
const local_values = x[process_id]->get(indices);
75 std::size_t
const bulk_element_id =
77 std::size_t
const bulk_face_id =
79 auto const& bulk_element =
82 for (
unsigned ip = 0; ip < n_integration_points; ip++)
85 auto const& N = n_and_weight.N;
86 auto const& w = n_and_weight.weight;
89 auto const bulk_element_point =
92 double int_pt_value = 0.0;
96 -boundary_permeability_node_values * int_pt_value *
99 _local_rhs.noalias() += N * neumann_node_values.dot(N) * w;
102 b.
add(indices, _local_rhs);
111 Eigen::Vector3d surface_normal =
114 surface_normal.tail(zeros_size).setZero();
115 return surface_normal;
Global vector based on Eigen vector.
void add(IndexType rowId, double v)
add entry
std::size_t getID() const
Returns the ID of the element.
static Eigen::Vector3d getSurfaceNormal(Element const &e)
Returns the surface normal of a 2D element.
unsigned getDimension() const
Returns the dimension of the mesh (determined by the maximum dimension over all elements).
const Element * getElement(std::size_t idx) const
Get the element with the given index.
MathLib::WeightedPoint const & getWeightedPoint(unsigned const igp) const
unsigned getNumberOfPoints() const
MeshLib::Element const & _element
NumLib::GenericIntegrationMethod const & _integration_method
std::vector< NAndWeight, Eigen::aligned_allocator< NAndWeight > > const _ns_and_weights
typename ShapeMatricesType::NodalMatrixType NodalMatrixType
typename ShapeMatricesType::NodalVectorType NodalVectorType
typename Base::NodalVectorType NodalVectorType
std::size_t const _local_matrix_size
HCNonAdvectiveFreeComponentFlowBoundaryConditionLocalAssembler(MeshLib::Element const &e, std::size_t const local_matrix_size, NumLib::GenericIntegrationMethod const &integration_method, bool const is_axially_symmetric, HCNonAdvectiveFreeComponentFlowBoundaryConditionData const &data)
Eigen::Vector3d const _surface_normal
Eigen::Vector3d getOrientedSurfaceNormal(MeshLib::Element const &e) const
HCNonAdvectiveFreeComponentFlowBoundaryConditionData const & _data
void assemble(std::size_t const mesh_item_id, NumLib::LocalToGlobalIndexMap const &dof_table_boundary, double const t, std::vector< GlobalVector * > const &x, int const process_id, GlobalMatrix *, GlobalVector &b, GlobalMatrix *) override
typename Base::NodalMatrixType NodalMatrixType
MeshLib::Mesh & getMesh() const
virtual Eigen::Vector3d getFlux(std::size_t, MathLib::Point3d const &, double const, std::vector< GlobalVector * > const &) const
MathLib::Point3d getBulkElementPoint(MeshLib::CellType const bulk_element_cell_type, std::size_t const bulk_face_id, MathLib::WeightedPoint const &point_on_face)
void shapeFunctionInterpolate(const NodalValues &, const ShapeMatrix &)
std::vector< GlobalIndexType > getIndices(std::size_t const mesh_item_id, NumLib::LocalToGlobalIndexMap const &dof_table)
virtual Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > getNodalValuesOnElement(MeshLib::Element const &element, double const t) const
Returns a matrix of values for all nodes of the given element.
ParameterLib::Parameter< double > const & boundary_permeability
MeshLib::PropertyVector< std::size_t > const bulk_element_ids
MeshLib::PropertyVector< std::size_t > const bulk_face_ids