summaryrefslogtreecommitdiff
path: root/tutorials/module_3/supersonic.ipynb
blob: 55eadc1c6292f52ead8bba73b3d12eb1c2b3f3a2 (plain)
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
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ca8508c0-dfaa-43a8-ae0d-728696106584",
   "metadata": {},
   "outputs": [],
   "source": [
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "06f676ad-f84e-49df-afa9-8e4846df53cb",
   "metadata": {},
   "source": [
    "Downstream Mach number:\n",
    "M22=1+γ−12M12γM12−γ−12\n",
    "M22​=γM12​−2γ−1​1+2γ−1​M12​​\n",
    "Pressure ratio:\n",
    "P2P1=1+2γγ+1(M12−1)\n",
    "P1​P2​​=1+γ+12γ​(M12​−1)\n",
    "Temperature ratio:\n",
    "T2T1=(1+γ−12M12)(2γM12−(γ−1))(γ+1)2M12\n",
    "T1​T2​​=(γ+1)2M12​(1+2γ−1​M12​)(2γM12​−(γ−1))​\n",
    "Density ratio:\n",
    "ρ2ρ1=(γ+1)M122+(γ−1)M12\n",
    "ρ1​ρ2​​=2+(γ−1)M12​(γ+1)M12​​"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f2363adc-cdd6-491d-a403-65c7182c12a7",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid character '−' (U+2212) (4049633316.py, line 2)",
     "output_type": "error",
     "traceback": [
      "\u001b[0;36m  Cell \u001b[0;32mIn[2], line 2\u001b[0;36m\u001b[0m\n\u001b[0;31m    M22=1+γ−12M12γM12−γ−12\u001b[0m\n\u001b[0m           ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid character '−' (U+2212)\n"
     ]
    }
   ],
   "source": [
    "Downstream Mach Number\n",
    "M22=1+γ−12M12γM12−γ−12\n",
    "M22​=γM12​−2γ−1​1+2γ−1​M12​​\n",
    "\n",
    "Pressure Ratio\n",
    "P2P1=1+2γγ+1(M12−1)\n",
    "P1​P2​​=1+γ+12γ​(M12​−1)\n",
    "\n",
    "Temperature Ratio\n",
    "T2T1=(1+γ−12M12)(2γM12−(γ−1))(γ+1)2M12\n",
    "T1​T2​​=(γ+1)2M12​(1+2γ−1​M12​)(2γM12​−(γ−1))​\n",
    "\n",
    "Density Ratio\n",
    "ρ2ρ1=(γ+1)M122+(γ−1)M12\n",
    "ρ1​ρ2​​=2+(γ−1)M12​(γ+1)M12​​\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fdf90d22-be4d-4862-9b23-76434d2e2305",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}