HeatFluidCoupledInteraction< NormalForceInteraction > Class Template Reference

#include <HeatFluidCoupledInteraction.h>

+ Inheritance diagram for HeatFluidCoupledInteraction< NormalForceInteraction >:

Public Types

typedef HeatFluidCoupledSpecies< typename NormalForceInteraction::SpeciesType > SpeciesType
 
- Public Types inherited from ThermalInteraction< NormalForceInteraction >
typedef ThermalSpecies< typename NormalForceInteraction::SpeciesType > SpeciesType
 

Public Member Functions

 HeatFluidCoupledInteraction (BaseInteractable *P, BaseInteractable *I, unsigned timeStamp)
 Constructor. More...
 
 HeatFluidCoupledInteraction ()
 Default Constructor. More...
 
 HeatFluidCoupledInteraction (const HeatFluidCoupledInteraction &p)
 Copy constructor. More...
 
virtual ~HeatFluidCoupledInteraction ()
 Destructor. More...
 
void computeNormalForce ()
 Computes the normal forces due to linear plastic visco elastic interaction. More...
 
- Public Member Functions inherited from ThermalInteraction< NormalForceInteraction >
 ThermalInteraction (BaseInteractable *P, BaseInteractable *I, unsigned timeStamp)
 Constructor. More...
 
 ThermalInteraction ()
 Default Constructor. More...
 
 ThermalInteraction (const ThermalInteraction &p)
 Copy constructor. More...
 
virtual ~ThermalInteraction ()
 Destructor. More...
 
void computeNormalForce ()
 Computes the normal forces due to linear plastic visco elastic interaction. More...
 

Member Typedef Documentation

◆ SpeciesType

template<class NormalForceInteraction >
typedef HeatFluidCoupledSpecies<typename NormalForceInteraction::SpeciesType> HeatFluidCoupledInteraction< NormalForceInteraction >::SpeciesType

Constructor & Destructor Documentation

◆ HeatFluidCoupledInteraction() [1/3]

template<class NormalForceInteraction >
HeatFluidCoupledInteraction< NormalForceInteraction >::HeatFluidCoupledInteraction ( BaseInteractable P,
BaseInteractable I,
unsigned  timeStamp 
)
inline

Constructor.

46  : BaseInteraction(P, I, timeStamp), ThermalInteraction<NormalForceInteraction>(P, I, timeStamp)
47  {}
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: ThermalInteraction.h:37
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73

◆ HeatFluidCoupledInteraction() [2/3]

template<class NormalForceInteraction >
HeatFluidCoupledInteraction< NormalForceInteraction >::HeatFluidCoupledInteraction ( )
inline

Default Constructor.

◆ HeatFluidCoupledInteraction() [3/3]

◆ ~HeatFluidCoupledInteraction()

template<class NormalForceInteraction >
virtual HeatFluidCoupledInteraction< NormalForceInteraction >::~HeatFluidCoupledInteraction ( )
inlinevirtual

Destructor.

68  {}

Member Function Documentation

◆ computeNormalForce()

template<class NormalForceInteraction >
void HeatFluidCoupledInteraction< NormalForceInteraction >::computeNormalForce

Computes the normal forces due to linear plastic visco elastic interaction.

78 {
79  NormalForceInteraction::computeNormalForce();
80  Mdouble radius = 2.0 * NormalForceInteraction::getEffectiveRadius();
81  Mdouble contactArea = constants::pi * radius * std::max(0.0,NormalForceInteraction::getOverlap());
82  const SpeciesType* species = static_cast<const SpeciesType*>(NormalForceInteraction::getBaseSpecies()->getNormalForce());
83  auto pParticle = dynamic_cast<HeatFluidCoupledParticle*>(NormalForceInteraction::getP());
84  auto iParticle = dynamic_cast<HeatFluidCoupledParticle*>(NormalForceInteraction::getI());
85  // if both p and i are particles
86  if (pParticle && iParticle)
87  {
88  /* heat transfer rate Q=m*c*dT/dt */
89  Mdouble heatTransfer = species->getThermalConductivity()
90  * (pParticle->getTemperature() - iParticle->getTemperature())
91  * contactArea / NormalForceInteraction::getDistance();
92  /* m*dT = Q/c*dt */
93  Mdouble mdT = heatTransfer / species->getHeatCapacity()
94  * NormalForceInteraction::getHandler()->getDPMBase()->getTimeStep();
95  pParticle->addTemperature(-mdT * pParticle->getInvMass());
96  iParticle->addTemperature(mdT * iParticle->getInvMass());
97  }
98 }
double Mdouble
Definition: GeneralDefine.h:34
HeatFluidCoupledSpecies< typename NormalForceInteraction::SpeciesType > SpeciesType
Definition: HeatFluidCoupledInteraction.h:40
Class of particles that store both temperature and liquid volume, which is adapted for the CFD-DEM st...
Definition: HeatFluidCoupledParticle.h:46
void addTemperature(Mdouble temperature)
Definition: ThermalParticle.h:112
const Mdouble pi
Definition: ExtendedMath.h:45

References ThermalSpecies< NormalForceSpecies >::getHeatCapacity(), ThermalSpecies< NormalForceSpecies >::getThermalConductivity(), and constants::pi.


The documentation for this class was generated from the following file: