https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PINSFVScalarFieldAdvection.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#include "NS.h"
12
14
17{
19 params.addClassDescription(
20 "Advects an arbitrary quantity, the associated nonlinear 'variable' in porous medium.");
21 params.addRequiredParam<MooseFunctorName>(NS::porosity,
22 "The name of the functor giving the local porosity");
23
24 return params;
25}
26
28 : INSFVScalarFieldAdvection(params), _eps(getFunctor<ADReal>(NS::porosity))
29
30{
32 mooseError("Slip model and porous medium treatment is not currently supported");
33}
34
37{
38 const auto state = determineState();
39 // Note that we do not use the advected quantity interpolation because we expect to use this
40 // with a functor material that does not support upwinding
41 const auto eps_face = _eps(makeCDFace(*_face_info, false), state);
42
44}
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PINSFVScalarFieldAdvection)
const FaceInfo * _face_info
Moose::FaceArg makeCDFace(const FaceInfo &fi, const bool correct_skewness=false) const
An advection kernel that implements interpolation schemes specific to Navier-Stokes flow physics and ...
virtual ADReal computeQpResidual() override
bool _add_slip_model
Boolean to determine if slip velocity is available.
static InputParameters validParams()
void mooseError(Args &&... args) const
An advection kernel that implements interpolation schemes specific to Navier-Stokes flow physics and ...
virtual ADReal computeQpResidual() override
const Moose::Functor< ADReal > & _eps
Local medium porosity as a functor.
PINSFVScalarFieldAdvection(const InputParameters &params)
static InputParameters validParams()
Moose::StateArg determineState() const
static const std::string porosity
Definition NS.h:108