www.mooseframework.org
ElementLpNormAux.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef ELEMENTLPNORMAUX_H
16 #define ELEMENTLPNORMAUX_H
17 
18 // MOOSE includes
19 #include "AuxKernel.h"
20 
21 // Forward declarations
22 class ElementLpNormAux;
23 
24 template <>
26 
32 {
33 public:
40 
45  virtual void compute() override;
46 
47 protected:
52  virtual Real computeValue() override;
53 
54  // The exponent used in the norm
55  Real _p;
56 
59 };
60 
61 #endif // ELEMENTLPNORMAUX_H
Compute an elemental field variable (single value per element) equal to the Lp-norm of a coupled Vari...
InputParameters validParams< ElementLpNormAux >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableValue & _coupled_var
A reference to the variable to compute the norm of.
virtual void compute() override
Override the base class functionality to compute the element integral withou scaling by element volum...
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:51
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
ElementLpNormAux(const InputParameters &parameters)
Class constructor.
virtual Real computeValue() override
Called by compute() to get the value of the integrand at the current qp.