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