https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PINSFVRhieChowInterpolatorSegregated.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
13using namespace libMesh;
14
16
19{
21
22 params.addClassDescription("Computes H/A and 1/A together with face velocities for segregated "
23 "porous medium momentum-pressure equations.");
24
25 params.addParam<MooseFunctorName>(NS::porosity, "The porosity functor.");
26
27 return params;
28}
29
31 const InputParameters & params)
33 _eps(getFunctor<ADReal>(NS::porosity)),
34 _epss(libMesh::n_threads(), nullptr)
35{
36 const auto porosity_name = deduceFunctorName(NS::porosity);
37 for (const auto tid : make_range(libMesh::n_threads()))
38 _epss[tid] = &UserObject::_subproblem.getFunctor<ADReal>(porosity_name, tid, name(), true);
39}
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PINSFVRhieChowInterpolatorSegregated)
const std::string name
Definition Setup.h:21
static std::string deduceFunctorName(const std::string &name, const InputParameters &params)
A user object which implements the Rhie Chow interpolation for segregated momentum-pressure systems.
A user object which implements the Rhie Chow interpolation for segregated porous medium momentum-pres...
PINSFVRhieChowInterpolatorSegregated(const InputParameters &params)
std::vector< const Moose::Functor< ADReal > * > _epss
All the thread copies of the problem's porosity functor.
SubProblem & _subproblem
static const std::string porosity
Definition NS.h:108
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
IntRange< T > make_range(T beg, T end)
unsigned int n_threads()