https://mooseframework.inl.gov
INSMomentumTimeDerivative.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 
13 
16 {
18  params.addClassDescription("This class computes the time derivative for the incompressible "
19  "Navier-Stokes momentum equation.");
20  params.addParam<MaterialPropertyName>("rho_name", "rho", "density name");
21  return params;
22 }
23 
25  : TimeDerivative(parameters), _rho(getMaterialProperty<Real>("rho_name"))
26 {
27 }
28 
29 Real
31 {
33 }
34 
35 Real
37 {
39 }
40 
41 Real
43 {
44  return 0.;
45 }
This class computes the time derivative for the incompressible Navier-Stokes momentum equation...
virtual Real computeQpResidual() override
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseObject("NavierStokesApp", INSMomentumTimeDerivative)
static InputParameters validParams()
static InputParameters validParams()
INSMomentumTimeDerivative(const InputParameters &parameters)
virtual Real computeQpJacobian() override
virtual Real computeQpOffDiagJacobian(unsigned jvar)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const MaterialProperty< Real > & _rho
unsigned int _qp