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 25 of file ChemicalOutFlowBC.h.

Constructor & Destructor Documentation

◆ ChemicalOutFlowBC()

ChemicalOutFlowBC::ChemicalOutFlowBC ( const InputParameters &  parameters)

Definition at line 23 of file ChemicalOutFlowBC.C.

24  : IntegratedBC(parameters),
25  _diff(getMaterialProperty<Real>("diffusivity")),
26  _porosity(getMaterialProperty<Real>("porosity"))
27 {
28 }
const MaterialProperty< Real > & _diff
Diffusivity.
const MaterialProperty< Real > & _porosity
Porosity.

Member Function Documentation

◆ computeQpJacobian()

Real ChemicalOutFlowBC::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 37 of file ChemicalOutFlowBC.C.

38 {
39  return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_phi[_j][_qp] * _normals[_qp];
40 }
const MaterialProperty< Real > & _diff
Diffusivity.
const MaterialProperty< Real > & _porosity
Porosity.

◆ computeQpResidual()

Real ChemicalOutFlowBC::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 31 of file ChemicalOutFlowBC.C.

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

Member Data Documentation

◆ _diff

const MaterialProperty<Real>& ChemicalOutFlowBC::_diff
private

Diffusivity.

Definition at line 36 of file ChemicalOutFlowBC.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _porosity

const MaterialProperty<Real>& ChemicalOutFlowBC::_porosity
private

Porosity.

Definition at line 38 of file ChemicalOutFlowBC.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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