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 "ChemicalOutFlowBC.h" 11 : 12 : registerMooseObject("ChemicalReactionsApp", ChemicalOutFlowBC); 13 : 14 : InputParameters 15 410 : ChemicalOutFlowBC::validParams() 16 : { 17 410 : InputParameters params = IntegratedBC::validParams(); 18 410 : params.addClassDescription("Chemical flux boundary condition"); 19 410 : return params; 20 0 : } 21 : 22 216 : ChemicalOutFlowBC::ChemicalOutFlowBC(const InputParameters & parameters) 23 : : IntegratedBC(parameters), 24 216 : _diff(getMaterialProperty<Real>("diffusivity")), 25 648 : _porosity(getMaterialProperty<Real>("porosity")) 26 : { 27 216 : } 28 : 29 : Real 30 140616 : ChemicalOutFlowBC::computeQpResidual() 31 : { 32 140616 : return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_u[_qp] * _normals[_qp]; 33 : } 34 : 35 : Real 36 93920 : ChemicalOutFlowBC::computeQpJacobian() 37 : { 38 93920 : return -_test[_i][_qp] * _porosity[_qp] * _diff[_qp] * _grad_phi[_j][_qp] * _normals[_qp]; 39 : }