www.mooseframework.org
ChemicalOutFlowBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "ChemicalOutFlowBC.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<IntegratedBC>();
14  params.addClassDescription("Chemical flux boundary condition");
15  return params;
16 }
17 
18 ChemicalOutFlowBC::ChemicalOutFlowBC(const InputParameters & parameters)
19  : IntegratedBC(parameters),
20  _diff(getMaterialProperty<Real>("diffusivity")),
21  _porosity(getMaterialProperty<Real>("porosity"))
22 {
23 }
24 
25 Real
27 {
28  return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_u[_qp] * _normals[_qp];
29 }
30 
31 Real
33 {
34  return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_phi[_j][_qp] * _normals[_qp];
35 }
const MaterialProperty< Real > & _diff
Diffusivity.
const MaterialProperty< Real > & _porosity
Porosity.
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
ChemicalOutFlowBC(const InputParameters &parameters)
InputParameters validParams< ChemicalOutFlowBC >()