https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DarcyFluxPressure.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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#include "DarcyFluxPressure.h"
11
12registerMooseObject("ChemicalReactionsApp", DarcyFluxPressure);
13
16{
18 RealVectorValue g(0, 0, 0);
19 params.addParam<RealVectorValue>("gravity", g, "Gravity vector (default is (0, 0, 0))");
21 "Darcy flux: - cond * (Grad P - rho * g) where cond is the hydraulic conductivity, P is "
22 "fluid pressure, rho is fluid density and g is gravity");
23 return params;
24}
25
28 _cond(getMaterialProperty<Real>("conductivity")),
29 _gravity(getParam<RealVectorValue>("gravity")),
30 _density(getDefaultMaterialProperty<Real>("density"))
31{
32}
33
34Real
36{
37 return _grad_test[_i][_qp] * _cond[_qp] * (_grad_u[_qp] - _density[_qp] * _gravity);
38}
39
40Real
42{
43 return _grad_test[_i][_qp] * _cond[_qp] * _grad_phi[_j][_qp];
44}
registerMooseObject("ChemicalReactionsApp", DarcyFluxPressure)
Darcy flux: - cond * (Grad P - rho * g) where cond is the hydraulic conductivity, P is fluid pressure...
DarcyFluxPressure(const InputParameters &parameters)
virtual Real computeQpJacobian() override
const RealVectorValue _gravity
Gravity.
static InputParameters validParams()
virtual Real computeQpResidual() override
const MaterialProperty< Real > & _density
Fluid density.
const MaterialProperty< Real > & _cond
Hydraulic conductivity.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()