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