![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <parameters_lagrangian.h>
Public Member Functions | |
| void | declare_parameters (ParameterHandler &prm) const |
| void | parse_parameters (ParameterHandler &prm) |
| void | parse_particle_properties (const unsigned int &particle_type, const ParameterHandler &prm) |
Static Public Member Functions | |
| static void | declare_default_entry (ParameterHandler &prm) |
Private Member Functions | |
| void | initialize_containers (std::vector< SizeDistributionType > &dist_types, std::vector< double > &p_average_diameter, std::vector< double > &p_size_std, std::vector< bool > &custom_dist_read_from_file, std::vector< std::string > &custom_dist_file_names, std::vector< ProbabilityFunctionType > &custom_function_type, std::vector< bool > &custom_interpolation, std::vector< std::vector< double > > &custom_diameter_values, std::vector< std::vector< double > > &custom_probabilities_values, std::vector< DistributionWeightingType > &distribution_weighting_basis_type, std::vector< unsigned int > &seed_for_dist, std::vector< double > &dia_min_cutoff, std::vector< double > &dia_max_cutoff, std::vector< int > &p_number, std::vector< double > &p_density, std::vector< double > &p_youngs_modulus, std::vector< double > &p_poisson_ratio, std::vector< double > &p_restitution_coefficient, std::vector< double > &p_friction_coefficient, std::vector< double > &p_rolling_viscous_damping_coefficient, std::vector< double > &p_rolling_friction_coefficient, std::vector< double > &p_surface_energy, std::vector< double > &p_hamaker_constant, std::vector< double > &p_thermal_conductivity, std::vector< double > &p_specific_heat, std::vector< double > &p_microhardness, std::vector< double > &p_surface_slope, std::vector< double > &p_surface_roughness, std::vector< double > &p_thermal_accommodation, std::vector< double > &p_real_youngs_modulus) const |
Private Attributes | |
| unsigned int | particle_type_maximum_number = 5 |
Physical properties of particles, walls, and interstitial gas for Lagrangian (DEM) simulations.
This structure stores all material properties needed for contact force computations, including per-particle-type mechanical and thermal properties, wall properties, and interstitial gas properties.
Definition at line 131 of file parameters_lagrangian.h.
|
static |
Declare default parameter entries for a single particle type.
| [in,out] | prm | The parameter handler object. |
Definition at line 277 of file parameters_lagrangian.cc.
References declare_enum_entry(), Parameters::Lagrangian::number_based, Parameters::Lagrangian::PDF, and Parameters::Lagrangian::uniform.
| void Parameters::Lagrangian::LagrangianPhysicalProperties::declare_parameters | ( | ParameterHandler & | prm | ) | const |
Declare the parameters in the parameter handler.
| [in,out] | prm | The parameter handler object. |
Definition at line 62 of file parameters_lagrangian.cc.
References declare_default_entry(), dynamic_viscosity_gas, friction_coefficient_wall, g, hamaker_constant_wall, microhardness_wall, molecular_mean_free_path_gas, particle_type_maximum_number, particle_type_number, poisson_ratio_wall, real_youngs_modulus_wall, restitution_coefficient_wall, rolling_friction_wall, rolling_viscous_damping_wall, specific_heat_gas, specific_heats_ratio_gas, surface_energy_wall, surface_roughness_wall, surface_slope_wall, thermal_accommodation_wall, thermal_conductivity_gas, thermal_conductivity_wall, and youngs_modulus_wall.
|
private |
initialize_containers - Initialize the containers used to store the particle size distribution and physical properties of each particle type.
| [in,out] | dist_types | Indicates the SizeDistributionType type. |
| [in,out] | p_average_diameter | Average diameter. |
| [in,out] | p_size_std | Diameter standard deviation for the normal and lognormal distributions. |
| [in,out] | custom_dist_read_from_file | Indicates whether the diameter and probability values are stored in a separate file. |
| [in,out] | custom_dist_file_names | Vector of filenames from which the custom distributions are read. |
| [in,out] | custom_function_type | Indicates whether the values defining the custom distribution correspond to the PDF or the CDF. |
| [in,out] | custom_interpolation | Indicates whether the diameter values are interpolated from the input values. |
| [in,out] | custom_diameter_values | Lists of diameters for the custom distribution. |
| [in,out] | custom_probabilities_values | Lists of probability values corresponding to each diameter value in the custom distribution. |
| [in,out] | distribution_weighting_basis_type | Weighting basis for the PSD. |
| [in,out] | seed_for_dist | Pseudo random seed for the PSD sampling. |
| [in,out] | dia_min_cutoff | Minimal cutoff value when sampling a PSD. |
| [in,out] | dia_max_cutoff | Maximal cutoff value when sampling a PSD. |
| [in,out] | p_number | Number of particles. |
| [in,out] | p_density | Density. |
| [in,out] | p_youngs_modulus | Young's modulus. |
| [in,out] | p_poisson_ratio | Poisson's ratio. |
| [in,out] | p_restitution_coefficient | Coefficient of restitution. |
| [in,out] | p_friction_coefficient | Sliding friction coefficient. |
| [in,out] | p_rolling_viscous_damping_coefficient | Rolling viscous damping coefficient |
| [in,out] | p_rolling_friction_coefficient | Rolling friction coefficient. |
| [in,out] | p_surface_energy | Surface energy. |
| [in,out] | p_hamaker_constant | Hamaker constant. |
| [in,out] | p_thermal_conductivity | Thermal conductivity. |
| [in,out] | p_specific_heat | Specific heat. |
| [in,out] | p_microhardness | Microhardness. |
| [in,out] | p_surface_slope | Surface slope. |
| [in,out] | p_surface_roughness | Surface roughness. |
| [in,out] | p_thermal_accommodation | Thermal accommodation coefficient. |
| [in,out] | p_real_youngs_modulus | Real Young's modulus. |
Definition at line 522 of file parameters_lagrangian.cc.
References particle_type_maximum_number.
| void Parameters::Lagrangian::LagrangianPhysicalProperties::parse_parameters | ( | ParameterHandler & | prm | ) |
Parse the parameters from the parameter handler.
| [in] | prm | The parameter handler object. |
Definition at line 190 of file parameters_lagrangian.cc.
References custom_distribution_filenames, custom_distribution_from_file, custom_distribution_interpolation, custom_probability_function_type, density_particle, diameter_max_cutoff, diameter_min_cutoff, distribution_type, distribution_weighting_type, dynamic_viscosity_gas, friction_coefficient_particle, friction_coefficient_wall, g, hamaker_constant_particle, hamaker_constant_wall, initialize_containers(), microhardness_particle, microhardness_wall, molecular_mean_free_path_gas, number, parse_particle_properties(), particle_average_diameter, particle_custom_diameter, particle_custom_probability, particle_size_std, particle_type_number, poisson_ratio_particle, poisson_ratio_wall, real_youngs_modulus_particle, real_youngs_modulus_wall, restitution_coefficient_particle, restitution_coefficient_wall, rolling_friction_coefficient_particle, rolling_friction_wall, rolling_viscous_damping_coefficient_particle, rolling_viscous_damping_wall, seed_for_distributions, specific_heat_gas, specific_heat_particle, specific_heats_ratio_gas, surface_energy_particle, surface_energy_wall, surface_roughness_particle, surface_roughness_wall, surface_slope_particle, surface_slope_wall, thermal_accommodation_particle, thermal_accommodation_wall, thermal_conductivity_gas, thermal_conductivity_particle, thermal_conductivity_wall, youngs_modulus_particle, and youngs_modulus_wall.
| void Parameters::Lagrangian::LagrangianPhysicalProperties::parse_particle_properties | ( | const unsigned int & | particle_type, |
| const ParameterHandler & | prm ) |
Parse the physical properties for a given particle type.
| [in] | particle_type | Index of the particle type to parse. |
| [in] | prm | The parameter handler object. |
Definition at line 433 of file parameters_lagrangian.cc.
References convert_string_to_vector(), custom_distribution_filenames, custom_distribution_from_file, custom_distribution_interpolation, custom_probability_function_type, density_particle, diameter_max_cutoff, diameter_min_cutoff, distribution_type, distribution_weighting_type, friction_coefficient_particle, hamaker_constant_particle, microhardness_particle, number, particle_average_diameter, particle_custom_diameter, particle_custom_probability, particle_size_std, poisson_ratio_particle, real_youngs_modulus_particle, restitution_coefficient_particle, rolling_friction_coefficient_particle, rolling_viscous_damping_coefficient_particle, seed_for_distributions, specific_heat_particle, string_to_enum(), surface_energy_particle, surface_roughness_particle, surface_slope_particle, thermal_accommodation_particle, thermal_conductivity_particle, and youngs_modulus_particle.
| std::vector<std::string> Parameters::Lagrangian::LagrangianPhysicalProperties::custom_distribution_filenames |
Filename for the custom distribution for each particle type.
Definition at line 154 of file parameters_lagrangian.h.
| std::vector<bool> Parameters::Lagrangian::LagrangianPhysicalProperties::custom_distribution_from_file |
Indicate if the custom distribution is read from file.
Definition at line 151 of file parameters_lagrangian.h.
| std::vector<bool> Parameters::Lagrangian::LagrangianPhysicalProperties::custom_distribution_interpolation |
Indicates whether the diameter values generated from the custom distribution are interpolated
Definition at line 161 of file parameters_lagrangian.h.
| std::vector<ProbabilityFunctionType> Parameters::Lagrangian::LagrangianPhysicalProperties::custom_probability_function_type |
Custom distribution function type (PDF or CDF).
Definition at line 157 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::density_particle |
Density of each particle type.
Definition at line 187 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::diameter_max_cutoff |
Maximum diameter cutoff for lognormal distribution.
Definition at line 181 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::diameter_min_cutoff |
Minimum diameter cutoff for lognormal distribution.
Definition at line 178 of file parameters_lagrangian.h.
| std::vector<SizeDistributionType> Parameters::Lagrangian::LagrangianPhysicalProperties::distribution_type |
Definition at line 142 of file parameters_lagrangian.h.
| std::vector<DistributionWeightingType> Parameters::Lagrangian::LagrangianPhysicalProperties::distribution_weighting_type |
Distribution weighting type of each particle type (number-based, volume-based)
Definition at line 172 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::dynamic_viscosity_gas = 1.e-5 |
Dynamic viscosity of the interstitial gas.
Definition at line 283 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::friction_coefficient_particle |
Friction coefficient of each particle type.
Definition at line 199 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::friction_coefficient_wall = 0.1 |
Friction coefficient of the wall.
Definition at line 244 of file parameters_lagrangian.h.
| Tensor<1, 3> Parameters::Lagrangian::LagrangianPhysicalProperties::g |
Gravitational acceleration vector.
Definition at line 135 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::hamaker_constant_particle |
Hamaker constant of each particle type.
Definition at line 211 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::hamaker_constant_wall = 4.e-19 |
Hamaker constant of the wall.
Definition at line 256 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::microhardness_particle |
Microhardness of each particle type.
Definition at line 220 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::microhardness_wall = 1.e9 |
Microhardness of the wall.
Definition at line 262 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::molecular_mean_free_path_gas = 68.e-9 |
Molecular mean free path of the interstitial gas.
Definition at line 289 of file parameters_lagrangian.h.
| std::vector<int> Parameters::Lagrangian::LagrangianPhysicalProperties::number |
Number particles of each particle type.
Definition at line 184 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::particle_average_diameter |
Average diameter of each particle type.
Definition at line 145 of file parameters_lagrangian.h.
| std::vector<std::vector<double> > Parameters::Lagrangian::LagrangianPhysicalProperties::particle_custom_diameter |
List of diameters for the custom distribution for each particle type.
Definition at line 164 of file parameters_lagrangian.h.
| std::vector<std::vector<double> > Parameters::Lagrangian::LagrangianPhysicalProperties::particle_custom_probability |
Probability of each diameter value based on volume fraction for the custom distribution for each particle type
Definition at line 168 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::particle_size_std |
Size standard deviation of each particle type.
Definition at line 148 of file parameters_lagrangian.h.
|
private |
Definition at line 326 of file parameters_lagrangian.h.
| unsigned int Parameters::Lagrangian::LagrangianPhysicalProperties::particle_type_number = 1 |
Number of particle types.
Definition at line 138 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::poisson_ratio_particle |
Poisson's ratio of each particle type.
Definition at line 193 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::poisson_ratio_wall = 0.3 |
Poisson's ratio of the wall.
Definition at line 238 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::real_youngs_modulus_particle |
Real Young's modulus of each particle type.
Definition at line 232 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::real_youngs_modulus_wall = 0. |
Real Young's modulus of the wall.
Definition at line 274 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::restitution_coefficient_particle |
Coefficients of restitution of each particle type.
Definition at line 196 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::restitution_coefficient_wall = 0.1 |
Coefficient of restitution of the wall.
Definition at line 241 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::rolling_friction_coefficient_particle |
Rolling friction coefficient of each particle type.
Definition at line 205 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::rolling_friction_wall = 0.1 |
Rolling friction coefficient of the wall.
Definition at line 247 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::rolling_viscous_damping_coefficient_particle |
Rolling viscous damping coefficient of each particle type.
Definition at line 202 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::rolling_viscous_damping_wall = 0.1 |
Rolling viscous damping coefficient of the wall.
Definition at line 250 of file parameters_lagrangian.h.
| std::vector<unsigned int> Parameters::Lagrangian::LagrangianPhysicalProperties::seed_for_distributions |
Random seed for the size distribution.
Definition at line 175 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::specific_heat_gas = 1000 |
Specific heat of the interstitial gas.
Definition at line 280 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::specific_heat_particle |
Specific heat of each particle type.
Definition at line 217 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::specific_heats_ratio_gas = 1 |
Specific heats ratio of the interstitial gas.
Definition at line 286 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::surface_energy_particle |
Surface energy of each particle type.
Definition at line 208 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::surface_energy_wall = 0.0 |
Surface energy of the wall.
Definition at line 253 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::surface_roughness_particle |
Surface roughness of each particle type.
Definition at line 226 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::surface_roughness_wall = 1.e-10 |
Surface roughness of the wall.
Definition at line 268 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::surface_slope_particle |
Surface slope of each particle type.
Definition at line 223 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::surface_slope_wall = 0.1 |
Surface slope of the wall.
Definition at line 265 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::thermal_accommodation_particle |
Thermal accommodation coefficient of each particle type.
Definition at line 229 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::thermal_accommodation_wall = 0.7 |
Thermal accommodation coefficient of the wall.
Definition at line 271 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::thermal_conductivity_gas = 0.01 |
Thermal conductivity of the interstitial gas.
Definition at line 277 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::thermal_conductivity_particle |
Thermal conductivity of each particle type.
Definition at line 214 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::thermal_conductivity_wall = 100 |
Thermal conductivity of the wall.
Definition at line 259 of file parameters_lagrangian.h.
| std::vector<double> Parameters::Lagrangian::LagrangianPhysicalProperties::youngs_modulus_particle |
Young's modulus of each particle type.
Definition at line 190 of file parameters_lagrangian.h.
| double Parameters::Lagrangian::LagrangianPhysicalProperties::youngs_modulus_wall = 1000000. |
Young's modulus of the wall.
Definition at line 235 of file parameters_lagrangian.h.