www.mooseframework.org
Q2PNegativeNodalMassOld.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
18 
19 template <>
20 InputParameters validParams<Q2PNegativeNodalMassOld>();
21 
26 class Q2PNegativeNodalMassOld : public TimeKernel
27 {
28 public:
29  Q2PNegativeNodalMassOld(const InputParameters & parameters);
30 
31 protected:
32  virtual Real computeQpResidual();
33 
35 
37  const VariableValue & _other_var_nodal_old;
38 
40  bool _var_is_pp;
41 
43  const MaterialProperty<Real> & _porosity_old;
44 };
Q2PNegativeNodalMassOld::_var_is_pp
bool _var_is_pp
whether the "other variable" is actually porepressure
Definition: Q2PNegativeNodalMassOld.h:40
Q2PNegativeNodalMassOld
-fluid_mass_old/dt with the fluid mass being lumped to the nodes.
Definition: Q2PNegativeNodalMassOld.h:26
validParams< Q2PNegativeNodalMassOld >
InputParameters validParams< Q2PNegativeNodalMassOld >()
Definition: Q2PNegativeNodalMassOld.C:22
Q2PNegativeNodalMassOld::Q2PNegativeNodalMassOld
Q2PNegativeNodalMassOld(const InputParameters &parameters)
Definition: Q2PNegativeNodalMassOld.C:43
Q2PNegativeNodalMassOld::_density
const RichardsDensity & _density
Definition: Q2PNegativeNodalMassOld.h:34
Q2PNegativeNodalMassOld::computeQpResidual
virtual Real computeQpResidual()
Definition: Q2PNegativeNodalMassOld.C:53
Q2PNegativeNodalMassOld::_porosity_old
const MaterialProperty< Real > & _porosity_old
value of the porosity at the start of the timestep
Definition: Q2PNegativeNodalMassOld.h:43
RichardsDensity
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
Definition: RichardsDensity.h:24
RichardsDensity.h
Q2PNegativeNodalMassOld::_other_var_nodal_old
const VariableValue & _other_var_nodal_old
old value of the other variable (this is porepressure if the Variable is saturation)
Definition: Q2PNegativeNodalMassOld.h:37