www.mooseframework.org
RichardsDensity.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef RICHARDSDENSITY_H
9 #define RICHARDSDENSITY_H
10 
11 #include "GeneralUserObject.h"
12 
13 class RichardsDensity;
14 
15 template <>
16 InputParameters validParams<RichardsDensity>();
17 
23 class RichardsDensity : public GeneralUserObject
24 {
25 public:
26  RichardsDensity(const InputParameters & parameters);
27 
28  void initialize();
29  void execute();
30  void finalize();
31 
37  virtual Real density(Real p) const = 0;
38 
44  virtual Real ddensity(Real p) const = 0;
45 
51  virtual Real d2density(Real p) const = 0;
52 };
53 
54 #endif // RICHARDSDENSITY_H
RichardsDensity(const InputParameters &parameters)
virtual Real density(Real p) const =0
fluid density as a function of porepressure This must be over-ridden in derived classes to provide an...
virtual Real d2density(Real p) const =0
second derivative of fluid density wrt porepressure This must be over-ridden in derived classes to pr...
virtual Real ddensity(Real p) const =0
derivative of fluid density wrt porepressure This must be over-ridden in derived classes to provide a...
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
InputParameters validParams< RichardsDensity >()