https://mooseframework.inl.gov
Loading...
Searching...
No Matches
UpwindLimiter.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 "Limiter.h"
13#include "MathFVUtils.h"
14
15namespace Moose
16{
17namespace FV
18{
23template <typename T>
24class UpwindLimiter : public Limiter<T>
25{
26public:
27 T limit(const T &,
28 const T &,
29 const VectorValue<T> *,
30 const VectorValue<T> *,
31 const RealVectorValue &,
32 const Real &,
33 const Real &,
34 const FaceInfo *,
35 const bool &) const override final
36 {
37 return 0;
38 }
39 bool constant() const override final { return true; }
40 InterpMethod interpMethod() const override final { return InterpMethod::Upwind; }
41
42 UpwindLimiter() = default;
43};
44}
45}
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition FaceInfo.h:38
Base class for defining slope limiters for finite volume or potentially reconstructed Discontinuous-G...
Definition Limiter.h:63
Implements a limiter which reproduces the upwind scheme, defined by $\beta(r_f) = 0$.
T limit(const T &, const T &, const VectorValue< T > *, const VectorValue< T > *, const RealVectorValue &, const Real &, const Real &, const FaceInfo *, const bool &) const override final
bool constant() const override final
InterpMethod interpMethod() const override final
InterpMethod
This codifies a set of available ways to interpolate with elem+neighbor solution information to calcu...
Definition MathFVUtils.h:39
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...