https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
18{
19public:
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
32protected:
36 virtual Real computeIntegral();
40 virtual Real computeQpIntegral();
41
44
46 unsigned int _qp;
47
50
51public:
53};
const std::vector< double > y
A base class that loops over elements and do things.
Computes the integral of a function using an element loop.
virtual void threadJoin(const UserObject &y) override
virtual Real getValue() const
Returns the integral value.
virtual Real computeIntegral()
Computes integral on an element.
virtual Real computeQpIntegral()
Computes value of integrand at quadrature point.
const InputParameters & parameters() const