Chi-Tech
crank_nicolson_time_intgr.cc
Go to the documentation of this file.
1
#include "
crank_nicolson_time_intgr.h
"
2
3
#include "
ChiObjectFactory.h
"
4
5
#define scint static_cast<int>
6
7
namespace
chi_math
8
{
9
10
RegisterChiObject
(
chi_math
,
CrankNicolsonTimeIntegration
);
11
12
chi::InputParameters
CrankNicolsonTimeIntegration::GetInputParameters
()
13
{
14
chi::InputParameters
params =
15
ThetaSchemeTimeIntegration::GetInputParameters
();
16
17
// clang-format off
18
params.
SetGeneralDescription
(
"General Crank-Nicolson Time Integration"
);
19
params.
SetDocGroup
(
"DocTimeIntegrations"
);
20
// clang-format on
21
22
params.
ChangeExistingParamToOptional
(
"method"
,
23
scint
(
SteppingMethod::CRANK_NICOLSON
));
24
params.
ChangeExistingParamToOptional
(
"theta"
, 0.5);
25
26
return
params;
27
}
28
29
CrankNicolsonTimeIntegration::CrankNicolsonTimeIntegration
(
30
const
chi::InputParameters
& params)
31
:
ThetaSchemeTimeIntegration
(params)
32
{
33
}
34
35
}
// namespace chi_math
ChiObjectFactory.h
chi::InputParameters
Definition:
input_parameters.h:23
chi::InputParameters::SetDocGroup
void SetDocGroup(const std::string &doc_group)
Definition:
input_parameters.h:80
chi::InputParameters::SetGeneralDescription
void SetGeneralDescription(const std::string &description)
Definition:
input_parameters.h:72
chi::InputParameters::ChangeExistingParamToOptional
void ChangeExistingParamToOptional(const std::string &name, T value, const std::string &doc_string="")
Definition:
input_parameters.h:140
chi_math::CrankNicolsonTimeIntegration
Definition:
crank_nicolson_time_intgr.h:10
chi_math::CrankNicolsonTimeIntegration::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
crank_nicolson_time_intgr.cc:12
chi_math::CrankNicolsonTimeIntegration::CrankNicolsonTimeIntegration
CrankNicolsonTimeIntegration(const chi::InputParameters ¶ms)
Definition:
crank_nicolson_time_intgr.cc:29
chi_math::ThetaSchemeTimeIntegration
Definition:
theta_scheme_time_intgr.h:10
chi_math::ThetaSchemeTimeIntegration::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
theta_scheme_time_intgr.cc:12
scint
#define scint
Definition:
crank_nicolson_time_intgr.cc:5
crank_nicolson_time_intgr.h
chi_math
Definition:
chi_runtime.h:42
chi_math::SteppingMethod::CRANK_NICOLSON
@ CRANK_NICOLSON
chi_math::RegisterChiObject
RegisterChiObject(chi_math, QuadratureGaussChebyshev)
framework
math
TimeIntegrations
crank_nicolson_time_intgr.cc
Generated by
1.9.3