HertzianSinterNormalSpecies Class Reference

HertzianSinterNormalSpecies contains the parameters used to describe a plastic-cohesive normal force (Stefan Ludings plastic-cohesive force model). More...

#include <HertzianSinterNormalSpecies.h>

+ Inheritance diagram for HertzianSinterNormalSpecies:

Public Types

typedef HertzianSinterInteraction InteractionType
 The correct Interaction type for this FrictionForceSpecies. More...
 

Public Member Functions

 HertzianSinterNormalSpecies ()
 The default constructor. More...
 
 HertzianSinterNormalSpecies (const HertzianSinterNormalSpecies &p)
 The default copy constructor. More...
 
 ~HertzianSinterNormalSpecies ()
 The default destructor. More...
 
void read (std::istream &is)
 Reads the species properties from an input stream. More...
 
void write (std::ostream &os) const
 Writes the species properties to an output stream. More...
 
std::string getBaseName () const
 Used in Species::getName to obtain a unique name for each Species. More...
 
void mix (HertzianSinterNormalSpecies *S, HertzianSinterNormalSpecies *T)
 creates default values for mixed species More...
 
void setPlasticParameters (Mdouble loadingModulus, Mdouble unloadingModulusMax, Mdouble cohesionModulus, Mdouble penetrationDepthMax)
 Sets all parameters of the linear plastic-viscoelastic normal force at once. More...
 
Mdouble getLoadingModulus () const
 Returns the loading stiffness of the linear plastic-viscoelastic normal force. More...
 
Mdouble getUnloadingModulusMax () const
 Returns the maximum unloading stiffness of the linear plastic-viscoelastic normal force. More...
 
Mdouble getCohesionModulus () const
 Returns the cohesive stiffness of the linear plastic-viscoelastic normal force. More...
 
Mdouble getPenetrationDepthMax () const
 Returns the maximum penetration depth of the linear plastic-viscoelastic normal force. More...
 
void setLoadingModulus (Mdouble loadingModulus)
 Sets the loading stiffness of the linear plastic-viscoelastic normal force. More...
 
void setUnloadingModulusMax (Mdouble unloadingModulusMax)
 Sets the maximum unloading stiffness of the linear plastic-viscoelastic normal force. More...
 
void setCohesionModulus (Mdouble cohesionModulus)
 Sets the cohesive stiffness of the linear plastic-viscoelastic normal force. More...
 
void setPenetrationDepthMax (Mdouble penetrationDepthMax)
 Sets the maximum penetration depth of the linear plastic-viscoelastic normal force. More...
 
void setDissipation (Mdouble dissipation)
 Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force. More...
 
Mdouble getDissipation () const
 Allows the normal dissipation to be accessed. More...
 
void setSinterRate (Mdouble sinterRate)
 Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force. More...
 
Mdouble getSinterRate () const
 Allows the normal dissipation to be accessed. More...
 
Mdouble computeTimeStep (Mdouble mass)
 Returns the optimal time step to resolve a collision of two particles of a given mass. More...
 
- Public Member Functions inherited from BaseNormalForce
 BaseNormalForce ()
 
 BaseNormalForce (const BaseNormalForce &p)
 
bool getConstantRestitution () const
 
void setConstantRestitution (bool constantRestitution)
 
virtual void actionsAfterTimeStep (BaseParticle *particle) const
 
- Public Member Functions inherited from BaseForce
BaseSpeciesgetBaseSpecies () const
 
void setBaseSpecies (BaseSpecies *baseSpecies)
 

Private Attributes

Mdouble loadingModulus_
 (normal) spring constant (k_1) More...
 
Mdouble unloadingModulusMax_
 the maximum elastic constant (k_2^max) for plastic deformations More...
 
Mdouble cohesionModulus_
 the adhesive spring constant (k^c) for plastic deformations More...
 
Mdouble penetrationDepthMax_
 the depth (relative to the normalized radius) at which k_2^max is used (phi_f) More...
 
Mdouble dissipation_
 linear dissipation coefficient More...
 
Mdouble sinterRate_
 

Detailed Description

HertzianSinterNormalSpecies contains the parameters used to describe a plastic-cohesive normal force (Stefan Ludings plastic-cohesive force model).

See SinterNormalInteraction::computeForce for a description of the force law.

Member Typedef Documentation

◆ InteractionType

The correct Interaction type for this FrictionForceSpecies.

