www.mooseframework.org
INSADMass.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 "INSADMass.h"
11 
12 registerMooseObject("NavierStokesApp", INSADMass);
13 
16 {
18  params.addClassDescription("This class computes the mass equation residual and Jacobian "
19  "contributions (the latter using automatic differentiation) for the "
20  "incompressible Navier-Stokes "
21  "equations.");
22  return params;
23 }
24 
26  : ADKernelValue(parameters),
27  _mass_strong_residual(getADMaterialProperty<Real>("mass_strong_residual"))
28 {
29 }
30 
31 ADReal
33 {
34  return _mass_strong_residual[_qp];
35 }
const ADMaterialProperty< Real > & _mass_strong_residual
The strong residual of the mass equation, computed using INSADMaterial.
Definition: INSADMass.h:30
static InputParameters validParams()
This class computes the mass equation residual and Jacobian contributions (the latter using automatic...
Definition: INSADMass.h:19
INSADMass(const InputParameters &parameters)
Definition: INSADMass.C:25
registerMooseObject("NavierStokesApp", INSADMass)
DualReal ADReal
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
Definition: INSADMass.C:15
void addClassDescription(const std::string &doc_string)
ADReal precomputeQpResidual() override
Definition: INSADMass.C:32
unsigned int _qp