www.mooseframework.org
Q2PNodalMass.h
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 #pragma once
11 
12 #include "TimeKernel.h"
13 #include "Material.h"
14 #include "RichardsDensity.h"
15 
16 // Forward Declarations
17 
21 class Q2PNodalMass : public TimeKernel
22 {
23 public:
25 
27 
28 protected:
29  virtual Real computeQpResidual();
30 
31  virtual Real computeQpJacobian();
32 
33  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
34 
36 
39 
41  unsigned int _other_var_num;
42 
44  bool _var_is_pp;
45 
48 };
unsigned int _other_var_num
variable number of the other variable
Definition: Q2PNodalMass.h:41
const RichardsDensity & _density
Definition: Q2PNodalMass.h:35
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: Q2PNodalMass.C:97
Q2PNodalMass(const InputParameters &parameters)
Definition: Q2PNodalMass.C:42
const VariableValue & _other_var_nodal
the other variable (this is porepressure if the Variable is saturation)
Definition: Q2PNodalMass.h:38
bool _var_is_pp
whether the "other variable" is actually porepressure
Definition: Q2PNodalMass.h:44
const MaterialProperty< Real > & _porosity
current value of the porosity
Definition: Q2PNodalMass.h:47
virtual Real computeQpResidual()
Definition: Q2PNodalMass.C:53
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
fluid_mass/dt lumped to the nodes
Definition: Q2PNodalMass.h:21
const InputParameters & parameters() const
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
virtual Real computeQpJacobian()
Definition: Q2PNodalMass.C:73
static InputParameters validParams()
Definition: Q2PNodalMass.C:21