Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
TotalFreeEnergyBase.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 "TotalFreeEnergyBase.h"
11 
14 {
16  params.addCoupledVar("interfacial_vars", "Variable names that contribute to interfacial energy");
17  params.addCoupledVar(
18  "additional_free_energy",
19  0.0,
20  "Coupled variable holding additional free energy contributions to be summed up");
21  return params;
22 }
23 
25  : AuxKernel(parameters),
26  _nvars(coupledComponents("interfacial_vars")),
27  _vars(coupledValues("interfacial_vars")),
28  _grad_vars(coupledGradients("interfacial_vars")),
29  _kappa_names(getParam<std::vector<MaterialPropertyName>>("kappa_names")),
30  _nkappas(_kappa_names.size()),
31  _additional_free_energy(coupledValue("additional_free_energy"))
32 {
33 }
void addCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
static InputParameters validParams()
TotalFreeEnergyBase(const InputParameters &parameters)