Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
particle_heat_transfer.cc File Reference
#include <core/auxiliary_math_functions.h>
#include <dem/particle_heat_transfer.h>
#include <boost/math/special_functions/erf.hpp>
#include <cmath>
#include <ranges>
Include dependency graph for particle_heat_transfer.cc:

Go to the source code of this file.

Functions

double calculate_corrected_contact_radius (const double effective_radius, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double normal_force_norm)
double calculate_macrocontact_resistance (const double harmonic_conductivity, const double contact_radius)
double calculate_microcontact_resistance (const double equivalent_surface_slope, const double equivalent_surface_roughness, const double effective_microhardness, const double contact_radius_squared, const double harmonic_conductivity, const double maximum_pressure)
double calculate_solid_macrogap_resistance (const double radius, const double thermal_conductivity, const double contact_radius_squared)
double calculate_interstitial_gas_microgap_resistance (const double equivalent_surface_roughness, const double contact_radius_squared, const double gas_parameter_m, const double thermal_conductivity_gas, const double maximum_pressure, const double effective_microhardness)
double calculate_interstitial_gas_macrogap_resistance (const double harmonic_radius, const double thermal_conductivity_gas, const double contact_radius_squared, const double gas_parameter_m)
template<ContactType contact_type>
void calculate_contact_thermal_conductance (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
void apply_heat_transfer_on_local_particles (const double temperature_one, const double temperature_two, const double thermal_conductance, double &particle_one_heat_transfer_rate, double &particle_two_heat_transfer_rate)
void apply_heat_transfer_on_single_local_particle (const double temperature_one, const double temperature_two, const double thermal_conductance, double &particle_one_heat_transfer_rate)
void set_wall_temperature_time (const Parameters::Lagrangian::BCDEM &boundary_conditions, const double time)
template void calculate_contact_thermal_conductance< ContactType::local_particle_particle > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::ghost_particle_particle > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::local_periodic_particle_particle > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::ghost_periodic_particle_particle > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::ghost_local_periodic_particle_particle > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::particle_floating_mesh > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)
template void calculate_contact_thermal_conductance< ContactType::particle_wall > (const double radius_one, const double radius_two, const double effective_youngs_modulus, const double effective_real_youngs_modulus, const double equivalent_surface_roughness, const double equivalent_surface_slope, const double effective_microhardness, const double thermal_conductivity_one, const double thermal_conductivity_two, const double thermal_conductivity_gas, const double gas_parameter_m, const double normal_overlap, const double normal_force_norm, double &thermal_conductance)

Function Documentation

◆ apply_heat_transfer_on_local_particles()

void apply_heat_transfer_on_local_particles ( const double temperature_one,
const double temperature_two,
const double thermal_conductance,
double & particle_one_heat_transfer_rate,
double & particle_two_heat_transfer_rate )

Apply the heat transfer to a local-local particle pair in contact.

Parameters
[in]temperature_oneTemperature of particle one.
[in]temperature_twoTemperature of particle two.
[in]thermal_conductanceTotal thermal conductance between the two particles.
[in,out]particle_one_heat_transfer_rateHeat transfer rate due to contact applied to particle one.
[in,out]particle_two_heat_transfer_rateHeat transfer rate due to contact applied to particle two.

Definition at line 269 of file particle_heat_transfer.cc.

◆ apply_heat_transfer_on_single_local_particle()

void apply_heat_transfer_on_single_local_particle ( const double temperature_one,
const double temperature_two,
const double thermal_conductance,
double & particle_one_heat_transfer_rate )

Apply the heat transfer to a local particle. This function is used for local-ghost particle pairs or particle-wall pairs in contact. The heat transfer is only applied to the local particle, thus particle one should be the local particle here.

Parameters
[in]temperature_oneTemperature of particle one.
[in]temperature_twoTemperature of particle two or of wall.
[in]thermal_conductanceTotal thermal conductance of the pair.
[in,out]particle_one_heat_transfer_rateHeat transfer rate due to contact applied to particle one.

Definition at line 282 of file particle_heat_transfer.cc.

◆ calculate_contact_thermal_conductance()

