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

Mass convective flux: \(\rho \vec u \cdot \nabla v\). More...

#include <MassConvectiveFlux.h>

Inheritance diagram for MassConvectiveFlux:
[legend]

Public Member Functions

 MassConvectiveFlux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

const VariableValue & _vel_x
 
const VariableValue & _vel_y
 
const VariableValue & _vel_z
 

Detailed Description

Mass convective flux: \(\rho \vec u \cdot \nabla v\).

Definition at line 24 of file MassConvectiveFlux.h.

Constructor & Destructor Documentation

◆ MassConvectiveFlux()

MassConvectiveFlux::MassConvectiveFlux ( const InputParameters &  parameters)

Definition at line 25 of file MassConvectiveFlux.C.

26  : Kernel(parameters),
27  _vel_x(coupledValue("vel_x")),
28  _vel_y(isCoupled("vel_y") ? coupledValue("vel_y") : _zero),
29  _vel_z(isCoupled("vel_z") ? coupledValue("vel_z") : _zero)
30 {
31 }
const VariableValue & _vel_y
const VariableValue & _vel_x
const VariableValue & _vel_z

Member Function Documentation

◆ computeQpJacobian()

Real MassConvectiveFlux::computeQpJacobian ( )
protectedvirtual

Definition at line 41 of file MassConvectiveFlux.C.

42 {
43  return 0.;
44 }

◆ computeQpResidual()

Real MassConvectiveFlux::computeQpResidual ( )
protectedvirtual

Definition at line 34 of file MassConvectiveFlux.C.

35 {
36  RealVectorValue vel_vec(_vel_x[_qp], _vel_y[_qp], _vel_z[_qp]);
37  return -_u[_qp] * vel_vec * _grad_test[_i][_qp];
38 }
const VariableValue & _vel_y
const VariableValue & _vel_x
const VariableValue & _vel_z

Member Data Documentation

◆ _vel_x

const VariableValue& MassConvectiveFlux::_vel_x
protected

Definition at line 34 of file MassConvectiveFlux.h.

Referenced by computeQpResidual().

◆ _vel_y

const VariableValue& MassConvectiveFlux::_vel_y
protected

Definition at line 35 of file MassConvectiveFlux.h.

Referenced by computeQpResidual().

◆ _vel_z

const VariableValue& MassConvectiveFlux::_vel_z
protected

Definition at line 36 of file MassConvectiveFlux.h.

Referenced by computeQpResidual().


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