https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSVelocityAux.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// Navier-Stokes includes
11#include "NSVelocityAux.h"
12#include "NS.h"
13
15
18{
20 params.addClassDescription("Velocity auxiliary value.");
21 params.addRequiredCoupledVar(NS::density, "Density (conserved form)");
22 params.addRequiredCoupledVar("momentum", "Momentum (conserved form)");
23 params.addParam<UserObjectName>(
24 "fluid_properties", "", "The name of the user object for fluid properties");
25 return params;
26}
27
29 : AuxKernel(parameters), _rho(coupledValue(NS::density)), _momentum(coupledValue("momentum"))
30{
31}
32
33Real
registerMooseObject("NavierStokesApp", NSVelocityAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Velocity auxiliary value.
const VariableValue & _rho
static InputParameters validParams()
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
virtual Real computeValue()
const VariableValue & _momentum
NSVelocityAux(const InputParameters &parameters)
static const std::string density
Definition NS.h:34