https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GBEvolution.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
14
15template <bool is_ad>
18{
20 params.addRequiredParam<Real>("GBenergy", "Grain boundary energy in J/m^2");
21 return params;
22}
23
24template <bool is_ad>
26 : GBEvolutionBaseTempl<is_ad>(parameters), _GBEnergy(this->template getParam<Real>("GBenergy"))
27{
28}
29
30template <bool is_ad>
31void
33{
34 // eV/nm^2
35 this->_sigma[this->_qp] = _GBEnergy * this->_JtoeV * (this->_length_scale * this->_length_scale);
36
38}
39
40template class GBEvolutionTempl<false>;
41template class GBEvolutionTempl<true>;
registerMooseObject("PhaseFieldApp", GBEvolution)
virtual void computeQpProperties()
static InputParameters validParams()
Grain boundary energy parameters for isotropic uniform grain boundary energies.
Definition GBEvolution.h:19
GBEvolutionTempl(const InputParameters &parameters)
Definition GBEvolution.C:25
virtual void computeQpProperties()
Definition GBEvolution.C:32
static InputParameters validParams()
Definition GBEvolution.C:17
void addRequiredParam(const std::string &name, const std::string &doc_string)