SuperDex Physics C++ API
Loading...
Searching...
No Matches
integration_params.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19// PLEASE DO NOT ADD OTHER INCLUDES HERE. This header is included in the mochi_physics public API.
22
23namespace superdex {
24/** @brief Time integration methods. */
25enum struct IntegrationMethod {
26 BackwardEuler, ///< Backward Euler: 1 step, 1 stage, 1st order, L-stable. Also known as BDF1 and
27 ///< DIRK11.
28 BDF2, ///< BDF2: 2 steps, 1 stage, 2nd order, A-stable.
29 BDF3, ///< BDF3: 3 steps, 1 stage, 3rd order.
30 DIRK22, ///< DIRK(2,2): 1 step, 2 stages, 2nd order, L-stable.
31 DIRK23, ///< DIRK(2,3): 1 step, 2 stages, 3rd order.
32 DIRK33, ///< DIRK(3,3): 1 step, 3 stages, 3rd order, L-stable.
33 SymplecticDIRK12, ///< Symplectic DIRK(1,2): 1 step, 1 stage, 2nd order, A-stable. Also known as
34 ///< Gauss and implicit midpoint.
35 SymplecticDIRK22, ///< Symplectic DIRK(2,2): 1 step, 2 stages, 2nd order, A-stable.
36 Count, ///< Number of time integration method enum values.
37 Default = BackwardEuler, ///< Default time integration method.
38};
39} // namespace superdex
40
42MOCHI_ENUM_ITEM(BackwardEuler)
45MOCHI_ENUM_ITEM(DIRK22)
46MOCHI_ENUM_ITEM(DIRK23)
47MOCHI_ENUM_ITEM(DIRK33)
48MOCHI_ENUM_ITEM(SymplecticDIRK12)
49MOCHI_ENUM_ITEM(SymplecticDIRK22)
IntegrationMethod
Time integration methods.
@ BackwardEuler
Backward Euler: 1 step, 1 stage, 1st order, L-stable.
@ DIRK23
DIRK(2,3): 1 step, 2 stages, 3rd order.
@ DIRK33
DIRK(3,3): 1 step, 3 stages, 3rd order, L-stable.
@ SymplecticDIRK12
Symplectic DIRK(1,2): 1 step, 1 stage, 2nd order, A-stable.
@ SymplecticDIRK22
Symplectic DIRK(2,2): 1 step, 2 stages, 2nd order, A-stable.
@ BDF2
BDF2: 2 steps, 1 stage, 2nd order, A-stable.
@ BDF3
BDF3: 3 steps, 1 stage, 3rd order.
@ DIRK22
DIRK(2,2): 1 step, 2 stages, 2nd order, L-stable.
@ Count
Number of actor type enum values.
Definition mochi_enums.h:38
#define MOCHI_ENUM_COUNT(name)
Definition reflection.h:275
#define MOCHI_ENUM_END()
Definition reflection.h:276
#define MOCHI_ENUM_BEGIN(name)
Definition reflection.h:273
#define MOCHI_ENUM_ITEM(name)
Definition reflection.h:274