https://mooseframework.inl.gov
NearestRadiusLayeredAverage.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 // MOOSE includes
12 #include "LayeredAverage.h"
13 
15 
18 {
19  InputParameters params =
21 
22  // this object sets 'dist_norm' so the user shouldn't input it
23  params.set<MooseEnum>("dist_norm") = "radius";
24  params.suppressParameter<MooseEnum>("dist_norm");
25 
26  // 'direction' in this case corresponds to 'axis' so the user shouldn't input it
27  params.set<MooseEnum>("axis") = params.get<MooseEnum>("direction");
28  params.suppressParameter<MooseEnum>("axis");
29 
30  params.addClassDescription(
31  "Computes averages of a variable storing partial sums for the specified number of intervals "
32  "in a direction (x,y,z). Given a list of points this object computes the layered average "
33  "closest to each one of those points, where the distance is computed in terms of radius (or "
34  "distance to the origin in the plane perpendicular to 'direction').");
35 
36  return params;
37 }
38 
41 {
42 }
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn&#39;t required or valid in the derived class...
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
NearestRadiusLayeredAverage(const InputParameters &parameters)
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
registerMooseObject("MooseApp", NearestRadiusLayeredAverage)
This postprocessor computes a volume integral of the specified variable.
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
This UserObject computes averages of a variable storing partial sums for the specified number of inte...