4#ifndef HUMMINGBIRD_MESH_SEGMENT_H_
5#define HUMMINGBIRD_MESH_SEGMENT_H_
53 const std::vector<Node>& existing_nodes,
80 const size_t ordinate_index)
override;
146 double ComputeLength(
const std::array<size_t, 2> boundary_node_ids,
int material_id() const
Get Material ID.
Element(const int material_id, const int source_id)
Construct a new Element object.
int source_id() const
Get Source ID.
Class defining a 1D Gauss-Legendre-Lobatto quadrature set on [-1,1]. The quadrature set approximates ...
Bank holding the materials defined in the input file.
Defines a solid angle, or ordinate, in spherical geometry.
Segment(const std::array< size_t, 2 > boundary_node_ids, const int material_id, const int source_id, const Mesh &mesh)
Construct a new Segment object.
std::array< size_t, 2 > boundary_node_ids_
Node IDs defining the Segment bounds.
double ComputeLength(const std::array< size_t, 2 > boundary_node_ids, const Mesh &mesh)
Compute the length of the element on construction.
arma::Col< double > LocalForcingVector(const GaussLobattoLegendre &gll_quad, const Mesh &mesh, const MaterialBank &material_bank, const Ordinate &ordinate, const size_t ordinate_index) override
Construct the local forcing vector, which is:
std::vector< Node > CreateInteriorNodes(const std::vector< Node > &existing_nodes, const GaussLobattoLegendre &gll_quadrature) override
Create interior Node objects using the Gauss-Lobatto-Legendre quadrature set. The mapping from the re...
unsigned int dimension() const override
Get the spatial dimension of a Segment (always 1).
arma::Mat< double > LocalStiffnessMatrix(const GaussLobattoLegendre &gll_quad, const MaterialBank &material_bank, const Ordinate &ordinate) override
Construct the dense local stiffness matrix using spectral elements on a Gauss-Lobatto-Legendre grid,...
arma::SpMat< double > LocalMassMatrix(const GaussLobattoLegendre &gll_quad, const MaterialBank &material_bank) override
Construct the sparse diagonal local mass matrix using spectral elements on a Gauss-Lobatto-Legendre g...
const double length_
Length of the element.