https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalVoidVolumeAux.C
Go to the documentation of this file.
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
13
16{
19 "Extracts information from the NodalVoidVolume UserObject and records it in the AuxVariable");
20 params.addRequiredParam<UserObjectName>("nodal_void_volume_uo",
21 "The name of the NodalVoidVolume UserObject.");
22 return params;
23}
24
26 : AuxKernel(parameters), _nvv(getUserObject<NodalVoidVolume>("nodal_void_volume_uo"))
27{
28 if (!_var.isNodal())
29 mooseError("NodalVoidVolumeAux: variable must be nodal (eg, linear Lagrange)");
30}
31
32Real
registerMooseObject("GeochemistryApp", NodalVoidVolumeAux)
const Node *const & _current_node
MooseVariableField< ComputeValueType > & _var
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseError(Args &&... args) const
virtual bool isNodal() const
AuxKernel to extract information from a NodalVoidVolume UserObject to record into an AuxVariable.
NodalVoidVolumeAux(const InputParameters &parameters)
const NodalVoidVolume & _nvv
virtual Real computeValue() override
static InputParameters validParams()
Computes the void volume associated with each node.
Real getNodalVoidVolume(const Node *node) const