www.mooseframework.org
Classes | Functions
SwitchingFunctionPenalty.h File Reference

Go to the source code of this file.

Classes

class  SwitchingFunctionPenalty
 SwitchingFunctionPenalty is a constraint kernel adds a penalty to each order parameter to enforce \( \sum_n h_i(\eta_i) \equiv 1 \). More...
 

Functions

template<>
InputParameters validParams< SwitchingFunctionPenalty > ()
 

Function Documentation

template<>
InputParameters validParams< SwitchingFunctionPenalty > ( )

Definition at line 11 of file SwitchingFunctionPenalty.C.

12 {
13  InputParameters params = validParams<Kernel>();
14  params.addClassDescription(
15  "Penalty kernel to constrain the sum of all switching functions in a multiphase system.");
16  params.addParam<std::vector<MaterialPropertyName>>(
17  "h_names", "Switching Function Materials that provide h(eta_i)");
18  params.addRequiredCoupledVar("etas", "eta_i order parameters, one for each h");
19  params.addParam<Real>("penalty", 1.0, "Penalty scaling factor");
20  return params;
21 }