www.mooseframework.org
RichardsDensityIdeal.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 "RichardsDensity.h"
13 
15 
16 template <>
17 InputParameters validParams<RichardsDensityIdeal>();
18 
23 {
24 public:
25  RichardsDensityIdeal(const InputParameters & parameters);
26 
31  Real density(Real p) const;
32 
36  Real ddensity(Real /*p*/) const;
37 
41  Real d2density(Real /*p*/) const;
42 
43 protected:
45  Real _slope;
46 
48  Real _p0;
49 };
50 
RichardsDensityIdeal::_p0
Real _p0
density = _slope*(p - _p0)
Definition: RichardsDensityIdeal.h:48
RichardsDensityIdeal
Fluid density of an ideal gas.
Definition: RichardsDensityIdeal.h:22
RichardsDensityIdeal::d2density
Real d2density(Real) const
second derivative of fluid density wrt porepressure
Definition: RichardsDensityIdeal.C:40
validParams< RichardsDensityIdeal >
InputParameters validParams< RichardsDensityIdeal >()
Definition: RichardsDensityIdeal.C:18
RichardsDensityIdeal::RichardsDensityIdeal
RichardsDensityIdeal(const InputParameters &parameters)
Definition: RichardsDensityIdeal.C:27
RichardsDensityIdeal::_slope
Real _slope
density = _slope*(p - _p0)
Definition: RichardsDensityIdeal.h:45
RichardsDensityIdeal::ddensity
Real ddensity(Real) const
derivative of fluid density wrt porepressure
Definition: RichardsDensityIdeal.C:38
RichardsDensity
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
Definition: RichardsDensity.h:24
RichardsDensity.h
RichardsDensityIdeal::density
Real density(Real p) const
fluid density as a function of porepressure
Definition: RichardsDensityIdeal.C:33