Constructor & Destructor Documentation

◆ HertzianSinterNormalSpecies() [1/2]

HertzianSinterNormalSpecies::HertzianSinterNormalSpecies ( )

The default constructor.

16  : BaseNormalForce()
17 {
18  loadingModulus_ = 0.0;
20  cohesionModulus_ = 0.0;
22  dissipation_ = 0.0;
23  sinterRate_ = 0.0;
24 #ifdef DEBUG_CONSTRUCTOR
25  std::cout<<"HertzianSinterNormalSpecies::HertzianSinterNormalSpecies() finished"<<std::endl;
26 #endif
27 }
BaseNormalForce()
Definition: BaseNormalForce.h:14
Mdouble unloadingModulusMax_
the maximum elastic constant (k_2^max) for plastic deformations
Definition: HertzianSinterNormalSpecies.h:125
Mdouble penetrationDepthMax_
the depth (relative to the normalized radius) at which k_2^max is used (phi_f)
Definition: HertzianSinterNormalSpecies.h:131
Mdouble dissipation_
linear dissipation coefficient
Definition: HertzianSinterNormalSpecies.h:134
Mdouble loadingModulus_
(normal) spring constant (k_1)
Definition: HertzianSinterNormalSpecies.h:122
Mdouble cohesionModulus_
the adhesive spring constant (k^c) for plastic deformations
Definition: HertzianSinterNormalSpecies.h:128
Mdouble sinterRate_
Definition: HertzianSinterNormalSpecies.h:136

References cohesionModulus_, dissipation_, loadingModulus_, penetrationDepthMax_, sinterRate_, and unloadingModulusMax_.

◆ HertzianSinterNormalSpecies() [2/2]

HertzianSinterNormalSpecies::HertzianSinterNormalSpecies ( const HertzianSinterNormalSpecies p)

The default copy constructor.

Parameters
[in]'thespecies that is copied'
34 {
35  loadingModulus_ = p.loadingModulus_;
36  unloadingModulusMax_ = p.unloadingModulusMax_;
37  cohesionModulus_ = p.cohesionModulus_;
38  penetrationDepthMax_ = p.penetrationDepthMax_;
39  dissipation_ = p.dissipation_;
40  sinterRate_ = p.sinterRate_;
41 #ifdef DEBUG_CONSTRUCTOR
42  std::cout<<"HertzianSinterNormalSpecies::HertzianSinterNormalSpecies(const HertzianSinterNormalSpecies &p) finished"<<std::endl;
43 #endif
44 }
float * p
Definition: Tutorial_Map_using.cpp:9

References cohesionModulus_, dissipation_, loadingModulus_, p, penetrationDepthMax_, sinterRate_, and unloadingModulusMax_.

◆ ~HertzianSinterNormalSpecies()

HertzianSinterNormalSpecies::~HertzianSinterNormalSpecies ( )

The default destructor.

47 {
48 #ifdef DEBUG_DESTRUCTOR
49  std::cout<<"HertzianSinterNormalSpecies::~HertzianSinterNormalSpecies() finished"<<std::endl;
50 #endif
51 }

Member Function Documentation

◆ computeTimeStep()

Mdouble HertzianSinterNormalSpecies::computeTimeStep ( Mdouble  mass)

Returns the optimal time step to resolve a collision of two particles of a given mass.

Calculates collision time for stiffest spring constant, divides by 50

Parameters
[in]massthe optimal time step is computed to resolve a collision of two particles of this mass.
192 {
193 // if (stiffnessMax / (.5 * mass) < mathsFunc::square(dissipation_ /mass)) {
194 // std::cerr << "Dissipation too high; max. allowed " << sqrt(2.0 * stiffnessMax * mass) << std::endl;
195 // return 0.02 * constants::pi / std::sqrt(2.0*stiffnessMax / mass);
196 // } else {
197  logger(WARN, "Warning: Dissipation is not taken into account when computing the time step");
198  ParticleSpecies* p = dynamic_cast<ParticleSpecies*>(getBaseSpecies());
199  logger.assert_debug(p,"Empty particle handler");
200  Mdouble radius = cbrt(mass * 3. / (4. * constants::pi * p->getDensity()));
201  return 0.02 * constants::pi / std::sqrt(2.0 * getUnloadingModulusMax() * getPenetrationDepthMax() * radius / mass);
202 }
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
double Mdouble
Definition: GeneralDefine.h:13
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
@ WARN
BaseSpecies * getBaseSpecies() const
Definition: BaseForce.h:15
Mdouble getUnloadingModulusMax() const
Returns the maximum unloading stiffness of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:134
Mdouble getPenetrationDepthMax() const
Returns the maximum penetration depth of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:150
Definition: ParticleSpecies.h:16
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T cbrt(const T &x)
Definition: MathFunctions.h:1320
radius
Definition: UniformPSDSelfTest.py:15
const Mdouble pi
Definition: ExtendedMath.h:23

