11 #include "MooseMesh.h"
19 InputParameters params = validParams<IntegratedBC>();
20 params.addClassDescription(
"Boundary conditions for outflow/outflow of advected quantities:"
21 "\n phi * velocity * normal, where phi is the advected quantitiy");
22 params.addRequiredCoupledVar(
"velocity_vector",
23 "The components of the velocity vector up to problem dimension");
28 : IntegratedBC(parameters),
29 _dim(_mesh.dimension()),
30 _coupled_components(coupledComponents(
"velocity_vector"))
35 "Number of components of velocity_vector must be at least equal to the mesh dimension");
37 paramError(
"velocity_vector",
38 "You cannot supply more than 3 components for the velocity vector");
42 _velocity[j] = &coupledValue(
"velocity_vector", j);
51 if (vel * _normals[_qp] > 0)
52 return _test[_i][_qp] * _u[_qp] * vel * _normals[_qp];
62 if (vel * _normals[_qp] > 0)
63 return _test[_i][_qp] * _phi[_j][_qp] * vel * _normals[_qp];