-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsvzerodsolver.pyi
95 lines (76 loc) · 2.25 KB
/
svzerodsolver.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# This file contains the stubs for the public Python interface of svZeroDSolver.
# This is necessary for supporting auto-completion in Visual Studio Code or
# PyCharm.
"""svZeroDSolver Python interface."""
from __future__ import annotations
import numpy
import typing
import pandas
__all__ = ["Solver", "calibrate", "simulate"]
class Solver:
"""Lumped-parameter solver."""
@typing.overload
def __init__(self, arg0: dict) -> None:
"""Create a new lumped-parameter solver.
Args:
arg0: Solver configuration dictionary.
"""
...
@typing.overload
def __init__(self, arg0: str) -> None:
"""Create a new lumped-parameter solver.
Args:
arg0: Path to solver configuration file.
"""
...
def get_full_result(self) -> pandas.DataFrame:
"""Get the full result of the simulation.
Returns:
Simulation result as a dataframe.
"""
...
def get_single_result(self, arg0: str) -> numpy.ndarray:
"""Get the simulation result for a single degree-of-freedom (DOF).
Args:
arg0: Name of the DOF.
Returns:
Time-dependent simulation result for DOF.
"""
...
def get_single_result_avg(self, arg0: str) -> float:
"""Get the mean simulation result for a single degree-of-freedom (DOF).
Args:
arg0: Name of the DOF.
Returns:
Mean simulation result for the DOF.
"""
...
def run(self) -> None:
"""Run the simulation."""
...
def calibrate(arg0: dict) -> dict:
"""Run a Levenberg-Marquardt calibration.
Args:
arg0: Calibration configuration dictionary.
Returns:
Calibrated 0D solver input file.
"""
...
@typing.overload
def simulate(arg0: dict) -> pandas.DataFrame:
"""Run a lumped-parameter simulation.
Args:
arg0: Simulation configuration file.
Returns:
Simulation result as a dataframe.
"""
...
@typing.overload
def simulate(arg0: str) -> pandas.DataFrame:
"""Run a lumped-parameter simulation.
Args:
arg0: Path to solver configuration file.
Returns:
Simulation result as a dataframe.
"""
...