https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ElementLpNormAux.h
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#pragma once
11
12// MOOSE includes
13#include "AuxKernel.h"
14
20{
21public:
23
30
35 virtual void compute() override;
36
37protected:
42 virtual Real computeValue() override;
43
44 // The exponent used in the norm
45 Real _p;
46
49};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
Compute an elemental field variable (single value per element) equal to the Lp-norm of a coupled Vari...
static InputParameters validParams()
virtual void compute() override
Override the base class functionality to compute the element integral withou scaling by element volum...
const VariableValue & _coupled_var
A reference to the variable to compute the norm of.
virtual Real computeValue() override
Called by compute() to get the value of the integrand at the current qp.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131