![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <specific_heat_model.h>
Public Member Functions | |
| ConstantSpecificHeat (const double p_specific_heat) | |
| double | value (const std::map< field, double > &field_values) override |
| void | vector_value (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &property_vector) override |
| double | jacobian (const std::map< field, double > &field_values, field id) override |
| void | vector_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) override |
| Public Member Functions inherited from PhysicalPropertyModel | |
| PhysicalPropertyModel () | |
| virtual | ~PhysicalPropertyModel ()=default |
| bool | depends_on (const field &id) |
| void | provide_simulation_control (std::shared_ptr< SimulationControl > &p_simulation_control) |
| double | numerical_jacobian (const std::map< field, double > &field_values, const field id) |
| void | vector_numerical_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) |
Private Attributes | |
| const double | specific_heat |
Additional Inherited Members | |
| Public Types inherited from PhysicalPropertyModel | |
| enum class | ComplexComponent : std::int8_t { real , imag } |
| Static Public Member Functions inherited from SpecificHeatModel | |
| static std::shared_ptr< SpecificHeatModel > | model_cast (const Parameters::Material &material_properties) |
| Protected Member Functions inherited from PhysicalPropertyModel | |
| std::shared_ptr< SimulationControl > & | get_simulation_control () |
| Protected Attributes inherited from PhysicalPropertyModel | |
| std::map< field, bool > | model_depends_on |
Constant specific heat model.
Definition at line 39 of file specific_heat_model.h.
|
inline |
Constructor of the constant specific heat model.
| [in] | p_specific_heat | Constant specific heat value. |
Definition at line 47 of file specific_heat_model.h.
References specific_heat.
|
inlineoverridevirtual |
Compute the jacobian (the partial derivative) of the specific heat with respect to a specified field.
| [in] | field_values | Values of the various fields on which the specific heat may depend. The map stores a single value per field. |
| [in] | id | Indicator of the field with respect to which the jacobian should be computed. |
field_values and id parameters are ignored since the specific heat remains constant.Implements PhysicalPropertyModel.
Definition at line 106 of file specific_heat_model.h.
|
inlineoverridevirtual |
Compute specific heat value.
| [in] | field_values | Value of the various field on which the specific heat may depend. The map stores a single value per field. |
field_values parameter is ignored since the specific heat remains constant.Implements PhysicalPropertyModel.
Definition at line 63 of file specific_heat_model.h.
References specific_heat.
|
inlineoverridevirtual |
Computes the derivative of the specific heat with respect to specified fields.
| [in] | field_vectors | Vector of values of the fields used to evaluate the specific heat. The map stores a vector of values per field. |
| [in] | id | Identifier of the field with respect to which a derivative should be computed. |
| [out] | jacobian | Vector of computed derivative values of the specific heat with respect to the field of the specified id. In this case, it returns a vector of zeros since the specific heat remains constant. |
field_vectors and id parameters are ignored since the specific heat remains constant. Implements PhysicalPropertyModel.
Definition at line 133 of file specific_heat_model.h.
|
inlineoverridevirtual |
vector_value Compute specific heat values.
| [in] | field_vectors | Vectors of the fields on which the specific heat may depend. The map stores a vector of values per field. |
| [out] | property_vector | Vector of computed specific heat values. |
field_vectors parameter is ignored since the specific heat remains constant. Implements PhysicalPropertyModel.
Definition at line 81 of file specific_heat_model.h.
References specific_heat.
|
private |
Definition at line 143 of file specific_heat_model.h.