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
14
17{
19
20 params.addClassDescription("Computes H/A and 1/A together with face velocities for segregated "
21 "porous medium momentum-pressure equations.");
22
23 params.addParam<MooseFunctorName>(NS::porosity, "The porosity functor.");
24
25 return params;
26}
27
29 const InputParameters & params)
31 _eps(getFunctor<ADReal>(NS::porosity)),
32 _epss(libMesh::n_threads(), nullptr)
33{
34 const auto porosity_name = deduceFunctorName(NS::porosity);
35 for (const auto tid : make_range(libMesh::n_threads()))
36 _epss[tid] = &UserObject::_subproblem.getFunctor<ADReal>(porosity_name, tid, name(), true);
37}
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...
unsigned int n_threads()