-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalVar.cpp
166 lines (154 loc) · 3.15 KB
/
GlobalVar.cpp
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/* Copyright 2022 james-5
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Output.H>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
//FL_Group namesea
Fl_Group* gas;
Fl_Group* elec;
Fl_Group* home;
Fl_Group* phy;
Fl_Group* eleas;
Fl_Group* df;
Fl_Group* bl;
Fl_Group* idl;
Fl_Group* ohl;
Fl_Group* reac;
Fl_Group* mf;
Fl_Group* Wp;
Fl_Group* Ve;
Fl_Group* Rr;
Fl_Group* Ai;
Fl_Group* IsFr;
Fl_Group* astron;
Fl_Group* unig;
Fl_Group* dopler;
Fl_Group* Parallax;
Fl_Group* rljw;
Fl_Group* Hublaw;
//Boyels law
Fl_Input* Pv1;
Fl_Input* Pv2;
Fl_Input* Vi1;
Fl_Input* vi2;
Fl_Output* P1aR;
Fl_Output* P2aR;
Fl_Output* V1aR;
Fl_Output* V2aR;
//Ideal Gass Law
Fl_Input* idgP1;
Fl_Input* idgP2;
Fl_Input* idgT1;
Fl_Input* idgT2;
Fl_Input* idgV1;
Fl_Input* idgV2;
Fl_Input* Gc;
Fl_Input* m;
Fl_Output* idgaRP1;
Fl_Output* idgaRP2;
Fl_Output* idgaRT1;
Fl_Output* idgaRT2;
Fl_Output* idgaRV1;
Fl_Output* idgaRV2;
//Elastic Equaison
Fl_Input* m1Input;
Fl_Input* m2Input;
Fl_Input* v1Input;
Fl_Input* v2Input;
Fl_Output* v1Output;
Fl_Output* v2Output;
//ohms law
//wats
Fl_Input* P;
Fl_Input* E;
Fl_Input* R;
Fl_Input* I;
Fl_Output* PaR;
Fl_Output* PaR1;
Fl_Output* PaR2;
//volts
Fl_Input* P1;
Fl_Input* E1;
Fl_Input* R1;
Fl_Input* I1;
Fl_Output* EaR;
Fl_Output* EaR1;
Fl_Output* EaR2;
//resistance
Fl_Input* P2;
Fl_Input* E2;
Fl_Input* R2;
Fl_Input* I2;
Fl_Output* RaR;
Fl_Output* RaR1;
Fl_Output* RaR2;
//amps
Fl_Input* P3;
Fl_Input* E3;
Fl_Input* R3;
Fl_Input* I3;
Fl_Output* IaR;
Fl_Output* IaR1;
Fl_Output* IaR2;
//reactance
Fl_Input* twopi;
Fl_Input* frec;
Fl_Input* Lh;
Fl_Output* ohms;
//Differental flow
Fl_Input* Cd_input;
Fl_Input* A_input;
Fl_Input* T_input;
Fl_Input* P_input;
Fl_Input* delta_P_input;
Fl_Input* gravity;
Fl_Input* MW_input;
Fl_Input* Z;
Fl_Input* gCon;
Fl_Output* Q_output;
Fl_Output* rho_output;
Fl_Output* dPc_output;
//Isentropic Flow Relation
Fl_Input *mach_input;
Fl_Input *gas_constant;
Fl_Input *gamma_input;
Fl_Input *temperature_input;
Fl_Input *pressure_input;
Fl_Output *velocity_output;
Fl_Output *density_output;
//Newton's law of universal gravitation
Fl_Input *input_mass1;
Fl_Input *input_mass2;
Fl_Input *input_distance;
Fl_Output *output_result;
//Parallax
Fl_Input* input_Pdistance;
Fl_Input* input_Pangle1;
Fl_Input* input_Pangle2;
Fl_Output* Pans;
Fl_Output* Pans_deg;
//Dopler efect
Fl_Input *input_frequency;
Fl_Input *input_velocity_source;
Fl_Input *input_velocity_observer;
Fl_Output *dopler_ans;