www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
RichardsDensityIdeal Class Reference

Fluid density of an ideal gas. More...

#include <RichardsDensityIdeal.h>

Inheritance diagram for RichardsDensityIdeal:
[legend]

Public Member Functions

 RichardsDensityIdeal (const InputParameters &parameters)
 
Real density (Real p) const
 fluid density as a function of porepressure More...
 
Real ddensity (Real) const
 derivative of fluid density wrt porepressure More...
 
Real d2density (Real) const
 second derivative of fluid density wrt porepressure More...
 
void initialize ()
 
void execute ()
 
void finalize ()
 

Protected Attributes

Real _slope
 density = _slope*(p - _p0) More...
 
Real _p0
 density = _slope*(p - _p0) More...
 

Detailed Description

Fluid density of an ideal gas.

Definition at line 21 of file RichardsDensityIdeal.h.

Constructor & Destructor Documentation

RichardsDensityIdeal::RichardsDensityIdeal ( const InputParameters &  parameters)

Definition at line 23 of file RichardsDensityIdeal.C.

24  : RichardsDensity(parameters), _slope(getParam<Real>("slope")), _p0(getParam<Real>("p0"))
25 {
26 }
RichardsDensity(const InputParameters &parameters)
Real _slope
density = _slope*(p - _p0)
Real _p0
density = _slope*(p - _p0)

Member Function Documentation

Real RichardsDensityIdeal::d2density ( Real  ) const
virtual

second derivative of fluid density wrt porepressure

Implements RichardsDensity.

Definition at line 36 of file RichardsDensityIdeal.C.

36 { return 0.0; }
Real RichardsDensityIdeal::ddensity ( Real  ) const
virtual

derivative of fluid density wrt porepressure

Implements RichardsDensity.

Definition at line 34 of file RichardsDensityIdeal.C.

34 { return _slope; }
Real _slope
density = _slope*(p - _p0)
Real RichardsDensityIdeal::density ( Real  p) const
virtual

fluid density as a function of porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 29 of file RichardsDensityIdeal.C.

30 {
31  return _slope * (p - _p0);
32 }
Real _slope
density = _slope*(p - _p0)
Real _p0
density = _slope*(p - _p0)
void RichardsDensity::execute ( )
inherited

Definition at line 32 of file RichardsDensity.C.

33 {
34 }
void RichardsDensity::finalize ( )
inherited

Definition at line 37 of file RichardsDensity.C.

38 {
39 }
void RichardsDensity::initialize ( )
inherited

Definition at line 27 of file RichardsDensity.C.

28 {
29 }

Member Data Documentation

Real RichardsDensityIdeal::_p0
protected

density = _slope*(p - _p0)

Definition at line 47 of file RichardsDensityIdeal.h.

Referenced by density().

Real RichardsDensityIdeal::_slope
protected

density = _slope*(p - _p0)

Definition at line 44 of file RichardsDensityIdeal.h.

Referenced by ddensity(), and density().


The documentation for this class was generated from the following files: