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

Constructor & Destructor Documentation

◆ RichardsDensityIdeal()

RichardsDensityIdeal::RichardsDensityIdeal ( const InputParameters &  parameters)

Definition at line 27 of file RichardsDensityIdeal.C.

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

Member Function Documentation

◆ d2density()

Real RichardsDensityIdeal::d2density ( Real  ) const
virtual

second derivative of fluid density wrt porepressure

Implements RichardsDensity.

Definition at line 40 of file RichardsDensityIdeal.C.

40 { return 0.0; }

◆ ddensity()

Real RichardsDensityIdeal::ddensity ( Real  ) const
virtual

derivative of fluid density wrt porepressure

Implements RichardsDensity.

Definition at line 38 of file RichardsDensityIdeal.C.

38 { return _slope; }
Real _slope
density = _slope*(p - _p0)

◆ density()

Real RichardsDensityIdeal::density ( Real  p) const
virtual

fluid density as a function of porepressure

Parameters
pporepressure

Implements RichardsDensity.

Definition at line 33 of file RichardsDensityIdeal.C.

34 {
35  return _slope * (p - _p0);
36 }
Real _slope
density = _slope*(p - _p0)
Real _p0
density = _slope*(p - _p0)

◆ 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

◆ _p0

Real RichardsDensityIdeal::_p0
protected

density = _slope*(p - _p0)

Definition at line 49 of file RichardsDensityIdeal.h.

Referenced by density().

◆ _slope

Real RichardsDensityIdeal::_slope
protected

density = _slope*(p - _p0)

Definition at line 46 of file RichardsDensityIdeal.h.

Referenced by ddensity(), and density().


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