https://mooseframework.inl.gov
VolumeAux.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 "VolumeAux.h"
11 
12 registerMooseObject("MooseApp", VolumeAux);
13 
16 {
18  params.addClassDescription("Auxiliary Kernel that samples volumes.");
19  return params;
20 }
21 
22 VolumeAux::VolumeAux(const InputParameters & parameters) : AuxKernel(parameters)
23 {
25  paramError("variable", "Must be of type CONSTANT MONOMIAL");
26 }
27 
28 Real
30 {
32 }
33 
34 void
36 {
38 }
AuxKernel that samples element volumes.
Definition: VolumeAux.h:17
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Definition: MooseBase.h:435
Real computeValue() override final
Compute and return the value of the aux variable.
Definition: VolumeAux.C:29
const Real & _current_side_volume
Volume of the current side.
Definition: AuxKernel.h:211
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void setDofValue(const OutputData &value, unsigned int index)=0
Degree of freedom value setters.
bool _bnd
true if the kernel is boundary kernel, false if it is interior kernels
Definition: AuxKernel.h:186
CONSTANT
const Real & _current_elem_volume
Volume of the current element.
Definition: AuxKernel.h:209
static InputParameters validParams()
Definition: VolumeAux.C:15
registerMooseObject("MooseApp", VolumeAux)
MONOMIAL
VolumeAux(const InputParameters &parameters)
Definition: VolumeAux.C:22
void compute() override final
Computes the value and stores it in the solution vector.
Definition: VolumeAux.C:35
MooseVariableField< Real > & _var
This is a regular kernel so we cast to a regular MooseVariable.
Definition: AuxKernel.h:174
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseVariableBase * mooseVariableBase() const
Get the variable that this object is using.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
static InputParameters validParams()
Definition: AuxKernel.C:27