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