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 "Times.h" 14 : #include "FunctorInterface.h" 15 : 16 : /** 17 : * Times created by evaluating a functor 18 : */ 19 : class FunctorTimes : public Times, public NonADFunctorInterface 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : FunctorTimes(const InputParameters & parameters); 24 20 : virtual ~FunctorTimes() = default; 25 : 26 : protected: 27 : virtual void initialize() override; 28 : 29 : private: 30 : /// Functor to evaluate the time to append to the Times vector 31 : const Moose::Functor<Real> & _functor; 32 : /// Factor to multiply the functor with 33 : const Moose::Functor<Real> & _factor; 34 : };