https://mooseframework.inl.gov
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 {
31  if (_add_slip_model)
32  mooseError("Slip model and porous medium treatment is not currently supported");
33 }
34 
35 ADReal
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 }
static InputParameters validParams()
const FaceInfo * _face_info
Moose::StateArg determineState() const
registerMooseObject("NavierStokesApp", PINSFVScalarFieldAdvection)
DualNumber< Real, DNDerivativeType, true > ADReal
virtual ADReal computeQpResidual() override
virtual ADReal computeQpResidual() override
static const std::string porosity
Definition: NS.h:104
static InputParameters validParams()
const Moose::Functor< ADReal > & _eps
Local medium porosity as a functor.
PINSFVScalarFieldAdvection(const InputParameters &params)
void mooseError(Args &&... args) const
An advection kernel that implements interpolation schemes specific to Navier-Stokes flow physics and ...
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 ...
bool _add_slip_model
Boolean to determine if slip velocity is available.