www.mooseframework.org
INSMomentumLaplaceForm.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<INSMomentumBase>();
14  params.addClassDescription("This class computes momentum equation residual and Jacobian viscous "
15  "contributions for the 'Laplacian' form of the governing equations.");
16  return params;
17 }
18 
19 INSMomentumLaplaceForm::INSMomentumLaplaceForm(const InputParameters & parameters)
20  : INSMomentumBase(parameters)
21 {
22 }
23 
24 Real
26 {
27  // Simplified version: mu * Laplacian(u_component)
28  return _mu[_qp] * (_grad_u[_qp] * _grad_test[_i][_qp]);
29 }
30 
31 Real
33 {
34  // Viscous part, Laplacian version
35  return _mu[_qp] * (_grad_phi[_j][_qp] * _grad_test[_i][_qp]);
36 }
37 
38 Real
40 {
41  return 0.;
42 }
This class computes the momentum equation residual and Jacobian contributions for the incompressible ...
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
virtual Real computeQpJacobianViscousPart() override
InputParameters validParams< INSMomentumLaplaceForm >()
virtual Real computeQpOffDiagJacobianViscousPart(unsigned jvar) override
INSMomentumLaplaceForm(const InputParameters &parameters)
virtual Real computeQpResidualViscousPart() override
InputParameters validParams< INSMomentumBase >()