Chi-Tech
GridBasedFieldFunctionInterface.cc
Go to the documentation of this file.
1
#include "
GridBasedFieldFunctionInterface.h
"
2
3
#include "
fieldfunction_gridbased.h
"
4
5
namespace
chi_physics
6
{
7
8
chi::InputParameters
GridBasedFieldFunctionInterface::GetInputParameters
()
9
{
10
chi::InputParameters
params =
FieldFunctionInterface::GetInputParameters
();
11
12
return
params;
13
}
14
15
GridBasedFieldFunctionInterface::GridBasedFieldFunctionInterface
(
16
const
chi::InputParameters
& params)
17
:
FieldFunctionInterface
(params)
18
{
19
}
20
21
FieldFunctionGridBased
*
22
GridBasedFieldFunctionInterface::GetGridBasedFieldFunction
()
const
23
{
24
auto
* ff_ptr =
GetFieldFunction
();
25
26
auto
* grid_based_ff_ptr =
dynamic_cast<
FieldFunctionGridBased
*
>
(ff_ptr);
27
28
return
grid_based_ff_ptr ? grid_based_ff_ptr :
nullptr
;
29
}
30
31
}
// namespace chi_physics
GridBasedFieldFunctionInterface.h
chi::InputParameters
Definition:
input_parameters.h:23
chi_physics::FieldFunctionGridBased
Definition:
fieldfunction_gridbased.h:30
chi_physics::FieldFunctionInterface
Definition:
FieldFunctionInterface.h:16
chi_physics::FieldFunctionInterface::GetFieldFunction
FieldFunction * GetFieldFunction() const
Definition:
FieldFunctionInterface.cc:28
chi_physics::FieldFunctionInterface::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
FieldFunctionInterface.cc:11
chi_physics::GridBasedFieldFunctionInterface::GetGridBasedFieldFunction
FieldFunctionGridBased * GetGridBasedFieldFunction() const
Definition:
GridBasedFieldFunctionInterface.cc:22
chi_physics::GridBasedFieldFunctionInterface::GridBasedFieldFunctionInterface
GridBasedFieldFunctionInterface(const chi::InputParameters ¶ms)
Definition:
GridBasedFieldFunctionInterface.cc:15
chi_physics::GridBasedFieldFunctionInterface::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
GridBasedFieldFunctionInterface.cc:8
fieldfunction_gridbased.h
chi_physics
Definition:
chi_runtime.h:30
framework
physics
FieldFunction
GridBasedFieldFunctionInterface.cc
Generated by
1.9.3