www.mooseframework.org
TricrystalTripleJunctionIC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef TRICRYSTALTRIPLEJUNCTIONIC_H
8 #define TRICRYSTALTRIPLEJUNCTIONIC_H
9 
10 #include "InitialCondition.h"
11 
12 // Forward Declarations
14 
15 template <>
17 
22 class TricrystalTripleJunctionIC : public InitialCondition
23 {
24 public:
25  TricrystalTripleJunctionIC(const InputParameters & parameters);
26 
27  virtual Real value(const Point & p);
28 
29 protected:
30  const MooseMesh & _mesh;
31 
33  const unsigned int _op_num;
34 
35  // Order parameter index
36  const unsigned int _op_index;
37 
39  Point _junction;
40 
42  Real _theta1;
43 
45  Real _theta2;
46 
49 
52 };
53 
54 #endif // TRICRYSTALTRIPLEJUNCTIONIC_H
const unsigned int _op_num
Number of order parameters.
virtual Real value(const Point &p)
TricrystalTripleJunctionIC creates a 3-grain structure with a triple junction centered at _junction a...
Real _theta2
Angle of third grain at triple junction in radians.
Real _tan_theta1
tangent of the first angle after a shift of pi/2
Real _theta1
Angle of first grain at triple junction in radians.
Real _tan_theta2
tangent of the second angle after a shift of pi/2
Point _junction
Point where the triple junction occurs.
InputParameters validParams< TricrystalTripleJunctionIC >()
TricrystalTripleJunctionIC(const InputParameters &parameters)