https://mooseframework.inl.gov
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 }
FVDiffusionInterpolationInterface(const InputParameters &params)
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
Definition: MooseUtils.h:1155
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters emptyInputParameters()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
InterpMethod selectInterpolationMethod(const std::string &interp_method)
Definition: MathFVUtils.C:81
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...
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
InterpMethod
This codifies a set of available ways to interpolate with elem+neighbor solution information to calcu...
Definition: MathFVUtils.h:35