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

Fluid density assuming constant bulk modulus. More...

#include <RichardsDensityConstBulk.h>

Inheritance diagram for RichardsDensityConstBulk:
[legend]

Public Member Functions

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

Protected Attributes

Real _dens0
 density = _dens0*exp(p/_bulk) More...
 
Real _bulk
 density = _dens0*exp(p/_bulk) More...
 

Detailed Description

Fluid density assuming constant bulk modulus.

Definition at line 21 of file RichardsDensityConstBulk.h.

Constructor & Destructor Documentation

RichardsDensityConstBulk::RichardsDensityConstBulk ( const InputParameters &  parameters)

Definition at line 24 of file RichardsDensityConstBulk.C.

25  : RichardsDensity(parameters), _dens0(getParam<Real>("dens0")), _bulk(getParam<Real>("bulk_mod"))
26 {
27 }
RichardsDensity(const InputParameters &parameters)
Real _dens0
density = _dens0*exp(p/_bulk)
Real _bulk
density = _dens0*exp(p/_bulk)

Member Function Documentation

Real RichardsDensityConstBulk::d2density ( Real  p) const
virtual

second derivative of fluid density wrt porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 42 of file RichardsDensityConstBulk.C.

43 {
44  return density(p) / _bulk / _bulk;
45 }
Real _bulk
density = _dens0*exp(p/_bulk)
Real density(Real p) const
fluid density as a function of porepressure
Real RichardsDensityConstBulk::ddensity ( Real  p) const
virtual

derivative of fluid density wrt porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 36 of file RichardsDensityConstBulk.C.

37 {
38  return density(p) / _bulk;
39 }
Real _bulk
density = _dens0*exp(p/_bulk)
Real density(Real p) const
fluid density as a function of porepressure
Real RichardsDensityConstBulk::density ( Real  p) const
virtual

fluid density as a function of porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 30 of file RichardsDensityConstBulk.C.

Referenced by d2density(), and ddensity().

31 {
32  return _dens0 * std::exp(p / _bulk);
33 }
Real _dens0
density = _dens0*exp(p/_bulk)
Real _bulk
density = _dens0*exp(p/_bulk)
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 RichardsDensityConstBulk::_bulk
protected

density = _dens0*exp(p/_bulk)

Definition at line 49 of file RichardsDensityConstBulk.h.

Referenced by d2density(), ddensity(), and density().

Real RichardsDensityConstBulk::_dens0
protected

density = _dens0*exp(p/_bulk)

Definition at line 46 of file RichardsDensityConstBulk.h.

Referenced by density().


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