https://mooseframework.inl.gov
FunctionSeriesToAux.C
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 #include "FunctionSeries.h"
11 #include "FunctionSeriesToAux.h"
12 
13 registerMooseObject("FunctionalExpansionToolsApp", FunctionSeriesToAux);
14 
17 {
19 
20  params.addClassDescription("AuxKernel to convert a functional expansion"
21  " (Functions object, type = FunctionSeries) to an AuxVariable");
22 
23  // Force this AuxKernel to execute at "timestep_begin"
24  params.set<ExecFlagEnum>("execute_on", true) = EXEC_TIMESTEP_BEGIN;
25  // Don't let the user change the execution time
26  params.suppressParameter<ExecFlagEnum>("execute_on");
27 
28  return params;
29 }
30 
32  : FunctionAux(parameters)
33 {
34  FunctionSeries::checkAndConvertFunction(_func, getParam<std::string>("_moose_base"), name());
35 }
T & set(const std::string &name, bool quiet_mode=false)
FunctionSeriesToAux(const InputParameters &parameters)
registerMooseObject("FunctionalExpansionToolsApp", FunctionSeriesToAux)
virtual const std::string & name() const
void suppressParameter(const std::string &name)
const ExecFlagType EXEC_TIMESTEP_BEGIN
static FunctionSeries & checkAndConvertFunction(const Function &function, const std::string &typeName, const std::string &objectName)
Static function to cast a Function to SeriesFunction.
static InputParameters validParams()
Specialization of FunctionAux that is designed to work specifically with FXs, namely that it is alway...
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
const Function & _func