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 "NodalVoidVolumeAux.h" 11 : 12 : registerMooseObject("GeochemistryApp", NodalVoidVolumeAux); 13 : 14 : InputParameters 15 88 : NodalVoidVolumeAux::validParams() 16 : { 17 88 : InputParameters params = AuxKernel::validParams(); 18 88 : params.addClassDescription( 19 : "Extracts information from the NodalVoidVolume UserObject and records it in the AuxVariable"); 20 176 : params.addRequiredParam<UserObjectName>("nodal_void_volume_uo", 21 : "The name of the NodalVoidVolume UserObject."); 22 88 : return params; 23 0 : } 24 : 25 60 : NodalVoidVolumeAux::NodalVoidVolumeAux(const InputParameters & parameters) 26 60 : : AuxKernel(parameters), _nvv(getUserObject<NodalVoidVolume>("nodal_void_volume_uo")) 27 : { 28 60 : if (!_var.isNodal()) 29 2 : mooseError("NodalVoidVolumeAux: variable must be nodal (eg, linear Lagrange)"); 30 58 : } 31 : 32 : Real 33 7326 : NodalVoidVolumeAux::computeValue() 34 : { 35 7326 : return _nvv.getNodalVoidVolume(_current_node); 36 : }