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 "MaterialRealDenseMatrixAux.h" 11 : 12 : registerMooseObject("MooseApp", MaterialRealDenseMatrixAux); 13 : 14 : InputParameters 15 14333 : MaterialRealDenseMatrixAux::validParams() 16 : { 17 14333 : InputParameters params = MaterialAuxBase<>::validParams(); 18 14333 : params.addClassDescription( 19 : "Populate an auxiliary variable with an entry from a dense matrix material property."); 20 14333 : params.addParam<unsigned int>("row", 0, "The row component to consider for this kernel"); 21 14333 : params.addParam<unsigned int>("column", 0, "The column component to consider for this kernel"); 22 14333 : return params; 23 0 : } 24 : 25 36 : MaterialRealDenseMatrixAux::MaterialRealDenseMatrixAux(const InputParameters & parameters) 26 : : MaterialAuxBase<DenseMatrix<Real>>(parameters), 27 36 : _row(getParam<unsigned int>("row")), 28 72 : _col(getParam<unsigned int>("column")) 29 : { 30 36 : } 31 : 32 : Real 33 256 : MaterialRealDenseMatrixAux::getRealValue() 34 : { 35 256 : return _full_value(_row, _col); 36 : }