www.mooseframework.org
GBEvolution.C
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 #include "GBEvolution.h"
11 
12 registerMooseObject("PhaseFieldApp", GBEvolution);
13 registerMooseObject("PhaseFieldApp", ADGBEvolution);
14 
15 template <bool is_ad>
18 {
20  params.addRequiredParam<Real>("GBenergy", "Grain boundary energy in J/m^2");
21  return params;
22 }
23 
24 template <bool is_ad>
26  : GBEvolutionBaseTempl<is_ad>(parameters), _GBEnergy(this->template getParam<Real>("GBenergy"))
27 {
28 }
29 
30 template <bool is_ad>
31 void
33 {
34  // eV/nm^2
35  this->_sigma[this->_qp] = _GBEnergy * this->_JtoeV * (this->_length_scale * this->_length_scale);
36 
38 }
39 
40 template class GBEvolutionTempl<false>;
41 template class GBEvolutionTempl<true>;
GBEvolutionTempl(const InputParameters &parameters)
Definition: GBEvolution.C:25
Grain boundary energy parameters for isotropic uniform grain boundary energies.
Definition: GBEvolution.h:18
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
virtual void computeQpProperties()
Definition: GBEvolution.C:32
static InputParameters validParams()
Definition: GBEvolution.C:17
virtual void computeQpProperties()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("PhaseFieldApp", GBEvolution)