![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <density_model.h>
Public Member Functions | |
| DensityConstant (const double p_density) | |
| 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, const field id) override |
| void | vector_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) override |
| double | get_psi () const override |
| double | get_density_ref () const override |
| Public Member Functions inherited from DensityModel | |
| bool | is_constant_density_model () const |
| 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 | density |
Additional Inherited Members | |
| Public Types inherited from PhysicalPropertyModel | |
| enum class | ComplexComponent : std::int8_t { real , imag } |
| Static Public Member Functions inherited from DensityModel | |
| static std::shared_ptr< DensityModel > | model_cast (const Parameters::Material &material_properties) |
| Protected Member Functions inherited from PhysicalPropertyModel | |
| std::shared_ptr< SimulationControl > & | get_simulation_control () |
| Protected Attributes inherited from DensityModel | |
| bool | constant_density_model = false |
| Protected Attributes inherited from PhysicalPropertyModel | |
| std::map< field, bool > | model_depends_on |
Constant density model.
Definition at line 69 of file density_model.h.
|
inline |
Constructor of the constant density model.
| [in] | p_density | Constant density value. |
Definition at line 77 of file density_model.h.
References DensityModel::constant_density_model, and density.
|
inlineoverridevirtual |
Get the value of the reference state density used in the density model.
Implements DensityModel.
Definition at line 194 of file density_model.h.
References density.
|
inlineoverridevirtual |
Get the value of the compressibility factor used in the density model.
Implements DensityModel.
Definition at line 181 of file density_model.h.
|
inlineoverridevirtual |
Compute the jacobian (the partial derivative) of the density with respect to a specified field.
| [in] | field_values | Values of the various fields on which the density 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 density remains constant.Implements PhysicalPropertyModel.
Definition at line 138 of file density_model.h.
|
inlineoverridevirtual |
Compute density value.
| [in] | field_values | Value of the various fields on which the property may depend. The map stores a single value per field. |
field_values parameter is ignored since the density remains constant.Implements PhysicalPropertyModel.
Definition at line 95 of file density_model.h.
References density.
|
inlineoverridevirtual |
Computes the derivative of the density with respect to specified fields.
| [in] | field_vectors | Vector of values of the fields used to evaluate the density. 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 | Vector of computed derivative values of the density with respect to the field of the specified id. In this case, it returns a vector of zeros since the density remains constant. |
field_vectors and id parameters are ignored since the density remains constant. Implements PhysicalPropertyModel.
Definition at line 165 of file density_model.h.
|
inlineoverridevirtual |
Compute a vector of density values.
| [in] | field_vectors | Vectors of the fields on which the density may depend. The map stores a vector of values per field. |
| [out] | property_vector | Vector of computed density values. |
field_vectors parameter is ignored since the density remains constant. Implements PhysicalPropertyModel.
Definition at line 113 of file density_model.h.
References density.
|
private |
Density of the material.
Definition at line 201 of file density_model.h.