www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ChemicalOutFlowBC Class Reference

Implements a simple constant VectorNeumann BC where grad(u)=value on the boundary. More...

#include <ChemicalOutFlowBC.h>

Inheritance diagram for ChemicalOutFlowBC:
[legend]

Public Member Functions

 ChemicalOutFlowBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 

Private Attributes

const MaterialProperty< Real > & _diff
 Diffusivity. More...
 
const MaterialProperty< Real > & _porosity
 Porosity. More...
 

Detailed Description

Implements a simple constant VectorNeumann BC where grad(u)=value on the boundary.

Uses the term produced from integrating the diffusion operator by parts.

Definition at line 22 of file ChemicalOutFlowBC.h.

Constructor & Destructor Documentation

ChemicalOutFlowBC::ChemicalOutFlowBC ( const InputParameters &  parameters)

Definition at line 18 of file ChemicalOutFlowBC.C.

19  : IntegratedBC(parameters),
20  _diff(getMaterialProperty<Real>("diffusivity")),
21  _porosity(getMaterialProperty<Real>("porosity"))
22 {
23 }
const MaterialProperty< Real > & _diff
Diffusivity.
const MaterialProperty< Real > & _porosity
Porosity.

Member Function Documentation

Real ChemicalOutFlowBC::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 32 of file ChemicalOutFlowBC.C.

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.
Real ChemicalOutFlowBC::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 26 of file ChemicalOutFlowBC.C.

27 {
28  return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_u[_qp] * _normals[_qp];
29 }
const MaterialProperty< Real > & _diff
Diffusivity.
const MaterialProperty< Real > & _porosity
Porosity.

Member Data Documentation

const MaterialProperty<Real>& ChemicalOutFlowBC::_diff
private

Diffusivity.

Definition at line 33 of file ChemicalOutFlowBC.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>& ChemicalOutFlowBC::_porosity
private

Porosity.

Definition at line 35 of file ChemicalOutFlowBC.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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