www.mooseframework.org
functional_expansion_tools
src
bcs
FXValueBC.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 "
FXValueBC.h
"
11
#include "
FunctionSeries.h
"
12
13
registerMooseObject
(
"FunctionalExpansionToolsApp"
,
FXValueBC
);
14
15
template
<>
16
InputParameters
17
validParams<FXValueBC>
()
18
{
19
InputParameters params = validParams<FunctionDirichletBC>();
20
21
params.addClassDescription(
22
"Imposes a fixed value boundary condition, evaluated using a FunctionSeries instance."
);
23
24
return
params;
25
}
26
27
FXValueBC::FXValueBC
(
const
InputParameters & parameters) : FunctionDirichletBC(parameters)
28
{
29
FunctionSeries
& fe_basis =
30
FunctionSeries::checkAndConvertFunction
(_func, getParam<std::string>(
"_moose_base"
),
name
());
31
32
fe_basis.
useCache
(
true
);
33
}
FXValueBC
Defines an FX-based boundary condition that forces the values to match.
Definition:
FXValueBC.h:22
FXValueBC.h
FunctionSeries
This class uses implementations of CompositeSeriesBasisInterface to generate a function based on conv...
Definition:
FunctionSeries.h:25
FXValueBC::FXValueBC
FXValueBC(const InputParameters ¶meters)
Definition:
FXValueBC.C:27
validParams< FXValueBC >
InputParameters validParams< FXValueBC >()
Definition:
FXValueBC.C:17
name
const std::string name
Definition:
Setup.h:21
registerMooseObject
registerMooseObject("FunctionalExpansionToolsApp", FXValueBC)
MemoizedFunctionInterface::useCache
void useCache(bool use)
Enable/disable the cache.
Definition:
MemoizedFunctionInterface.C:75
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
Generated on Sat Jan 25 2020 12:04:37 for www.mooseframework.org by
1.8.16