https://mooseframework.inl.gov
FunctionElementLoopIntegralUserObject.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 #include "ElementLoopUserObject.h"
13 
18 {
19 public:
21 
22  virtual void initialize() override;
23  virtual void computeElement() override;
24  virtual void threadJoin(const UserObject & y) override;
25  virtual void finalize() override;
26 
30  virtual Real getValue() const;
31 
32 protected:
36  virtual Real computeIntegral();
40  virtual Real computeQpIntegral();
41 
44 
46  unsigned int _qp;
47 
50 
51 public:
53 };
virtual Real computeIntegral()
Computes integral on an element.
A base class that loops over elements and do things.
virtual Real computeQpIntegral()
Computes value of integrand at quadrature point.
const std::vector< double > y
FunctionElementLoopIntegralUserObject(const InputParameters &parameters)
Computes the integral of a function using an element loop.
virtual Real getValue() const
Returns the integral value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void threadJoin(const UserObject &y) override
const Function & _function
Function to integrate.
const InputParameters & parameters() const