References Eigen::numext::cbrt(), BaseForce::getBaseSpecies(), getPenetrationDepthMax(), getUnloadingModulusMax(), logger, p, constants::pi, UniformPSDSelfTest::radius, sqrt(), and WARN.

◆ getBaseName()

std::string HertzianSinterNormalSpecies::getBaseName ( ) const

Used in Species::getName to obtain a unique name for each Species.

Returns
a string containing the name of the species (minus the word "Species")
84 {
85  return "HertzianSinter";
86 }

◆ getCohesionModulus()

Mdouble HertzianSinterNormalSpecies::getCohesionModulus ( ) const

Returns the cohesive stiffness of the linear plastic-viscoelastic normal force.

Returns
the cohesive stiffness of the linear plastic-viscoelastic normal force.
143 {
144  return cohesionModulus_;
145 }

References cohesionModulus_.

Referenced by HertzianSinterInteraction::computeSinterForce().

◆ getDissipation()

Mdouble HertzianSinterNormalSpecies::getDissipation ( ) const

Allows the normal dissipation to be accessed.

Returns
the linear dissipation coefficient
240 {
241  return dissipation_;
242 }

References dissipation_.

Referenced by HertzianSinterInteraction::computeSinterForce().

◆ getLoadingModulus()

Mdouble HertzianSinterNormalSpecies::getLoadingModulus ( ) const

Returns the loading stiffness of the linear plastic-viscoelastic normal force.

Returns
the loading stiffness of the linear plastic-viscoelastic normal force.
127 {
128  return loadingModulus_;
129 }

References loadingModulus_.

Referenced by HertzianSinterInteraction::computeSinterForce(), HertzianSinterInteraction::getElasticEnergy(), and HertzianSinterInteraction::getUnloadingModulus().

◆ getPenetrationDepthMax()

Mdouble HertzianSinterNormalSpecies::getPenetrationDepthMax ( ) const

Returns the maximum penetration depth of the linear plastic-viscoelastic normal force.

Returns
the maximum penetration depth of the linear plastic-viscoelastic normal force.
151 {
152  return penetrationDepthMax_;
153 }

References penetrationDepthMax_.

Referenced by HertzianSinterInteraction::computeSinterForce(), computeTimeStep(), and HertzianSinterInteraction::getUnloadingModulus().

◆ getSinterRate()

Mdouble HertzianSinterNormalSpecies::getSinterRate ( ) const

Allows the normal dissipation to be accessed.

Returns
the linear dissipation coefficient
248 {
249  return sinterRate_;
250 }

References sinterRate_.

Referenced by HertzianSinterInteraction::computeSinterForce().

◆ getUnloadingModulusMax()

Mdouble HertzianSinterNormalSpecies::getUnloadingModulusMax ( ) const

Returns the maximum unloading stiffness of the linear plastic-viscoelastic normal force.

Returns
the maximum unloading stiffness of the linear plastic-viscoelastic normal force.
135 {
136  return unloadingModulusMax_;
137 }

References unloadingModulusMax_.

Referenced by HertzianSinterInteraction::computeSinterForce(), computeTimeStep(), and HertzianSinterInteraction::getUnloadingModulus().

◆ mix()

void HertzianSinterNormalSpecies::mix ( HertzianSinterNormalSpecies S,
HertzianSinterNormalSpecies T 
)

creates default values for mixed species

For all parameters we assume that the harmonic mean of the parameters of the original two species is a sensible default.

