Line data Source code
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 "ElementExtremeMaterialProperty.h" 14 : #include "LayeredBase.h" 15 : 16 : /** 17 : * This UserObject computes volume integrals of a variable storing partial sums for the specified 18 : * number of intervals in a direction (x,y,z). 19 : */ 20 : class LayeredExtremumMaterialProperty : public ElementExtremeMaterialProperty, public LayeredBase 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : LayeredExtremumMaterialProperty(const InputParameters & parameters); 26 : 27 : /** 28 : * Given a Point, return the integral value associated with the layer that point falls in. 29 : * 30 : * @param p The point to look for in the layers. 31 : */ 32 1468 : virtual Real spatialValue(const Point & p) const override { return integralValue(p); } 33 : 34 : virtual const std::vector<Point> spatialPoints() const override; 35 : 36 : virtual void initialize() override; 37 : virtual void execute() override; 38 : Real extreme_value(const Real a, const Real b) const; 39 : virtual void finalize() override; 40 : virtual void threadJoin(const UserObject & y) override; 41 : };