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 "PointSamplerBase.h" 14 : 15 : /** 16 : * Base class for sampling variable(s) at points 17 : */ 18 : class PointVariableSamplerBase : public PointSamplerBase, 19 : public CoupleableMooseVariableDependencyIntermediateInterface, 20 : public MooseVariableInterface<Real> 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : PointVariableSamplerBase(const InputParameters & parameters); 26 : 27 707 : virtual ~PointVariableSamplerBase() {} 28 : 29 : virtual void initialize(); 30 : virtual void execute(); 31 : 32 : void setPointsVector(const std::vector<Point> & points); 33 : void transferPointsVector(std::vector<Point> && points); 34 : 35 : protected: 36 : /// Current quadrature point 37 : unsigned int _qp; 38 : };