66 (this->m_sim->getFieldValue(
"HeatConductivity", this->m_nodal_values[0])
67 + this->m_sim->getFieldValue(
"HeatConductivity", this->m_nodal_values[1]))
69 T heat_capacity = (this->m_sim->getFieldValue(
"HeatCapacity", this->m_nodal_values[0])
70 + this->m_sim->getFieldValue(
"HeatCapacity", this->m_nodal_values[1]))
72 T density = (this->m_sim->getFieldValue(
"Density", this->m_nodal_values[0])
73 + this->m_sim->getFieldValue(
"Density", this->m_nodal_values[1]))
75 T source_terms = (this->m_sim->getFieldValue(
"HeatSource", this->m_nodal_values[0])
76 + this->m_sim->getFieldValue(
"HeatSource", this->m_nodal_values[1]))
81 this->m_capacitance_matrix_elements[0] +=
83 this->m_capacitance_matrix_elements[1] +=
85 this->m_capacitance_matrix_elements[2] +=
87 this->m_capacitance_matrix_elements[3] +=
91 this->m_stiffness_matrix_elements[0] +=
heat_conductivity * m_area / m_element_length;
92 this->m_stiffness_matrix_elements[1] -=
heat_conductivity * m_area / m_element_length;
93 this->m_stiffness_matrix_elements[2] -=
heat_conductivity * m_area / m_element_length;
94 this->m_stiffness_matrix_elements[3] +=
heat_conductivity * m_area / m_element_length;
97 this->m_forcing_vector_elements[0] += m_area *
source_terms * m_element_length / 2;
98 this->m_forcing_vector_elements[1] += m_area *
source_terms * m_element_length / 2;
void writeMatrixVectorBlock() override
The implementation of the FEM scheme on this element type. Calculates all the values that you get sol...
Definition OneDimLinearElement.h:63
void writeBoundaryCondition() override
The implementation of a boundary cell in the FEM scheme on this element type. If this cell is a bound...
Definition OneDimLinearElement.h:106
OneDimLinearElement(bool is_boundary_point, std::map< std::string_view, std::vector< int > > all_boundary_points, std::vector< int > nodal_values, SimulationClassBase< T > *sim, int cell_nr, ElementProperties< T > props)
Constructor for a OneDimLinearElement object.
Definition OneDimLinearElement.h:46