Parameters
[in]S,Tthe two species whose properties are mixed to create the new species
94 {
95  loadingModulus_ = BaseSpecies::average(S->getLoadingModulus(), T->getLoadingModulus());
96  unloadingModulusMax_ = BaseSpecies::average(S->getUnloadingModulusMax(), T->getUnloadingModulusMax());
97  cohesionModulus_ = BaseSpecies::average(S->getCohesionModulus(), T->getCohesionModulus());
98  penetrationDepthMax_ = BaseSpecies::average(S->getPenetrationDepthMax(), T->getPenetrationDepthMax());
99  dissipation_ = BaseSpecies::average(S->getDissipation(), T->getDissipation());
100  sinterRate_ = BaseSpecies::average(S->getSinterRate(), T->getSinterRate());
101 }
static Mdouble average(Mdouble a, Mdouble b)
Returns the harmonic mean of two variables.
Definition: BaseSpecies.cc:89
@ S
Definition: quadtree.h:62

References BaseSpecies::average(), cohesionModulus_, dissipation_, loadingModulus_, penetrationDepthMax_, oomph::QuadTreeNames::S, sinterRate_, and unloadingModulusMax_.

◆ read()

void HertzianSinterNormalSpecies::read ( std::istream &  is)

Reads the species properties from an input stream.

Parameters
[in]inputstream (typically the restart file)
70 {
71  std::string dummy;
72  is >> dummy >> loadingModulus_;
73  is >> dummy >> unloadingModulusMax_;
74  is >> dummy >> cohesionModulus_;
75  is >> dummy >> penetrationDepthMax_;
76  is >> dummy >> dissipation_;
77  is >> dummy >> sinterRate_;
78 }
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286

References cohesionModulus_, dissipation_, loadingModulus_, penetrationDepthMax_, sinterRate_, oomph::Global_string_for_annotation::string(), and unloadingModulusMax_.

◆ setCohesionModulus()

void HertzianSinterNormalSpecies::setCohesionModulus ( Mdouble  cohesionModulus)

Sets the cohesive stiffness of the linear plastic-viscoelastic normal force.

Parameters
[in]cohesionModulusthe cohesive stiffness of the linear plastic-viscoelastic normal force.
175 {
176  cohesionModulus_ = cohesionModulus;
177 }

References cohesionModulus_.

Referenced by setPlasticParameters().

◆ setDissipation()

void HertzianSinterNormalSpecies::setDissipation ( Mdouble  dissipation)

Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force.

should be non-negative

Parameters
[in]dissipationthe linear dissipation coefficient of the linear plastic-viscoelastic normal force.
209 {
210  if (dissipation >= 0)
211  {
212  dissipation_ = dissipation;
213  }
214  else
215  {
216  logger(ERROR, "setDissipation(%) argument has to be non-negative", dissipation);
217  }
218 }
@ ERROR

References dissipation_, ERROR, and logger.

◆ setLoadingModulus()

void HertzianSinterNormalSpecies::setLoadingModulus ( Mdouble  loadingModulus)

Sets the loading stiffness of the linear plastic-viscoelastic normal force.

Parameters
[in]loadingModulusthe loading stiffness of the linear plastic-viscoelastic normal force.
159 {
160  loadingModulus_ = loadingModulus;
161 }

References loadingModulus_.

Referenced by setPlasticParameters().

◆ setPenetrationDepthMax()

void HertzianSinterNormalSpecies::setPenetrationDepthMax ( Mdouble  penetrationDepthMax)

Sets the maximum penetration depth of the linear plastic-viscoelastic normal force.

Parameters
[in]penetrationDepthMaxthe maximum penetration depth of the linear plastic-viscoelastic normal force.
183 {
184  penetrationDepthMax_ = penetrationDepthMax;
185 }

References penetrationDepthMax_.

Referenced by setPlasticParameters().

◆ setPlasticParameters()

void HertzianSinterNormalSpecies::setPlasticParameters ( Mdouble  loadingModulus,
Mdouble  unloadingModulusMax,
Mdouble  cohesionModulus,
Mdouble  penetrationDepthMax 
)

Sets all parameters of the linear plastic-viscoelastic normal force at once.

