https://mooseframework.inl.gov
RichardsExcavFlow.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 "RichardsExcavFlow.h"
11 #include "Function.h"
12 #include "Material.h"
13 
15 
18 {
20  params.addRequiredParam<FunctionName>(
21  "excav_geom_function",
22  "The function describing the excavation geometry (type RichardsExcavGeom)");
23  params.addRequiredParam<UserObjectName>(
24  "richardsVarNames_UO", "The UserObject that holds the list of Richards variable names.");
25  params.addClassDescription("Records total flow INTO an excavation (if quantity is positive then "
26  "flow has occured from rock into excavation void)");
27  return params;
28 }
29 
32 
33  _richards_name_UO(getUserObject<RichardsVarNames>("richardsVarNames_UO")),
34  _pvar(_richards_name_UO.richards_var_num(coupled("variable"))),
35 
36  _flux(getMaterialProperty<std::vector<RealVectorValue>>("flux")),
37 
38  _func(getFunction("excav_geom_function"))
39 {
40 }
41 
42 Real
44 {
45  return -_func.value(_t, _q_point[_qp]) * _normals[_qp] * _flux[_qp][_pvar] * _dt;
46 }
static InputParameters validParams()
virtual Real computeQpIntegral()
Records total mass flow into an excavation defined by a RichardsExcavGeom function.
const MooseArray< Point > & _q_point
registerMooseObject("RichardsApp", RichardsExcavFlow)
This holds maps between pressure_var or pressure_var, sat_var used in RichardsMaterial and kernels...
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
const Function & _func
the RichardsExcavGeom that defines where on the boundary we&#39;ll compute the mass flux ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseArray< Point > & _normals
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
unsigned int _pvar
the richards variable number for which we want the mass flow
RichardsExcavFlow(const InputParameters &parameters)
const MaterialProperty< std::vector< RealVectorValue > > & _flux
mass-flux of fluid (a vector in the multicomponent case)