https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVDiffusionInterpolationInterface.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
11
14{
16 MooseEnum face_interp_method("average skewness-corrected", "average");
17 params.addParam<MooseEnum>(
18 "variable_interp_method",
19 face_interp_method,
20 "Switch that can select between face interpolation methods for the variable.");
21
22 return params;
23}
24
26 : _var_interp_method(
27 Moose::FV::selectInterpolationMethod(params.get<MooseEnum>("variable_interp_method"))),
28 _correct_skewness(_var_interp_method == Moose::FV::InterpMethod::SkewCorrectedAverage)
29{
30}
InputParameters emptyInputParameters()
FVDiffusionInterpolationInterface(const InputParameters &params)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...