aeromcp-engineering 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aeromcp_engineering-0.3.0/LICENSE +21 -0
- aeromcp_engineering-0.3.0/PKG-INFO +370 -0
- aeromcp_engineering-0.3.0/README.md +345 -0
- aeromcp_engineering-0.3.0/pyproject.toml +54 -0
- aeromcp_engineering-0.3.0/setup.cfg +4 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/__init__.py +11 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/__main__.py +8 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aerodynamics/__init__.py +41 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aerodynamics/airfoil.py +25 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aerodynamics/calculations.py +227 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aerodynamics/wings.py +123 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aircraft_design/__init__.py +23 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aircraft_design/preliminary_design.py +45 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/aircraft_design/wing_sizing.py +28 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/__init__.py +45 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/anomalies.py +74 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/orbital.py +233 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/perturbations.py +48 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/propagation.py +47 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/astrodynamics/transformations.py +102 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/atmosphere/__init__.py +27 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/atmosphere/isa.py +114 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/atmosphere/properties.py +142 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/atmosphere/viscosity.py +27 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/__init__.py +33 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/area_mach.py +51 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/fanno.py +34 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/isentropic.py +46 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/normal_shock.py +45 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/oblique_shock.py +91 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/prandtl_meyer.py +49 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/compressible_flow/rayleigh.py +30 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/__init__.py +41 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/constants.py +42 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/errors.py +15 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/numerical_methods.py +198 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/results.py +33 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/units.py +109 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/core/validation.py +137 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/flight_mechanics/__init__.py +27 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/flight_mechanics/performance.py +135 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/flight_mechanics/stability.py +33 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/gnc/__init__.py +24 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/gnc/controllers.py +50 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/gnc/coordinates.py +60 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/gnc/estimation.py +34 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/gnc/quaternions.py +74 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/mission_analysis/__init__.py +11 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/mission_analysis/mission_budget.py +23 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/mission_analysis/trajectories.py +52 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/prompts.py +102 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/__init__.py +41 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/engines.py +67 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/nozzles.py +79 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/propellers.py +41 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/rockets.py +130 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/propulsion/rotors.py +62 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/resources/__init__.py +141 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/server.py +481 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/__init__.py +27 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/axial.py +26 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/beams.py +46 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/buckling.py +21 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/failure.py +41 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/structures/torsion.py +26 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/thermal/__init__.py +23 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/thermal/aerospace_heating.py +52 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/thermal/conduction.py +36 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/thermal/convection.py +19 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/thermal/radiation.py +24 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/__init__.py +32 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/aerodynamics.py +236 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/aircraft_design.py +110 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/astrodynamics.py +192 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/atmosphere.py +104 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/compressible_flow.py +200 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/flight_mechanics.py +238 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/gnc.py +168 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/mission_analysis.py +87 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/propulsion.py +330 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/structures.py +242 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering/tools/thermal.py +157 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering.egg-info/PKG-INFO +370 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering.egg-info/SOURCES.txt +92 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering.egg-info/dependency_links.txt +1 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering.egg-info/requires.txt +6 -0
- aeromcp_engineering-0.3.0/src/aeromcp_engineering.egg-info/top_level.txt +1 -0
- aeromcp_engineering-0.3.0/tests/test_aerodynamics.py +407 -0
- aeromcp_engineering-0.3.0/tests/test_astrodynamics.py +340 -0
- aeromcp_engineering-0.3.0/tests/test_atmosphere.py +162 -0
- aeromcp_engineering-0.3.0/tests/test_package.py +13 -0
- aeromcp_engineering-0.3.0/tests/test_server.py +539 -0
- aeromcp_engineering-0.3.0/tests/test_v030_domains.py +309 -0
- aeromcp_engineering-0.3.0/tests/test_v030_mcp.py +43 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AeroMCP contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aeromcp-engineering
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Aerospace Engineering Model Context Protocol - bringing validated aerospace engineering computation to AI agents
|
|
5
|
+
Author: AeroMCP contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: aerospace,engineering,mcp,model-context-protocol,computation
|
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
9
|
+
Classifier: Intended Audience :: Science/Research
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
16
|
+
Requires-Python: >=3.11
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: mcp<3,>=2.3
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
22
|
+
Requires-Dist: ruff>=0.8; extra == "dev"
|
|
23
|
+
Requires-Dist: mcp[cli]<3,>=2.3; extra == "dev"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# AeroMCP
|
|
27
|
+
|
|
28
|
+
**Bringing Aerospace Engineering Computation to AI Agents.**
|
|
29
|
+
|
|
30
|
+
## Project Description
|
|
31
|
+
|
|
32
|
+
AeroMCP is an independent aerospace engineering computation library that exposes
|
|
33
|
+
validated engineering calculations through the Model Context Protocol (MCP). The
|
|
34
|
+
core engineering calculations are designed to work independently of any AI
|
|
35
|
+
application. MCP serves as an interface layer that makes these calculations
|
|
36
|
+
accessible as tools to compatible AI clients.
|
|
37
|
+
|
|
38
|
+
## Project Purpose
|
|
39
|
+
|
|
40
|
+
AeroMCP provides open, modular, validated aerospace engineering computation
|
|
41
|
+
functions that can be used directly in Python, independent of AI tooling. An MCP
|
|
42
|
+
server exposes these calculations as tools, enabling AI agents to invoke them
|
|
43
|
+
through the standardized Model Context Protocol.
|
|
44
|
+
|
|
45
|
+
## Feature Overview
|
|
46
|
+
|
|
47
|
+
### Implemented Features
|
|
48
|
+
|
|
49
|
+
| Feature | Description |
|
|
50
|
+
|---------|-------------|
|
|
51
|
+
| Dynamic pressure | Compute q = 0.5 × ρ × V² from air density and flow velocity |
|
|
52
|
+
| Lift force | Compute L = q × S × CL from density, velocity, area, and lift coefficient |
|
|
53
|
+
| Drag force | Compute D = q × S × CD from density, velocity, area, and drag coefficient |
|
|
54
|
+
| Lift coefficient | Compute CL = L / (q × S) from lift force, density, velocity, and area |
|
|
55
|
+
| Reynolds number | Compute Re = ρ × V × L / μ from flow and fluid properties |
|
|
56
|
+
| ISA troposphere | Compute temperature, pressure, density, speed of sound for geopotential altitudes 0–11000 m (1976 U.S. Standard Atmosphere) |
|
|
57
|
+
| MCP server | Ten registered tools exposing the above calculations via STDIO transport |
|
|
58
|
+
|
|
59
|
+
### Future Plans (Not Implemented)
|
|
60
|
+
|
|
61
|
+
- Compressible flow calculations (isentropic flow, shocks, expansion fans)
|
|
62
|
+
- Propulsion analysis (thrust, specific impulse, engine cycles)
|
|
63
|
+
- Multilayer ISA (stratosphere and above)
|
|
64
|
+
- HTTP/SSE transport for MCP server
|
|
65
|
+
|
|
66
|
+
## MCP Tools
|
|
67
|
+
|
|
68
|
+
The following ten tools are registered on the AeroMCP MCP server:
|
|
69
|
+
|
|
70
|
+
| Tool | Description | Output Unit |
|
|
71
|
+
|------|-------------|-------------|
|
|
72
|
+
| `calculate_dynamic_pressure` | Dynamic pressure from density and velocity | Pa |
|
|
73
|
+
| `calculate_lift_force` | Lift force from density, velocity, area, lift coefficient | N |
|
|
74
|
+
| `calculate_drag_force` | Drag force from density, velocity, area, drag coefficient | N |
|
|
75
|
+
| `calculate_lift_coefficient` | Dimensionless lift coefficient from lift force, density, velocity, area | dimensionless |
|
|
76
|
+
| `calculate_reynolds_number` | Dimensionless Reynolds number from flow properties | dimensionless |
|
|
77
|
+
| `calculate_isa_troposphere` | ISA tropospheric properties from geopotential altitude | K, Pa, kg/m³, m/s |
|
|
78
|
+
| `calculate_circular_orbital_velocity` | Circular orbital velocity from gravitational parameter and radius | m/s |
|
|
79
|
+
| `calculate_orbital_period` | Keplerian orbital period from gravitational parameter and semi-major axis | s |
|
|
80
|
+
| `calculate_escape_velocity` | Escape velocity from gravitational parameter and distance | m/s |
|
|
81
|
+
| `calculate_hohmann_transfer` | Hohmann transfer Delta-V budget and transfer time | structured |
|
|
82
|
+
|
|
83
|
+
## Architecture
|
|
84
|
+
|
|
85
|
+
AeroMCP follows a clean separation between engineering computation and MCP
|
|
86
|
+
communication:
|
|
87
|
+
|
|
88
|
+
- **Engineering layer** (`src/aeromcp_engineering/core/`, `aerodynamics/`,
|
|
89
|
+
`atmosphere/`, `astrodynamics/`): Pure Python functions with no MCP
|
|
90
|
+
dependency. Independently usable and testable.
|
|
91
|
+
- **MCP layer** (`src/aeromcp_engineering/server.py`): A thin interface that
|
|
92
|
+
wraps engineering functions as MCP tools.
|
|
93
|
+
|
|
94
|
+
```mermaid
|
|
95
|
+
graph TD
|
|
96
|
+
subgraph Engineering_Layer ["Engineering Layer (MCP-independent)"]
|
|
97
|
+
Core["core/ — validation, constants"]
|
|
98
|
+
Aero["aerodynamics/ — lift, drag, Reynolds number"]
|
|
99
|
+
Atmos["atmosphere/ — ISA troposphere"]
|
|
100
|
+
Astro["astrodynamics/ — orbital mechanics"]
|
|
101
|
+
end
|
|
102
|
+
subgraph MCP_Layer ["MCP Communication Layer"]
|
|
103
|
+
Server["server.py — MCPServer with 10 tools"]
|
|
104
|
+
end
|
|
105
|
+
subgraph AI_Client ["AI Client (OpenCode, etc.)"]
|
|
106
|
+
Client["MCP Client via STDIO"]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
Core --> Aero
|
|
110
|
+
Core --> Atmos
|
|
111
|
+
Core --> Astro
|
|
112
|
+
Aero --> Server
|
|
113
|
+
Atmos --> Server
|
|
114
|
+
Astro --> Server
|
|
115
|
+
Server --> Client
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Installation Instructions for Windows
|
|
119
|
+
|
|
120
|
+
### Prerequisites
|
|
121
|
+
|
|
122
|
+
- Python 3.11 or later (Python 3.12 recommended)
|
|
123
|
+
|
|
124
|
+
### Virtual Environment Setup
|
|
125
|
+
|
|
126
|
+
```powershell
|
|
127
|
+
# Create virtual environment
|
|
128
|
+
python -m venv .venv
|
|
129
|
+
|
|
130
|
+
# Activate virtual environment
|
|
131
|
+
.venv\Scripts\Activate.ps1
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Editable Development Installation
|
|
135
|
+
|
|
136
|
+
```powershell
|
|
137
|
+
# Install the package in editable mode with development dependencies
|
|
138
|
+
python -m pip install -e ".[dev]"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### OpenCode MCP Integration
|
|
142
|
+
|
|
143
|
+
Add the following to your `opencode.jsonc` configuration:
|
|
144
|
+
|
|
145
|
+
```jsonc
|
|
146
|
+
{
|
|
147
|
+
"$schema": "https://opencode.ai/config.json",
|
|
148
|
+
"mcp": {
|
|
149
|
+
"servers": {
|
|
150
|
+
"aeromcp-engineering": {
|
|
151
|
+
"type": "local",
|
|
152
|
+
"command": [
|
|
153
|
+
"python",
|
|
154
|
+
"-m",
|
|
155
|
+
"aeromcp_engineering.server"
|
|
156
|
+
],
|
|
157
|
+
"cwd": "<path-to-AeroMCP>",
|
|
158
|
+
"codemode": false,
|
|
159
|
+
"protocol": "2026-07-28"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Replace `<path-to-AeroMCP>` with the actual path to your AeroMCP installation.
|
|
167
|
+
|
|
168
|
+
## Example Tool Calls
|
|
169
|
+
|
|
170
|
+
### Dynamic Pressure
|
|
171
|
+
|
|
172
|
+
```python
|
|
173
|
+
from aeromcp_engineering.aerodynamics import dynamic_pressure
|
|
174
|
+
|
|
175
|
+
q = dynamic_pressure(density_kg_m3=1.225, velocity_m_s=50.0)
|
|
176
|
+
# Result: 1531.25 Pa
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### ISA Troposphere
|
|
180
|
+
|
|
181
|
+
```python
|
|
182
|
+
from aeromcp_engineering.atmosphere import isa_troposphere
|
|
183
|
+
|
|
184
|
+
props = isa_troposphere(geopotential_altitude_m=0.0)
|
|
185
|
+
# Result: temperature=288.15 K, pressure=101325 Pa,
|
|
186
|
+
# density=1.225 kg/m³, speed_of_sound=340.294 m/s
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Via MCP Tool
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"tool": "calculate_isa_troposphere",
|
|
194
|
+
"arguments": {
|
|
195
|
+
"geopotential_altitude_m": 5000
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Circular Orbital Velocity
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
from aeromcp_engineering.astrodynamics import circular_orbital_velocity
|
|
204
|
+
|
|
205
|
+
MU_EARTH = 3.986004418e14
|
|
206
|
+
|
|
207
|
+
v = circular_orbital_velocity(
|
|
208
|
+
central_body_mu_m3_s2=MU_EARTH, orbital_radius_m=7_000_000.0
|
|
209
|
+
)
|
|
210
|
+
# Result: 7546.05 m/s
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Orbital Period
|
|
214
|
+
|
|
215
|
+
```python
|
|
216
|
+
from aeromcp_engineering.astrodynamics import orbital_period
|
|
217
|
+
|
|
218
|
+
MU_EARTH = 3.986004418e14
|
|
219
|
+
|
|
220
|
+
T = orbital_period(central_body_mu_m3_s2=MU_EARTH, semi_major_axis_m=7_000_000.0)
|
|
221
|
+
# Result: 5828.52 s
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Escape Velocity
|
|
225
|
+
|
|
226
|
+
```python
|
|
227
|
+
from aeromcp_engineering.astrodynamics import escape_velocity
|
|
228
|
+
|
|
229
|
+
MU_EARTH = 3.986004418e14
|
|
230
|
+
|
|
231
|
+
v_esc = escape_velocity(
|
|
232
|
+
central_body_mu_m3_s2=MU_EARTH, distance_from_center_m=7_000_000.0
|
|
233
|
+
)
|
|
234
|
+
# Result: 10671.73 m/s
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Hohmann Transfer
|
|
238
|
+
|
|
239
|
+
```python
|
|
240
|
+
from aeromcp_engineering.astrodynamics import hohmann_transfer
|
|
241
|
+
|
|
242
|
+
MU_EARTH = 3.986004418e14
|
|
243
|
+
|
|
244
|
+
result = hohmann_transfer(
|
|
245
|
+
central_body_mu_m3_s2=MU_EARTH,
|
|
246
|
+
initial_orbit_radius_m=7_000_000.0,
|
|
247
|
+
final_orbit_radius_m=42_164_000.0,
|
|
248
|
+
)
|
|
249
|
+
# Result: total Delta-V ≈ 3770.73 m/s, transfer time ≈ 19178.15 s
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## Engineering Equations
|
|
254
|
+
|
|
255
|
+
| Calculation | Equation | SI Units |
|
|
256
|
+
|-------------|----------|----------|
|
|
257
|
+
| Dynamic pressure | q = 0.5 × ρ × V² | Pa |
|
|
258
|
+
| Lift force | L = q × S × CL | N |
|
|
259
|
+
| Drag force | D = q × S × CD | N |
|
|
260
|
+
| Lift coefficient | CL = L / (q × S) | dimensionless |
|
|
261
|
+
| Reynolds number | Re = ρ × V × L / μ | dimensionless |
|
|
262
|
+
| ISA temperature | T = T₀ − L × H | K |
|
|
263
|
+
| ISA pressure | P = P₀ × (T/T₀)^(g₀/(R×L)) | Pa |
|
|
264
|
+
| ISA density | ρ = P / (R × T) | kg/m³ |
|
|
265
|
+
| ISA speed of sound | a = √(γ × R × T) | m/s |
|
|
266
|
+
| Circular orbital velocity | v = √(μ / r) | m/s |
|
|
267
|
+
| Orbital period | T = 2π × √(a³ / μ) | s |
|
|
268
|
+
| Escape velocity | v_escape = √(2 × μ / r) | m/s |
|
|
269
|
+
| Hohmann transfer | a_t = (r1 + r2) / 2, dv_total = dv1 + dv2 | m/s, s |
|
|
270
|
+
|
|
271
|
+
## ISA Model Scope and Assumptions
|
|
272
|
+
|
|
273
|
+
- **Model:** 1976 U.S. Standard Atmosphere, tropospheric layer only
|
|
274
|
+
- **Valid altitude range:** 0 to 11000 metres (geopotential altitude)
|
|
275
|
+
- **Input:** Geopotential altitude (not geometric altitude)
|
|
276
|
+
- **Assumptions:** Dry air, hydrostatic equilibrium, ideal gas behaviour,
|
|
277
|
+
constant gravitational acceleration, constant specific gas constant,
|
|
278
|
+
constant ratio of specific heats
|
|
279
|
+
|
|
280
|
+
## Astrodynamics Model Scope and Assumptions
|
|
281
|
+
|
|
282
|
+
- **Model:** Two-body impulsive orbital mechanics
|
|
283
|
+
- **Gravitational parameter:** Supplied by the caller as μ = G × M
|
|
284
|
+
(no central-body database or Earth-specific constants hardcoded)
|
|
285
|
+
- **Input units:** Orbital radius and distance measured from the central
|
|
286
|
+
body's centre (not from its surface)
|
|
287
|
+
- **Output units:** SI units (m/s for velocity, s for period/time)
|
|
288
|
+
- **Assumptions:** Circular initial and final orbits, coplanar transfer,
|
|
289
|
+
two instantaneous tangential burns, constant central-body gravitational
|
|
290
|
+
parameter
|
|
291
|
+
|
|
292
|
+
### Earth Reference Example
|
|
293
|
+
|
|
294
|
+
| Parameter | Value |
|
|
295
|
+
|-----------|-------|
|
|
296
|
+
| Gravitational parameter (μ) | 3.986004418 × 10¹⁴ m³/s² |
|
|
297
|
+
| Initial orbit radius | 7,000,000 m |
|
|
298
|
+
| Final orbit radius | 42,164,000 m |
|
|
299
|
+
| Circular orbital velocity | 7546.05 m/s |
|
|
300
|
+
| Orbital period | 5828.52 s |
|
|
301
|
+
| Escape velocity | 10671.73 m/s |
|
|
302
|
+
| Hohmann total Delta-V | ≈ 3770.73 m/s |
|
|
303
|
+
| Hohmann transfer time | ≈ 19178.15 s |
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## Testing
|
|
307
|
+
|
|
308
|
+
```powershell
|
|
309
|
+
# Run the full test suite
|
|
310
|
+
python -m pytest
|
|
311
|
+
|
|
312
|
+
# Run with verbose output
|
|
313
|
+
python -m pytest -v
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Test Coverage
|
|
317
|
+
|
|
318
|
+
| Test File | Tests |
|
|
319
|
+
|-----------|-------|
|
|
320
|
+
| tests/test_aerodynamics.py | 84 |
|
|
321
|
+
| tests/test_astrodynamics.py | 62 |
|
|
322
|
+
| tests/test_atmosphere.py | 15 |
|
|
323
|
+
| tests/test_package.py | 2 |
|
|
324
|
+
| tests/test_server.py | 27 |
|
|
325
|
+
| **Total** | **190** |
|
|
326
|
+
|
|
327
|
+
## Contribution Instructions
|
|
328
|
+
|
|
329
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for local development setup, testing,
|
|
330
|
+
linting, branch conventions, and pull request guidelines.
|
|
331
|
+
|
|
332
|
+
See [SECURITY.md](SECURITY.md) for responsible vulnerability disclosure and
|
|
333
|
+
credential handling policies.
|
|
334
|
+
|
|
335
|
+
## Project Roadmap
|
|
336
|
+
|
|
337
|
+
The following items are planned for future releases:
|
|
338
|
+
|
|
339
|
+
1. **Atmosphere module** — ISA troposphere (complete)
|
|
340
|
+
2. **Aerodynamics module** — lift, drag, Reynolds number (complete)
|
|
341
|
+
3. **Astrodynamics module** — orbital mechanics (complete)
|
|
342
|
+
4. **MCP server** — ten registered tools (complete)
|
|
343
|
+
5. **Compressible flow module** — isentropic flow, shocks (planned)
|
|
344
|
+
6. **Propulsion module** — thrust, engine performance (planned)
|
|
345
|
+
7. **Packaging and release** — PyPI publication (planned)
|
|
346
|
+
|
|
347
|
+
## Technology Stack
|
|
348
|
+
|
|
349
|
+
- **Language:** Python 3.11+
|
|
350
|
+
- **Packaging:** setuptools with src-layout
|
|
351
|
+
- **MCP SDK:** mcp Python SDK v2 (`mcp>=2.3,<3`)
|
|
352
|
+
- **Testing:** pytest
|
|
353
|
+
- **Linting & Formatting:** ruff
|
|
354
|
+
|
|
355
|
+
## Limitations
|
|
356
|
+
|
|
357
|
+
- ISA implementation currently covers only 0–11000 m geopotential altitude
|
|
358
|
+
(tropospheric layer only). Stratosphere and higher layers are not implemented.
|
|
359
|
+
- Orbital calculations use ideal two-body models. Atmospheric drag and
|
|
360
|
+
perturbations are not modelled.
|
|
361
|
+
- Hohmann transfers use impulsive burns and assume circular, coplanar orbits.
|
|
362
|
+
- MCP currently uses local STDIO transport only. No remote HTTP deployment
|
|
363
|
+
is implemented.
|
|
364
|
+
- AeroMCP is an engineering computation toolkit. It is **not** certified
|
|
365
|
+
aircraft or spacecraft design software and should not be used for
|
|
366
|
+
safety-critical aerospace applications without independent validation.
|
|
367
|
+
|
|
368
|
+
## Licence
|
|
369
|
+
|
|
370
|
+
AeroMCP is licensed under the MIT License. See [LICENSE](LICENSE) for details.
|