https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSTemperatureTimeDerivative.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 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
32Real
37
38Real
43
44Real
registerMooseObject("NavierStokesApp", INSTemperatureTimeDerivative)
This class computes the time derivative for the incompressible Navier-Stokes momentum equation.
INSTemperatureTimeDerivative(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const MaterialProperty< Real > & _cp
const MaterialProperty< Real > & _rho
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)
unsigned int _qp
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override
static InputParameters validParams()