https://mooseframework.inl.gov
GetAllTheRCVelocities.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 
10 #include "GetAllTheRCVelocities.h"
12 #include "SubProblem.h"
13 #include "MooseMesh.h"
14 
15 registerMooseObject("NavierStokesTestApp", GetAllTheRCVelocities);
16 
19 {
21  params.addRelationshipManager("GhostEverything",
24  params.addParam<UserObjectName>("rc_uo", "The Rhie-Chow user object");
25  return params;
26 }
27 
29  : GeneralUserObject(parameters),
30  _rc_uo(
31  const_cast<INSFVRhieChowInterpolator &>(getUserObject<INSFVRhieChowInterpolator>("rc_uo")))
32 {
34 }
35 
36 void
38 {
39  for (const auto & fi : _subproblem.mesh().allFaceInfo())
41  fi,
43  0,
44  /*subtract_mesh_velocity=*/true);
45 }
virtual MooseMesh & mesh()=0
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addRelationshipManager(const std::string &name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback input_parameter_callback=nullptr)
SubProblem & _subproblem
virtual VectorValue< ADReal > getVelocity(const Moose::FV::InterpMethod m, const FaceInfo &fi, const Moose::StateArg &time, const THREAD_ID tid, bool subtract_mesh_velocity) const override
Retrieve a face velocity.
const std::vector< FaceInfo > & allFaceInfo() const
INSFVRhieChowInterpolator & _rc_uo
virtual void execute() override
static InputParameters validParams()
GetAllTheRCVelocities(const InputParameters &parameters)
This user-object gathers &#39;a&#39; (on-diagonal velocity coefficients) data.
registerMooseObject("NavierStokesTestApp", GetAllTheRCVelocities)
void pullAllNonlocal()
Whether to pull all &#39;a&#39; coefficient data from the owning process for all nonlocal elements we have ac...
StateArg currentState()