Nektar++
Loading...
Searching...
No Matches
library
LibUtilities
Python
TimeIntegration
Python/TimeIntegration/TimeIntegrationScheme.cpp
Go to the documentation of this file.
1
//////////////////////////////////////////////////////////////////////////////
2
//
3
// File: TimeIntegrationScheme.cpp
4
//
5
// For more information, please see: http://www.nektar.info
6
//
7
// The MIT License
8
//
9
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10
// Department of Aeronautics, Imperial College London (UK), and Scientific
11
// Computing and Imaging Institute, University of Utah (USA).
12
//
13
// Permission is hereby granted, free of charge, to any person obtaining a
14
// copy of this software and associated documentation files (the "Software"),
15
// to deal in the Software without restriction, including without limitation
16
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
17
// and/or sell copies of the Software, and to permit persons to whom the
18
// Software is furnished to do so, subject to the following conditions:
19
//
20
// The above copyright notice and this permission notice shall be included
21
// in all copies or substantial portions of the Software.
22
//
23
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29
// DEALINGS IN THE SOFTWARE.
30
//
31
// Description: Python wrapper for TimeIntegrationScheme.
32
//
33
///////////////////////////////////////////////////////////////////////////////
34
35
#include <
LibUtilities/Python/NekPyConfig.hpp
>
36
37
#include <
LibUtilities/TimeIntegration/TimeIntegrationScheme.h
>
38
39
using namespace
Nektar
;
40
using namespace
Nektar::LibUtilities
;
41
42
/// This is required since TimeIntegrationScheme has a protected destructror:
43
/// actually not quite sure why this is the case!
44
class
TIS_Deletable
:
public
TimeIntegrationScheme
45
{
46
public
:
47
~TIS_Deletable
()
override
=
default
;
48
};
49
50
void
export_TimeIntegrationScheme
(py::module &m)
51
{
52
// Very lightweight class around the time-integration scheme. Mostly this is
53
// here for debugging purposes rather than to provide a full wrapper around
54
// this class.
55
py::class_<TIS_Deletable, std::shared_ptr<TIS_Deletable>>(
56
m,
"TimeIntegrationScheme"
)
57
.def(
"GetFullName"
, &
TimeIntegrationScheme::GetFullName
)
58
.def(
"GetName"
, &
TimeIntegrationScheme::GetName
)
59
.def(
"GetVariant"
, &
TimeIntegrationScheme::GetVariant
)
60
.def(
"GetOrder"
, &
TimeIntegrationScheme::GetOrder
)
61
62
.def(
"GetTimeStability"
, &
TimeIntegrationScheme::GetTimeStability
)
63
.def(
"GetNumIntegrationPhases"
,
64
&
TimeIntegrationScheme::GetNumIntegrationPhases
);
65
}
NekPyConfig.hpp
export_TimeIntegrationScheme
void export_TimeIntegrationScheme(py::module &m)
Definition
Python/TimeIntegration/TimeIntegrationScheme.cpp:50
TimeIntegrationScheme.h
Nektar::LibUtilities::TimeIntegrationScheme
Base class for time integration schemes.
Definition
TimeIntegrationScheme.h:74
Nektar::LibUtilities::TimeIntegrationScheme::GetOrder
LUE size_t GetOrder() const
Definition
TimeIntegrationScheme.h:89
Nektar::LibUtilities::TimeIntegrationScheme::GetTimeStability
LUE NekDouble GetTimeStability() const
Definition
TimeIntegrationScheme.h:101
Nektar::LibUtilities::TimeIntegrationScheme::GetVariant
LUE std::string GetVariant() const
Definition
TimeIntegrationScheme.h:85
Nektar::LibUtilities::TimeIntegrationScheme::GetName
LUE std::string GetName() const
Definition
TimeIntegrationScheme.h:81
Nektar::LibUtilities::TimeIntegrationScheme::GetNumIntegrationPhases
LUE size_t GetNumIntegrationPhases()
Definition
TimeIntegrationScheme.h:105
Nektar::LibUtilities::TimeIntegrationScheme::GetFullName
LUE std::string GetFullName() const
Definition
TimeIntegrationScheme.h:77
TIS_Deletable
This is required since TimeIntegrationScheme has a protected destructror: actually not quite sure why...
Definition
Python/TimeIntegration/TimeIntegrationScheme.cpp:45
TIS_Deletable::~TIS_Deletable
~TIS_Deletable() override=default
Nektar::LibUtilities
Definition
GitRevision.h:54
Nektar
Definition
CoupledSolver.h:2
Generated on Sun Nov 9 2025 20:16:58 for Nektar++ by
1.9.8