template<ContactType contact_type>
void calculate_contact_thermal_conductance ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

Calculate the total thermal conductance for particle-particle or particle-wall contacts.

The resistance_macrocontact, resistance_solid_macrogap and resistance_gas_macrogap differ from particle-particle contacts to particle-wall contacts.

Template Parameters
contact_typeType of contact.
Parameters
[in]radius_oneRadius of particle one.
[in]radius_twoRadius of particle two for particle-particle contacts. Unused for particle-wall contacts.
[in]effective_youngs_modulusEffective young's modulus of the contact pair.
[in]effective_real_youngs_modulusEffective real young's modulus of the contact pair.
[in]equivalent_surface_roughnessEquivalent surface roughness of the contact pair.
[in]equivalent_surface_slopeEquivalent surface slope of the contact pair.
[in]effective_microhardnessEffective microhardness of the contact pair.
[in]thermal_conductivity_oneThermal conductivity of particle one.
[in]thermal_conductivity_twoThermal conductivity of particle two or of wall.
[in]thermal_conductivity_gasThermal conductivity of the interstitial gas.
[in]gas_parameter_mGas parameter.
[in]normal_overlapNormal overlap of the contact pair.
[in]normal_force_normNorm of the normal contact force of the contact pair.
[out]thermal_conductanceTotal thermal conductance for the contact pair.

Definition at line 138 of file particle_heat_transfer.cc.

References calculate_corrected_contact_radius(), calculate_interstitial_gas_macrogap_resistance(), calculate_interstitial_gas_microgap_resistance(), calculate_macrocontact_resistance(), calculate_microcontact_resistance(), calculate_solid_macrogap_resistance(), harmonic_mean(), particle_floating_mesh, and particle_wall.

◆ calculate_contact_thermal_conductance< ContactType::ghost_local_periodic_particle_particle >()

template void calculate_contact_thermal_conductance< ContactType::ghost_local_periodic_particle_particle > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::ghost_particle_particle >()

template void calculate_contact_thermal_conductance< ContactType::ghost_particle_particle > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::ghost_periodic_particle_particle >()

template void calculate_contact_thermal_conductance< ContactType::ghost_periodic_particle_particle > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::local_particle_particle >()

template void calculate_contact_thermal_conductance< ContactType::local_particle_particle > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::local_periodic_particle_particle >()

template void calculate_contact_thermal_conductance< ContactType::local_periodic_particle_particle > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::particle_floating_mesh >()

template void calculate_contact_thermal_conductance< ContactType::particle_floating_mesh > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_contact_thermal_conductance< ContactType::particle_wall >()

template void calculate_contact_thermal_conductance< ContactType::particle_wall > ( const double radius_one,
const double radius_two,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double equivalent_surface_roughness,
const double equivalent_surface_slope,
const double effective_microhardness,
const double thermal_conductivity_one,
const double thermal_conductivity_two,
const double thermal_conductivity_gas,
const double gas_parameter_m,
const double normal_overlap,
const double normal_force_norm,
double & thermal_conductance )

◆ calculate_corrected_contact_radius()

double calculate_corrected_contact_radius ( const double effective_radius,
const double effective_youngs_modulus,
const double effective_real_youngs_modulus,
const double normal_force_norm )

Calculate the corrected contact radius for a particle-particle or particle-wall pair in contact.

Parameters
[in]effective_radiusEffective radius of the pair in contact.
[in]effective_youngs_modulusEffective young's modulus of the pair in contact.
[in]effective_real_youngs_modulusEffective real young's modulus of the pair in contact.
[in]normal_force_normNorm of the normal contact force for the pair in contact.
Returns
Corrected contact radius of the pair in contact.

Definition at line 14 of file particle_heat_transfer.cc.

◆ calculate_interstitial_gas_macrogap_resistance()

double calculate_interstitial_gas_macrogap_resistance ( const double harmonic_radius,
const double thermal_conductivity_gas,
const double contact_radius_squared,
const double gas_parameter_m )

Calculate the interstitial gas macrogap thermal resistance for a particle-particle or particle-wall pair in contact.

