Esempio n. 1
0
InputParameters validParams<LayeredBase>()
{
  InputParameters params = emptyInputParameters();
  MooseEnum directions("x, y, z");

  params.addRequiredParam<MooseEnum>("direction", directions, "The direction of the layers.");
  params.addRequiredParam<unsigned int>("num_layers", "The number of layers.");

  MooseEnum sample_options("direct, interpolate, average", "direct");
  params.addParam<MooseEnum>("sample_type", sample_options, "How to sample the layers.  'direct' means get the value of the layer the point falls in directly (or average if that layer has no value).  'interpolate' does a linear interpolation between the two closest layers.  'average' averages the two closest layers.");

  params.addParam<unsigned int>("average_radius", 1, "When using 'average' sampling this is how the number of values both above and below the layer that will be averaged.");

  return params;
}
Esempio n. 2
0
InputParameters validParams<LayeredBase>()
{
    InputParameters params = emptyInputParameters();
    MooseEnum directions("x y z");

    params.addRequiredParam<MooseEnum>("direction", directions, "The direction of the layers.");
    params.addParam<unsigned int>("num_layers", "The number of layers.");
    params.addParam<std::vector<Real> >("bounds", "The 'bounding' positions of the layers i.e.: '0, 1.2, 3.7, 4.2' will mean 3 layers between those positions.");

    MooseEnum sample_options("direct interpolate average", "direct");
    params.addParam<MooseEnum>("sample_type", sample_options, "How to sample the layers.  'direct' means get the value of the layer the point falls in directly (or average if that layer has no value).  'interpolate' does a linear interpolation between the two closest layers.  'average' averages the two closest layers.");

    params.addParam<unsigned int>("average_radius", 1, "When using 'average' sampling this is how the number of values both above and below the layer that will be averaged.");

    params.addParam<bool>("cumulative", false, "When true the value in each layer is the sum of the values up to and including that layer");

    return params;
}