1#ifndef BOUNDARY_CONDITION_CONSTANT_HEAT_FLUX_H
2#define BOUNDARY_CONDITION_CONSTANT_HEAT_FLUX_H
29 std::vector<std::vector<int>> connected_points,
int facet_nr, T area,
30 std::string face_prefix);
47 std::vector<int> boundary_points,
48 std::vector<std::vector<int>> connected_points,
49 int facet_nr, T area, std::string face_prefix)
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
Boundary condition abstract base class for the finite element method. All boundary condition implemen...
Definition GenericBoundaryCondition.h:18
Definition SimulationClassBase.h:15
InputManager m_simulation_config
Definition SimulationClassBase.h:24