Parameters
[in]harmonic_radiusHarmonic mean of the particles' radii for a particle-particle contact, radius of the particle for a particle-wall contact.
[in]thermal_conductivity_gasThermal conductivity of the interstitial gas.
[in]contact_radius_squaredSquared contact radius of the pair in contact.
[in]gas_parameter_mGas parameter.
Returns
Interstitial gas microgap thermal resistance for the pair in contact.

Definition at line 118 of file particle_heat_transfer.cc.

◆ calculate_interstitial_gas_microgap_resistance()

double calculate_interstitial_gas_microgap_resistance ( const double equivalent_surface_roughness,
const double contact_radius_squared,
const double gas_parameter_m,
const double thermal_conductivity_gas,
const double maximum_pressure,
const double effective_microhardness )

Calculate the interstitial gas microgap thermal resistance for a particle-particle or particle-wall pair in contact.

Parameters
[in]equivalent_surface_roughnessEquivalent surface roughness of the pair in contact.
[in]contact_radius_squaredSquared contact radius of the pair in contact.
[in]gas_parameter_mGas parameter.
[in]thermal_conductivity_gasThermal conductivity of the interstitial gas.
[in]maximum_pressureMaximum pressure for hertzian contacts.
[in]effective_microhardnessEffective microhardness of the pair in contact.
Returns
Interstitial gas microgap thermal resistance for the pair in contact.

Definition at line 81 of file particle_heat_transfer.cc.

◆ calculate_macrocontact_resistance()

double calculate_macrocontact_resistance ( const double harmonic_conductivity,
const double contact_radius )

Calculate the macrocontact thermal resistance for a particle-particle or particle-wall pair in contact.

Parameters
[in]harmonic_conductivityHarmonic mean of the thermal conductivities for a particle-particle contact or twice the particle thermal conductivity for a particle-wall contact.
[in]contact_radiusContact radius of the pair in contact.
Returns
Macrocontact thermal resistance for the pair in contact.

Definition at line 34 of file particle_heat_transfer.cc.

◆ calculate_microcontact_resistance()

double calculate_microcontact_resistance ( const double equivalent_surface_slope,
const double equivalent_surface_roughness,
const double effective_microhardness,
const double contact_radius_squared,
const double harmonic_conductivity,
const double maximum_pressure )

Calculate the microcontact thermal resistance for a particle-particle or particle-wall pair in contact.

Parameters
[in]equivalent_surface_slopeEquivalent surface slope of the pair in contact.
[in]equivalent_surface_roughnessEquivalent surface roughness of the pair in contact.
[in]effective_microhardnessEffective microhardness of the pair in contact.
[in]contact_radius_squaredSquared contact radius of the pair in contact.
[in]harmonic_conductivityHarmonic mean of the thermal conductivities of the pair in contact.
[in]maximum_pressureMaximum pressure for hertzian contacts.
Returns
Microcontact thermal resistance for the pair in contact.

Definition at line 45 of file particle_heat_transfer.cc.

◆ calculate_solid_macrogap_resistance()

double calculate_solid_macrogap_resistance ( const double radius,
const double thermal_conductivity,
const double contact_radius_squared )

Calculate the solid macrogap thermal resistance for one particle.

Parameters
[in]radiusRadius of the particle.
[in]thermal_conductivityThermal conductivity of the particle.
[in]contact_radius_squaredSquared contact radius of the pair in contact.
Returns
Solid macrogap thermal resistance for one particle.

Definition at line 64 of file particle_heat_transfer.cc.

◆ set_wall_temperature_time()

void set_wall_temperature_time ( const Parameters::Lagrangian::BCDEM & boundary_conditions,
const double time )

Set the time of the temperature functions of the walls of the grid with a temperature boundary condition. It does nothing if no wall has a temperature boundary condition.

Parameters
[in]boundary_conditionsDEM boundary conditions, which hold the temperature functions of the walls.
[in]timeTime at which the temperature of the walls is evaluated.

Definition at line 293 of file particle_heat_transfer.cc.

References Parameters::Lagrangian::BCDEM::boundary_temperature.