1#ifndef BOUNDARY_CONDITION_CONSTANT_HEAT_FLUX_H
2#define BOUNDARY_CONDITION_CONSTANT_HEAT_FLUX_H
56 m_heat_flux = this->m_sim->m_simulation_config.getDoubleParameters(
57 this->m_face_indicator_prefix +
"boundary_heat_flux");
61 throw std::runtime_error(
62 "[BCConstantHeatFlux] Couldn't find heat flux value in simulation config under: "
63 + this->m_face_indicator_prefix +
"boundary_heat_flux.");
73 for (
int i{0};
i < this->m_boundary_points.
size();
i++)
75 this->m_forcing_vector_elements[
i] += m_heat_flux * m_area;
Concrete implementation of a constant heat flux boundary condition in 1D.
Definition BCConstantHeatFlux.h:20
void writeBoundaryCondition() override
Actual implementation of the boundary condition.
Definition BCConstantHeatFlux.h:71
BCConstantHeatFlux(SimulationClassBase< T > *sim, std::vector< int > boundary_points, std::vector< std::vector< int > > connected_points, int facet_nr, T area, std::string face_prefix)
Constructor for a BCConstantHeatFlux object.
Definition BCConstantHeatFlux.h:46
~BCConstantHeatFlux() override=default
Concrete implementation of a matrix class representing a Compressed Sparse Rows (CSR) matrix....
Definition CsrMatrix.h:35
CsrSparseMatrix()
Constructor for an empty CsrSparseMatrix object. Leaves all storage arrays empty but sets the flag to...
Definition CsrMatrix.h:92
Boundary condition abstract base class for the finite element method. All boundary condition implemen...
Definition GenericBoundaryCondition.h:18
std::pair< int, int > size() const
Function that returns the size of the matrix as a pair in (rows, columns) format.
Definition GenericMatrix.h:118