https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
12#include "SubProblem.h"
13#include "MooseMesh.h"
14
16
19{
21 params.addRelationshipManager("GhostEverything",
22 Moose::RelationshipManagerType::GEOMETRIC |
23 Moose::RelationshipManagerType::ALGEBRAIC);
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
36void
38{
39 for (const auto & fi : _subproblem.mesh().allFaceInfo())
40 _rc_uo.getVelocity(Moose::FV::InterpMethod::RhieChow,
41 fi,
43 0,
44 /*subtract_mesh_velocity=*/true);
45}
registerMooseObject("NavierStokesTestApp", GetAllTheRCVelocities)
static InputParameters validParams()
GetAllTheRCVelocities(const InputParameters &parameters)
INSFVRhieChowInterpolator & _rc_uo
static InputParameters validParams()
virtual void execute() override
This user-object gathers 'a' (on-diagonal velocity coefficients) data.
void pullAllNonlocal()
Whether to pull all 'a' coefficient data from the owning process for all nonlocal elements we have ac...
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.
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)
const std::vector< FaceInfo > & allFaceInfo() const
virtual MooseMesh & mesh()=0
SubProblem & _subproblem
StateArg currentState()