www.mooseframework.org
TricrystalTripleJunctionIC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "InitialCondition.h"
13 
14 // Forward Declarations
16 
17 template <>
19 
24 class TricrystalTripleJunctionIC : public InitialCondition
25 {
26 public:
27  TricrystalTripleJunctionIC(const InputParameters & parameters);
28 
29  virtual Real value(const Point & p);
30 
31 protected:
32  const MooseMesh & _mesh;
33 
35  const unsigned int _op_num;
36 
37  // Order parameter index
38  const unsigned int _op_index;
39 
41  Point _junction;
42 
44  Real _theta1;
45 
47  Real _theta2;
48 
51 
54 };
55 
validParams< TricrystalTripleJunctionIC >
InputParameters validParams< TricrystalTripleJunctionIC >()
Definition: TricrystalTripleJunctionIC.C:19
TricrystalTripleJunctionIC::_op_index
const unsigned int _op_index
Definition: TricrystalTripleJunctionIC.h:38
TricrystalTripleJunctionIC::TricrystalTripleJunctionIC
TricrystalTripleJunctionIC(const InputParameters &parameters)
Definition: TricrystalTripleJunctionIC.C:33
TricrystalTripleJunctionIC::_op_num
const unsigned int _op_num
Number of order parameters.
Definition: TricrystalTripleJunctionIC.h:35
TricrystalTripleJunctionIC::_tan_theta1
Real _tan_theta1
tangent of the first angle after a shift of pi/2
Definition: TricrystalTripleJunctionIC.h:50
TricrystalTripleJunctionIC::value
virtual Real value(const Point &p)
Definition: TricrystalTripleJunctionIC.C:79
TricrystalTripleJunctionIC::_tan_theta2
Real _tan_theta2
tangent of the second angle after a shift of pi/2
Definition: TricrystalTripleJunctionIC.h:53
TricrystalTripleJunctionIC
TricrystalTripleJunctionIC creates a 3-grain structure with a triple junction centered at _junction a...
Definition: TricrystalTripleJunctionIC.h:24
TricrystalTripleJunctionIC::_junction
Point _junction
Point where the triple junction occurs.
Definition: TricrystalTripleJunctionIC.h:41
TricrystalTripleJunctionIC::_theta2
Real _theta2
Angle of third grain at triple junction in radians.
Definition: TricrystalTripleJunctionIC.h:47
TricrystalTripleJunctionIC::_theta1
Real _theta1
Angle of first grain at triple junction in radians.
Definition: TricrystalTripleJunctionIC.h:44
TricrystalTripleJunctionIC::_mesh
const MooseMesh & _mesh
Definition: TricrystalTripleJunctionIC.h:32