https://mooseframework.inl.gov
FunctorTimes.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 
12 // Moose includes
13 #include "Times.h"
14 #include "FunctorInterface.h"
15 
20 {
21 public:
24  virtual ~FunctorTimes() = default;
25 
26 protected:
27  virtual void initialize() override;
28 
29 private:
34 };
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
const Moose::Functor< Real > & _factor
Factor to multiply the functor with.
Definition: FunctorTimes.h:33
FunctorTimes(const InputParameters &parameters)
Definition: FunctorTimes.C:33
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
Times objects are under the hood Reporters, but limited to a vector of Real.
Definition: Times.h:18
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void initialize() override
In charge of computing / loading the times, unless all that could be done there is done in the constr...
Definition: FunctorTimes.C:42
static InputParameters validParams()
Definition: FunctorTimes.C:15
virtual ~FunctorTimes()=default
Times created by evaluating a functor.
Definition: FunctorTimes.h:19
const InputParameters & parameters() const
Get the parameters of the object.
const Moose::Functor< Real > & _functor
Functor to evaluate the time to append to the Times vector.
Definition: FunctorTimes.h:31