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 "TagVectorArrayVariableValueAux.h" 11 : 12 : registerMooseObject("MooseApp", TagVectorArrayVariableValueAux); 13 : 14 : InputParameters 15 14298 : TagVectorArrayVariableValueAux::validParams() 16 : { 17 14298 : InputParameters params = TagAuxBase<ArrayAuxKernel>::validParams(); 18 : 19 14298 : params.addRequiredParam<TagName>("vector_tag", "Tag Name this Aux works on"); 20 14298 : params.addClassDescription("Couple a tagged vector, and return its array value."); 21 14298 : return params; 22 0 : } 23 : 24 21 : TagVectorArrayVariableValueAux::TagVectorArrayVariableValueAux(const InputParameters & parameters) 25 21 : : TagAuxBase<ArrayAuxKernel>(parameters), _v(coupledVectorTagArrayValue("v", "vector_tag")) 26 : { 27 21 : checkCoupledVariable(getArrayVar("v", 0), &_var); 28 13 : } 29 : 30 : RealEigenVector 31 200 : TagVectorArrayVariableValueAux::computeValue() 32 : { 33 200 : return _v[_qp]; 34 : }