www.mooseframework.org
FunctionSeriesToAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<FunctionAux>();
20 
21  params.addClassDescription("AuxKernel to convert a functional expansion"
22  " (Functions object, type = FunctionSeries) to an AuxVariable");
23 
24  // Force this AuxKernel to execute at "timestep_begin"
25  params.set<ExecFlagEnum>("execute_on", true) = EXEC_TIMESTEP_BEGIN;
26  // Don't let the user change the execution time
27  params.suppressParameter<ExecFlagEnum>("execute_on");
28 
29  return params;
30 }
31 
32 FunctionSeriesToAux::FunctionSeriesToAux(const InputParameters & parameters)
33  : FunctionAux(parameters)
34 {
35  FunctionSeries::checkAndConvertFunction(_func, getParam<std::string>("_moose_base"), name());
36 }
FunctionSeriesToAux.h
registerMooseObject
registerMooseObject("FunctionalExpansionToolsApp", FunctionSeriesToAux)
FunctionSeriesToAux::FunctionSeriesToAux
FunctionSeriesToAux(const InputParameters &parameters)
Definition: FunctionSeriesToAux.C:32
name
const std::string name
Definition: Setup.h:21
FunctionSeriesToAux
Specialization of FunctionAux that is designed to work specifically with FXs, namely that it is alway...
Definition: FunctionSeriesToAux.h:23
validParams< FunctionSeriesToAux >
InputParameters validParams< FunctionSeriesToAux >()
Definition: FunctionSeriesToAux.C:17
FunctionSeries::checkAndConvertFunction
static FunctionSeries & checkAndConvertFunction(const Function &function, const std::string &typeName, const std::string &objectName)
Static function to cast a Function to SeriesFunction.
Definition: FunctionSeries.C:175
FunctionSeries.h