www.mooseframework.org
INSMomentumLaplaceForm.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 
10 #include "INSMomentumLaplaceForm.h"
11 
13 
16 {
18  params.addClassDescription("This class computes momentum equation residual and Jacobian viscous "
19  "contributions for the 'Laplacian' form of the governing equations.");
20  return params;
21 }
22 
24  : INSMomentumBase(parameters)
25 {
26 }
27 
28 Real
30 {
31  // Simplified version: mu * Laplacian(u_component)
32  return _mu[_qp] * (_grad_u[_qp] * _grad_test[_i][_qp]);
33 }
34 
35 Real
37 {
38  // Viscous part, Laplacian version
39  return _mu[_qp] * (_grad_phi[_j][_qp] * _grad_test[_i][_qp]);
40 }
41 
42 Real
44 {
45  return 0.;
46 }
This class computes the momentum equation residual and Jacobian contributions for the incompressible ...
const VariableGradient & _grad_u
registerMooseObject("NavierStokesApp", INSMomentumLaplaceForm)
const VariablePhiGradient & _grad_phi
const MaterialProperty< Real > & _mu
Definition: INSBase.h:133
virtual Real computeQpJacobianViscousPart() override
unsigned int _i
This class computes momentum equation residual and Jacobian viscous contributions for the "Laplacian"...
unsigned int _j
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableTestGradient & _grad_test
virtual Real computeQpOffDiagJacobianViscousPart(unsigned jvar) override
void addClassDescription(const std::string &doc_string)
INSMomentumLaplaceForm(const InputParameters &parameters)
virtual Real computeQpResidualViscousPart() override
static InputParameters validParams()
static InputParameters validParams()
unsigned int _qp