https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
registerMooseObject("MooseApp", NearestRadiusLayeredAverage)
This postprocessor computes a volume integral of the specified variable.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn't required or valid in the derived class...
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.
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.
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
static InputParameters validParams()
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
NearestRadiusLayeredAverage(const InputParameters &parameters)