SolidifyingLiquidMigrationWilletSpecies.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef SolidifyingLiquidMigrationWilletSpecies_h
6 #define SolidifyingLiquidMigrationWilletSpecies_h
7 
9 #include "Math/ExtendedMath.h"
11 #include "../BaseSpecies.h"
12 
18 {
19 public:
22 
25 
28 
31 
33  void read(std::istream& is);
34 
36  void write(std::ostream& os) const;
37 
39  std::string getBaseName() const;
40 
43 
44 //setters and getters
45  // Allows the spring constant to be changed
46  void setBondDissipation(Mdouble bondDissipation) {
47  logger.assert_debug(bondDissipation >= 0, "Error in setBondDissipation");
48  bondDissipation_ = bondDissipation;
49  }
50 
51  // Allows the spring constant to be accessed
53  return bondDissipation_;
54  }
55 
56  // Allows bondForceMax_ to be changed
57  void setBondForceMax(Mdouble bondForceMax) {
58  logger.assert_debug(bondForceMax >= 0, "Error in setBondForceMax");
59  bondForceMax_ = bondForceMax;
60  }
61 
62  // Allows bondForceMax_ to be accessed
64  return bondForceMax_;
65  }
66 
67  // Allows bondForceMax_ to be changed
68  void setSolidFraction(Mdouble solidFraction) {
69  logger.assert_debug(solidFraction >= 0, "Error in setBondForceMax");
70  solidFraction_ = solidFraction;
71  }
72 
73  // Allows bondForceMax_ to be accessed
75  return solidFraction_;
76  }
77 
78 private:
81 
84 
87 };
88 
89 #endif
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LiquidMigrationWilletSpecies contains the parameters used to describe a short-range force caused by l...
Definition: LiquidMigrationWilletSpecies.h:17
Definition: SolidifyingLiquidMigrationWilletInteraction.h:21
SolidifyingLiquidMigrationWilletSpecies contains the parameters used to describe a linear irreversibl...
Definition: SolidifyingLiquidMigrationWilletSpecies.h:18
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:38
void setBondDissipation(Mdouble bondDissipation)
Definition: SolidifyingLiquidMigrationWilletSpecies.h:46
Mdouble getSolidFraction() const
Definition: SolidifyingLiquidMigrationWilletSpecies.h:74
~SolidifyingLiquidMigrationWilletSpecies()
The default destructor.
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:31
void write(std::ostream &os) const
Writes the species properties to an output stream.
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:46
void read(std::istream &is)
Reads the species properties from an input stream.
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:57
Mdouble getBondDissipation() const
Definition: SolidifyingLiquidMigrationWilletSpecies.h:52
SolidifyingLiquidMigrationWilletSpecies()
The default constructor.
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:14
void mix(SolidifyingLiquidMigrationWilletSpecies *S, SolidifyingLiquidMigrationWilletSpecies *T)
creates default values for mixed species
Definition: SolidifyingLiquidMigrationWilletSpecies.cc:71
void setSolidFraction(Mdouble solidFraction)
Definition: SolidifyingLiquidMigrationWilletSpecies.h:68
Mdouble solidFraction_
Different from bondInteraction:
Definition: SolidifyingLiquidMigrationWilletSpecies.h:86
SolidifyingLiquidMigrationWilletInteraction InteractionType
The correct Interaction type for this AdhesiveForceSpecies.
Definition: SolidifyingLiquidMigrationWilletSpecies.h:21
void setBondForceMax(Mdouble bondForceMax)
Definition: SolidifyingLiquidMigrationWilletSpecies.h:57
Mdouble getBondForceMax() const
Definition: SolidifyingLiquidMigrationWilletSpecies.h:63
Mdouble bondForceMax_
adhesion force at zero overlap
Definition: SolidifyingLiquidMigrationWilletSpecies.h:83
Mdouble bondDissipation_
dissipation in bond
Definition: SolidifyingLiquidMigrationWilletSpecies.h:80
RealScalar s
Definition: level1_cplx_impl.h:130
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
@ S
Definition: quadtree.h:62