www.mooseframework.org
RichardsDensityAux.C
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 // This post processor returns the density of a region.
11 //
12 #include "RichardsDensityAux.h"
13 
15 
18 {
20  params.addRequiredCoupledVar("pressure_var", "The variable that represents the pressure");
21  params.addRequiredParam<UserObjectName>("density_UO",
22  "Name of user object that defines the density.");
23  params.addClassDescription("auxillary variable which is fluid density");
24  return params;
25 }
26 
28  : AuxKernel(parameters),
29  _pressure_var(coupledValue("pressure_var")),
30  _density_UO(getUserObject<RichardsDensity>("density_UO"))
31 {
32 }
33 
34 Real
36 {
38 }
RichardsDensityAux(const InputParameters &parameters)
const RichardsDensity & _density_UO
userobject that defines density as a fcn of porepressure
void addRequiredParam(const std::string &name, const std::string &doc_string)
virtual Real density(Real p) const =0
fluid density as a function of porepressure This must be over-ridden in derived classes to provide an...
const VariableValue & _pressure_var
porepressure
registerMooseObject("RichardsApp", RichardsDensityAux)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
virtual Real computeValue()
Fluid density as a function of porepressure.