예제 #1
0
InputParameters validParams<MatDiffusion>()
{
  InputParameters params = validParams<Kernel>();
  params.addRequiredParam<std::string>("prop_name", "the name of the material property we are going to use");

  MooseEnum prop_state("current old older", "current");
  params.addParam<MooseEnum>("prop_state", prop_state, "Declares which property state we should retrieve");
  return params;
}
예제 #2
0
InputParameters
validParams<MaterialPointSource>()
{
  InputParameters params = validParams<DiracKernel>();
  params.addRequiredParam<Point>("point", "The x,y,z coordinates of the point");
  params.addParam<MaterialPropertyName>(
      "material_prop", "matp", "the name of the material property for the coefficient");

  MooseEnum prop_state("current old older", "current");
  params.addParam<MooseEnum>(
      "prop_state", prop_state, "Declares which property state we should retrieve");

  params.declareControllable("point");
  return params;
}