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 23 of file RichardsDensityConstBulk.h.

Constructor & Destructor Documentation

◆ RichardsDensityConstBulk()

RichardsDensityConstBulk::RichardsDensityConstBulk ( const InputParameters &  parameters)

Definition at line 28 of file RichardsDensityConstBulk.C.

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

Member Function Documentation

◆ d2density()

Real RichardsDensityConstBulk::d2density ( Real  p) const
virtual

second derivative of fluid density wrt porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 46 of file RichardsDensityConstBulk.C.

47 {
48  return density(p) / _bulk / _bulk;
49 }
Real density(Real p) const
fluid density as a function of porepressure
Real _bulk
density = _dens0*exp(p/_bulk)

◆ ddensity()

Real RichardsDensityConstBulk::ddensity ( Real  p) const
virtual

derivative of fluid density wrt porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 40 of file RichardsDensityConstBulk.C.

41 {
42  return density(p) / _bulk;
43 }
Real density(Real p) const
fluid density as a function of porepressure
Real _bulk
density = _dens0*exp(p/_bulk)

◆ density()

Real RichardsDensityConstBulk::density ( Real  p) const
virtual

fluid density as a function of porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 34 of file RichardsDensityConstBulk.C.

Referenced by d2density(), and ddensity().

35 {
36  return _dens0 * std::exp(p / _bulk);
37 }
Real _dens0
density = _dens0*exp(p/_bulk)
Real _bulk
density = _dens0*exp(p/_bulk)

◆ execute()

void RichardsDensity::execute ( )
inherited

Definition at line 34 of file RichardsDensity.C.

35 {
36 }

◆ finalize()

void RichardsDensity::finalize ( )
inherited

Definition at line 39 of file RichardsDensity.C.

40 {
41 }

◆ initialize()

void RichardsDensity::initialize ( )
inherited

Definition at line 29 of file RichardsDensity.C.

30 {
31 }

Member Data Documentation

◆ _bulk

Real RichardsDensityConstBulk::_bulk
protected

density = _dens0*exp(p/_bulk)

Definition at line 51 of file RichardsDensityConstBulk.h.

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

◆ _dens0

Real RichardsDensityConstBulk::_dens0
protected

density = _dens0*exp(p/_bulk)

Definition at line 48 of file RichardsDensityConstBulk.h.

Referenced by density().


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