www.mooseframework.org
INSTemperatureTimeDerivative.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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  params.addParam<MaterialPropertyName>("cp_name", "cp", "specific heat name");
22  return params;
23 }
24 
26  : TimeDerivative(parameters),
27  _rho(getMaterialProperty<Real>("rho_name")),
28  _cp(getMaterialProperty<Real>("cp_name"))
29 {
30 }
31 
32 Real
34 {
36 }
37 
38 Real
40 {
42 }
43 
44 Real
46 {
47  return 0.;
48 }
virtual Real computeQpResidual() override
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
INSTemperatureTimeDerivative(const InputParameters &parameters)
virtual Real computeQpJacobian() override
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho
This class computes the time derivative for the incompressible Navier-Stokes momentum equation...
virtual Real computeQpOffDiagJacobian(unsigned jvar)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
registerMooseObject("NavierStokesApp", INSTemperatureTimeDerivative)
unsigned int _qp