Line data Source code
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 : 10 : #include "NSMomentumPressureWeakStagnationBC.h" 11 : 12 : registerMooseObject("NavierStokesApp", NSMomentumPressureWeakStagnationBC); 13 : 14 : InputParameters 15 82 : NSMomentumPressureWeakStagnationBC::validParams() 16 : { 17 82 : InputParameters params = NSWeakStagnationBaseBC::validParams(); 18 82 : params.addClassDescription("This class implements the pressure term of the momentum equation " 19 : "boundary integral for use in weak stagnation boundary conditions."); 20 164 : params.addRequiredParam<unsigned int>( 21 : "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to"); 22 82 : return params; 23 0 : } 24 : 25 44 : NSMomentumPressureWeakStagnationBC::NSMomentumPressureWeakStagnationBC( 26 44 : const InputParameters & parameters) 27 88 : : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned int>("component")) 28 : { 29 44 : } 30 : 31 : Real 32 228480 : NSMomentumPressureWeakStagnationBC::computeQpResidual() 33 : { 34 : // Compute stagnation values 35 228480 : Real T_s = 0.0, p_s = 0.0, rho_s = 0.0; 36 228480 : staticValues(T_s, p_s, rho_s); 37 : 38 : // (p_s * n_k) * phi_i 39 228480 : return (p_s * _normals[_qp](_component)) * _test[_i][_qp]; 40 : } 41 : 42 : Real 43 139776 : NSMomentumPressureWeakStagnationBC::computeQpJacobian() 44 : { 45 : // TODO 46 139776 : return 0.0; 47 : } 48 : 49 : Real 50 419328 : NSMomentumPressureWeakStagnationBC::computeQpOffDiagJacobian(unsigned /*jvar*/) 51 : { 52 : // TODO 53 419328 : return 0.0; 54 : }