https://mooseframework.inl.gov
NSFVUtils.h
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 #pragma once
11 
12 #include "MathFVUtils.h"
13 
14 class MooseObject;
15 class InputParameters;
16 
17 namespace Moose
18 {
19 namespace FV
20 {
29 bool setInterpolationMethods(const MooseObject & obj,
30  Moose::FV::InterpMethod & advected_interp_method,
31  Moose::FV::InterpMethod & velocity_interp_method);
32 
37 }
38 }
39 
40 namespace NS
41 {
51 template <class T>
52 std::tuple<bool, T, T> isPorosityJumpFace(const Moose::FunctorBase<T> & porosity,
53  const FaceInfo & fi,
54  const Moose::StateArg & time);
55 
56 extern template std::tuple<bool, Real, Real> isPorosityJumpFace<Real>(
57  const Moose::FunctorBase<Real> & porosity, const FaceInfo & fi, const Moose::StateArg & time);
58 extern template std::tuple<bool, ADReal, ADReal> isPorosityJumpFace<ADReal>(
59  const Moose::FunctorBase<ADReal> & porosity, const FaceInfo & fi, const Moose::StateArg & time);
60 }
bool setInterpolationMethods(const MooseObject &obj, Moose::FV::InterpMethod &advected_interp_method, Moose::FV::InterpMethod &velocity_interp_method)
Sets the advection and velocity interpolation methods.
Definition: NSFVUtils.C:21
InputParameters interpolationParameters()
Definition: NSFVUtils.C:41
static const std::string porosity
Definition: NS.h:104
template std::tuple< bool, ADReal, ADReal > isPorosityJumpFace< ADReal >(const Moose::FunctorBase< ADReal > &porosity, const FaceInfo &fi, const Moose::StateArg &time)
std::tuple< bool, T, T > isPorosityJumpFace(const Moose::FunctorBase< T > &porosity, const FaceInfo &fi, const Moose::StateArg &time)
Checks to see whether the porosity value jumps from one side to the other of the provided face...
Definition: NSFVUtils.C:59
template std::tuple< bool, Real, Real > isPorosityJumpFace< Real >(const Moose::FunctorBase< Real > &porosity, const FaceInfo &fi, const Moose::StateArg &time)