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

Pressure boundary condition using coupled variable to apply pressure in a given direction. More...

#include <CoupledPressureBC.h>

Inheritance diagram for CoupledPressureBC:
[legend]

Public Member Functions

 CoupledPressureBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 

Protected Attributes

const unsigned int _component
 Will hold 0, 1, or 2 corresponding to x, y, or z. More...
 
const VariableValue & _pressure
 The values of pressure to be imposed. More...
 

Detailed Description

Pressure boundary condition using coupled variable to apply pressure in a given direction.

Definition at line 23 of file CoupledPressureBC.h.

Constructor & Destructor Documentation

◆ CoupledPressureBC()

CoupledPressureBC::CoupledPressureBC ( const InputParameters &  parameters)

Definition at line 28 of file CoupledPressureBC.C.

29  : IntegratedBC(parameters),
30  _component(getParam<unsigned int>("component")),
31  _pressure(coupledValue("pressure"))
32 {
33 }
const VariableValue & _pressure
The values of pressure to be imposed.
const unsigned int _component
Will hold 0, 1, or 2 corresponding to x, y, or z.

Member Function Documentation

◆ computeQpResidual()

Real CoupledPressureBC::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 36 of file CoupledPressureBC.C.

37 {
38  return _pressure[_qp] * _normals[_qp](_component) * _test[_i][_qp];
39 }
const VariableValue & _pressure
The values of pressure to be imposed.
const unsigned int _component
Will hold 0, 1, or 2 corresponding to x, y, or z.

Member Data Documentation

◆ _component

const unsigned int CoupledPressureBC::_component
protected

Will hold 0, 1, or 2 corresponding to x, y, or z.

Definition at line 32 of file CoupledPressureBC.h.

Referenced by computeQpResidual().

◆ _pressure

const VariableValue& CoupledPressureBC::_pressure
protected

The values of pressure to be imposed.

Definition at line 34 of file CoupledPressureBC.h.

Referenced by computeQpResidual().


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