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 : #include "PointValueSampler.h" 11 : 12 : #include <numeric> 13 : 14 : registerMooseObject("MooseApp", PointValueSampler); 15 : 16 : InputParameters 17 14735 : PointValueSampler::validParams() 18 : { 19 14735 : InputParameters params = PointVariableSamplerBase::validParams(); 20 14735 : params.addClassDescription("Sample a variable at specific points."); 21 14735 : params.addRequiredParam<std::vector<Point>>( 22 : "points", "The points where you want to evaluate the variables"); 23 : 24 14735 : return params; 25 0 : } 26 : 27 235 : PointValueSampler::PointValueSampler(const InputParameters & parameters) 28 235 : : PointVariableSamplerBase(parameters) 29 : { 30 235 : _points = getParam<std::vector<Point>>("points"); 31 235 : }