Parameters
[in]loadingModulusthe loading stiffness of the linear plastic-viscoelastic normal force.
[in]unloadingModulusMaxthe maximum unloading stiffness of the linear plastic-viscoelastic normal force.
[in]cohesionModulusthe cohesive stiffness of the linear plastic-viscoelastic normal force.
[in]penetrationDepthMaxthe maximum penetration depth of the linear plastic-viscoelastic normal force.
111 {
112  if (loadingModulus <= 0 || unloadingModulusMax <= 1.000001 * (loadingModulus + cohesionModulus) ||
113  cohesionModulus < 0 || penetrationDepthMax < 0)
114  {
115  logger(ERROR, "Arguments of setPlasticParameters do not make sense");
116  }
117  setLoadingModulus(loadingModulus);
118  setUnloadingModulusMax(unloadingModulusMax);
119  setCohesionModulus(cohesionModulus);
120  setPenetrationDepthMax(penetrationDepthMax);
121 }
void setLoadingModulus(Mdouble loadingModulus)
Sets the loading stiffness of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:158
void setUnloadingModulusMax(Mdouble unloadingModulusMax)
Sets the maximum unloading stiffness of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:166
void setPenetrationDepthMax(Mdouble penetrationDepthMax)
Sets the maximum penetration depth of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:182
void setCohesionModulus(Mdouble cohesionModulus)
Sets the cohesive stiffness of the linear plastic-viscoelastic normal force.
Definition: HertzianSinterNormalSpecies.cc:174

References ERROR, logger, setCohesionModulus(), setLoadingModulus(), setPenetrationDepthMax(), and setUnloadingModulusMax().

◆ setSinterRate()

void HertzianSinterNormalSpecies::setSinterRate ( Mdouble  sinterRate)

Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force.

should be non-negative

Parameters
[in]thelinear dissipation coefficient of the linear plastic-viscoelastic normal force.
225 {
226  if (sinterRate >= 0)
227  {
228  sinterRate_ = sinterRate;
229  }
230  else
231  {
232  logger(ERROR, "setSinterRate(%) argument has to be non-negative", sinterRate);
233  }
234 }

References ERROR, logger, and sinterRate_.

◆ setUnloadingModulusMax()

void HertzianSinterNormalSpecies::setUnloadingModulusMax ( Mdouble  unloadingModulusMax)

Sets the maximum unloading stiffness of the linear plastic-viscoelastic normal force.

Parameters
[in]unloadingModulusMaxthe maximum unloading stiffness of the linear plastic-viscoelastic normal force.
167 {
168  unloadingModulusMax_ = unloadingModulusMax;
169 }

References unloadingModulusMax_.

Referenced by setPlasticParameters().

◆ write()

void HertzianSinterNormalSpecies::write ( std::ostream &  os) const

Writes the species properties to an output stream.

Parameters
[out]outputstream (typically the restart file)
57 {
58  os << " loadingModulus " << loadingModulus_;
59  os << " maxUnloadingModulus " << unloadingModulusMax_;
60  os << " cohesionModulus " << cohesionModulus_;
61  os << " maxPenetration " << penetrationDepthMax_;
62  os << " dissipation " << dissipation_;
63  os << " sinterRate " << sinterRate_;
64 }

References cohesionModulus_, dissipation_, loadingModulus_, penetrationDepthMax_, sinterRate_, and unloadingModulusMax_.

Member Data Documentation

◆ cohesionModulus_

Mdouble HertzianSinterNormalSpecies::cohesionModulus_
private

the adhesive spring constant (k^c) for plastic deformations

Referenced by getCohesionModulus(), HertzianSinterNormalSpecies(), mix(), read(), setCohesionModulus(), and write().

◆ dissipation_

Mdouble HertzianSinterNormalSpecies::dissipation_
private

linear dissipation coefficient

Referenced by getDissipation(), HertzianSinterNormalSpecies(), mix(), read(), setDissipation(), and write().

◆ loadingModulus_

Mdouble HertzianSinterNormalSpecies::loadingModulus_
private

(normal) spring constant (k_1)

Referenced by getLoadingModulus(), HertzianSinterNormalSpecies(), mix(), read(), setLoadingModulus(), and write().

◆ penetrationDepthMax_

Mdouble HertzianSinterNormalSpecies::penetrationDepthMax_
private

the depth (relative to the normalized radius) at which k_2^max is used (phi_f)

Referenced by getPenetrationDepthMax(), HertzianSinterNormalSpecies(), mix(), read(), setPenetrationDepthMax(), and write().

◆ sinterRate_

Mdouble HertzianSinterNormalSpecies::sinterRate_
private

◆ unloadingModulusMax_

Mdouble HertzianSinterNormalSpecies::unloadingModulusMax_
private

the maximum elastic constant (k_2^max) for plastic deformations

Referenced by getUnloadingModulusMax(), HertzianSinterNormalSpecies(), mix(), read(), setUnloadingModulusMax(), and write().


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