Line data Source code
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 "TotalFreeEnergyBase.h" 11 : 12 : InputParameters 13 618 : TotalFreeEnergyBase::validParams() 14 : { 15 618 : InputParameters params = AuxKernel::validParams(); 16 1236 : params.addCoupledVar("interfacial_vars", "Variable names that contribute to interfacial energy"); 17 1236 : params.addCoupledVar( 18 : "additional_free_energy", 19 : 0.0, 20 : "Coupled variable holding additional free energy contributions to be summed up"); 21 618 : return params; 22 0 : } 23 : 24 324 : TotalFreeEnergyBase::TotalFreeEnergyBase(const InputParameters & parameters) 25 : : AuxKernel(parameters), 26 324 : _nvars(coupledComponents("interfacial_vars")), 27 324 : _vars(coupledValues("interfacial_vars")), 28 324 : _grad_vars(coupledGradients("interfacial_vars")), 29 972 : _kappa_names(getParam<std::vector<MaterialPropertyName>>("kappa_names")), 30 324 : _nkappas(_kappa_names.size()), 31 648 : _additional_free_energy(coupledValue("additional_free_energy")) 32 : { 33 324 : }