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 class Q2PNodalMass;
18 
19 template <>
20 InputParameters validParams<Q2PNodalMass>();
21 
25 class Q2PNodalMass : public TimeKernel
26 {
27 public:
28  Q2PNodalMass(const InputParameters & parameters);
29 
30 protected:
31  virtual Real computeQpResidual();
32 
33  virtual Real computeQpJacobian();
34 
35  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
36 
38 
40  const VariableValue & _other_var_nodal;
41 
43  unsigned int _other_var_num;
44 
46  bool _var_is_pp;
47 
49  const MaterialProperty<Real> & _porosity;
50 };
Q2PNodalMass::computeQpJacobian
virtual Real computeQpJacobian()
Definition: Q2PNodalMass.C:74
Q2PNodalMass::_density
const RichardsDensity & _density
Definition: Q2PNodalMass.h:37
Q2PNodalMass::computeQpResidual
virtual Real computeQpResidual()
Definition: Q2PNodalMass.C:54
Q2PNodalMass::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: Q2PNodalMass.C:98
Q2PNodalMass::_other_var_nodal
const VariableValue & _other_var_nodal
the other variable (this is porepressure if the Variable is saturation)
Definition: Q2PNodalMass.h:40
Q2PNodalMass::_other_var_num
unsigned int _other_var_num
variable number of the other variable
Definition: Q2PNodalMass.h:43
Q2PNodalMass::_porosity
const MaterialProperty< Real > & _porosity
current value of the porosity
Definition: Q2PNodalMass.h:49
RichardsDensity
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
Definition: RichardsDensity.h:24
Q2PNodalMass
fluid_mass/dt lumped to the nodes
Definition: Q2PNodalMass.h:25
RichardsDensity.h
Q2PNodalMass::_var_is_pp
bool _var_is_pp
whether the "other variable" is actually porepressure
Definition: Q2PNodalMass.h:46
validParams< Q2PNodalMass >
InputParameters validParams< Q2PNodalMass >()
Definition: Q2PNodalMass.C:22
Q2PNodalMass::Q2PNodalMass
Q2PNodalMass(const InputParameters &parameters)
Definition: Q2PNodalMass.C:43