https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSMomentumNoBCBCLaplaceForm.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11#include "MooseMesh.h"
12
14
17{
19
20 params.addClassDescription("This class implements the 'No BC' boundary condition based on the "
21 "'Laplace' form of the viscous stress tensor.");
22 return params;
23}
24
29
30Real
32{
33 // -mu * (grad(u).n) * test
34 Real viscous_part = -_mu[_qp] * (_grad_u[_qp] * _normals[_qp]) * _test[_i][_qp];
35
36 // pIn * test
37 Real pressure_part = 0.;
39 pressure_part = _p[_qp] * _normals[_qp](_component) * _test[_i][_qp];
40
41 return viscous_part + pressure_part;
42}
43
44Real
49
50Real
52{
54 return _phi[_j][_qp] * _normals[_qp](_component) * _test[_i][_qp];
55
56 else
57 return 0.;
58}
registerMooseObject("NavierStokesApp", INSMomentumNoBCBCLaplaceForm)
Base class for the "No BC" boundary condition.
const VariableValue & _p
static InputParameters validParams()
const MaterialProperty< Real > & _mu
This class implements the "No BC" boundary condition based on the "Laplace" form of the viscous stres...
INSMomentumNoBCBCLaplaceForm(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned jvar)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
unsigned int _j
const VariablePhiGradient & _grad_phi
const VariableGradient & _grad_u
const VariablePhiValue & _phi
const MooseArray< Point > & _normals
const VariableTestValue & _test