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");
62 <<
"[BCConstantHeatFlux]: Couldn't find heat flux value in simulation config under: "
63 << this->m_face_indicator_prefix <<
"boundary_heat_flux.\n";
65 static_cast<std::string
>(
"[BCConstantHeatFlux]: Couldn't find heat flux value "
66 "in simulation config under: ")
67 + this->m_face_indicator_prefix +
static_cast<std::string
>(
"boundary_heat_flux."));
77 for (
int i{0};
i < this->m_boundary_points.
size();
i++)
79 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:75
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:37
CsrSparseMatrix()
Constructor for an empty CsrSparseMatrix object. Leaves all storage arrays empty but sets the flag to...
Definition CsrMatrix.h:94
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:120