Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
SphericalInclusionIO.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_SphericalInclusionIO_H_
9#define model_SphericalInclusionIO_H_
10
11#ifndef _MODEL_NON_SINGULAR_DD_
12#define _MODEL_NON_SINGULAR_DD_ 1
13#endif
14
15#include <Eigen/Dense>
16// #include <Material.h>
17
18
19// #include <DislocationStress.h>
20// http://solidmechanics.org/text/Chapter5_4/Chapter5_4.htm
21
22
23#include <Eigen/Dense>
24#include <sstream>
25#include <iomanip>
26
27namespace model
28{
29 template <int dim> class SphericalInclusion;
30
31 template <int dim> struct SphericalInclusionIO
32 {
33 typedef Eigen::Matrix<double, dim, dim> MatrixDim;
34 typedef Eigen::Matrix<double, dim, 1> VectorDim;
35
38 double a; // size (radius)
42
43 /**********************************************************************/
45
46 SphericalInclusionIO(const size_t &inclusionID_in, const VectorDim &C_in, const double &a_in,
47 const MatrixDim &eT_in, const double &mobilityReduction_in, const int &phaseID_in);
48
50
51 SphericalInclusionIO(std::stringstream &ss);
52
53 void write(std::ostream &os) const;
54
55 template <class T> friend T &operator<<(T &os, const SphericalInclusionIO<dim> &ei)
56 {
57 ei.write(os);
58 return os;
59 }
60 };
61
62} // namespace model
63#endif
void write(std::ostream &os) const
Eigen::Matrix< double, dim, 1 > VectorDim
Eigen::Matrix< double, dim, dim > MatrixDim
SphericalInclusionIO(const SphericalInclusion< dim > &ei)
friend T & operator<<(T &os, const SphericalInclusionIO< dim > &ei)
newsubseg ss[0]