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 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<TimeDerivative>();
19  params.addClassDescription("This class computes the time derivative for the incompressible "
20  "Navier-Stokes momentum equation.");
21  params.addParam<MaterialPropertyName>("rho_name", "rho", "density name");
22  params.addParam<MaterialPropertyName>("cp_name", "cp", "specific heat name");
23  return params;
24 }
25 
27  : TimeDerivative(parameters),
28  _rho(getMaterialProperty<Real>("rho_name")),
29  _cp(getMaterialProperty<Real>("cp_name"))
30 {
31 }
32 
33 Real
35 {
36  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpResidual();
37 }
38 
39 Real
41 {
42  return _rho[_qp] * _cp[_qp] * TimeDerivative::computeQpJacobian();
43 }
44 
45 Real
47 {
48  return 0.;
49 }
INSTemperatureTimeDerivative::INSTemperatureTimeDerivative
INSTemperatureTimeDerivative(const InputParameters &parameters)
Definition: INSTemperatureTimeDerivative.C:26
validParams< INSTemperatureTimeDerivative >
InputParameters validParams< INSTemperatureTimeDerivative >()
Definition: INSTemperatureTimeDerivative.C:16
INSTemperatureTimeDerivative
This class computes the time derivative for the incompressible Navier-Stokes momentum equation.
Definition: INSTemperatureTimeDerivative.h:25
INSTemperatureTimeDerivative::computeQpResidual
virtual Real computeQpResidual()
Definition: INSTemperatureTimeDerivative.C:34
registerMooseObject
registerMooseObject("NavierStokesApp", INSTemperatureTimeDerivative)
INSTemperatureTimeDerivative.h
INSTemperatureTimeDerivative::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned jvar)
Definition: INSTemperatureTimeDerivative.C:46
INSTemperatureTimeDerivative::computeQpJacobian
virtual Real computeQpJacobian()
Definition: INSTemperatureTimeDerivative.C:40
INSTemperatureTimeDerivative::_rho
const MaterialProperty< Real > & _rho
Definition: INSTemperatureTimeDerivative.h:38
INSTemperatureTimeDerivative::_cp
const MaterialProperty< Real > & _cp
Definition: INSTemperatureTimeDerivative.h:39