-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDimensions.h
521 lines (433 loc) · 16.1 KB
/
Dimensions.h
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
//
// Created by ryanz on 9/28/2022.
//
#ifndef PHYSICSFORMULA_DIMENSIONS_H
#define PHYSICSFORMULA_DIMENSIONS_H
#include <iostream>
/**
* @brief A structure representing a list of the dimensions of common physical
* quantities, together with their conventional symbols and the SI units in
* which they are usually quoted. The dimensional basis used is Length (L),
* mass (M), time (T), electric current (I), thermodynamic temperature (Θ),
* amount of substance (N), and luminous intensity (J).
*/
static struct Dimensions
{
Dimensions() {}
const struct ACCELERATION {
const std::string symbol = "a";
const std::string dimensions = "L/T^2";
const std::string SI_units = "m/s^2";
} acceleration;
const struct ACTION {
const std::string symbol = "S";
const std::string dimensions = "L^2M/T";
const std::string SI_units = "Js";
} action;
const struct ANGULAR_MOMENTUM {
const std::string symbol = "L, J";
const std::string dimensions = "L^2M/T";
const std::string SI_units = "m^2kg/s";
} angular_momentum;
const struct ANGULAR_SPEED {
const std::string symbol = "ω";
const std::string dimensions = "1/T";
const std::string SI_units = "rad/s";
} angular_velocity;
const struct ANGULAR_ACCELERATION {
const std::string symbol = "α";
const std::string dimensions = "1/T^2";
const std::string SI_units = "rad/s^2";
} angular_acceleration;
const struct ANGULAR_MOMENTUM_OF_INERTIA {
const std::string symbol = "I";
const std::string dimensions = "L^2M";
const std::string SI_units = "kgm^2";
} angular_momentum_of_inertia;
const struct area {
const std::string symbol = "A, S";
const std::string dimensions = "L^2";
const std::string SI_units = "m^2";
} area;
const struct AVOGADRO_CONSTANT {
const std::string symbol = "N_A";
const std::string dimensions = "1/N";
const std::string SI_units = "mol^-1";
} avogadro_constant;
const struct BENDING_MOMENT {
const std::string symbol = "G_b";
const std::string dimensions = "L^2M/T^2";
const std::string SI_units = "Nm";
} bending_moment;
const struct BOHR_MAGNETON {
const std::string symbol = "μ_B";
const std::string dimensions = "L^2I";
const std::string SI_units = "J/T";
} bohr_magneton;
const struct BOLTZMANN_CONSTANT {
const std::string symbol = "k, k_B";
const std::string dimensions = "L^2M/ΘT^2";
const std::string SI_units = "J/K";
} boltzmann_constant;
const struct BULK_MODULUS {
const std::string symbol = "K";
const std::string dimensions = "L^-1M/T^2";
const std::string SI_units = "Pa";
} bulk_modulus;
const struct CAPACITANCE {
const std::string symbol = "C";
const std::string dimensions = "T^4I^2/L^2M^1";
const std::string SI_units = "F";
} capacitance;
const struct CHARGE_ELECTRIC {
const std::string symbol = "q";
const std::string dimensions = "TI";
const std::string SI_units = "C";
} charge;
const struct CHARGE_DENSITY {
const std::string symbol = "ρ";
const std::string dimensions = "TI/L^3";
const std::string SI_units = "C/m^3";
} charge_density;
const struct CONDUCTANCE {
const std::string symbol = "G";
const std::string dimensions = "T^3I^2/L^2M^1";
const std::string SI_units = "S";
} conductance;
const struct CONDUCTIVITY {
const std::string symbol = "σ";
const std::string dimensions = "L^-3M^-1T^3I^2S";
const std::string SI_units = "S/m";
} conductivity;
const struct COUPLE {
const std::string symbol = "G, T";
const std::string dimensions = "L^2M/T^2N";
const std::string SI_units = "Nm";
} couple;
const struct CURRENT {
const std::string symbol = "I, i";
const std::string dimensions = "I";
const std::string SI_units = "A";
} current;
const struct CURRENT_DENSITY {
const std::string symbol = "J, j";
const std::string dimensions = "L^-2I";
const std::string SI_units = "A/m^2";
} current_density;
const struct DENSITY {
const std::string symbol = "ρ";
const std::string dimensions = "L^-3M";
const std::string SI_units = "kg/m^3";
} density;
const struct ELECTRIC_DISPLACEMENT {
const std::string symbol = "D";
const std::string dimensions = "L^-2T";
const std::string SI_units = "C/m^2";
} electric_displacement;
const struct ELECTRIC_FIELD_STRENGTH {
const std::string symbol = "E";
const std::string dimensions = "LMT^-3I^-1";
const std::string SI_units = "V/m";
} electric_field_strength;
const struct ELECTRIC_POLARISABILITY {
const std::string symbol = "α";
const std::string dimensions = "M^-1T^4I^2C";
const std::string SI_units = "m^2/V";
} electric_polarisability;
const struct ELECTRIC_POLARISATION {
const std::string symbol = "P";
const std::string dimensions = "L^-2T";
const std::string SI_units = "C/m^2";
} electric_polarisation;
const struct ELECTRIC_POTENTIAL_DIFFERENCE {
const std::string symbol = "V";
const std::string dimensions = "L^2MT^-3I^-1";
const std::string SI_units = "V";
} electric_potential_difference;
const struct ENERGY {
const std::string symbol = "E, U";
const std::string dimensions = "L^2MT^-2";
const std::string SI_units = "J";
} energy;
const struct ENERGY_DENSITY {
const std::string symbol = "u";
const std::string dimensions = "L^-1MT^-2";
const std::string SI_units = "J/m^3";
} energy_density;
const struct ENTROPY {
const std::string symbol = "S";
const std::string dimensions = "L^2MT^-2Θ^-1";
const std::string SI_units = "J/K";
} entropy;
const struct FARADAY_CONSTANT {
const std::string symbol = "F";
const std::string dimensions = "TI";
const std::string SI_units = "C/mol";
} faraday_constant;
const struct FORCE {
const std::string symbol = "F";
const std::string dimensions = "LMT^-2";
const std::string SI_units = "N";
} force;
const struct FREQUENCY {
const std::string symbol = "ν, f";
const std::string dimensions = "T^-1";
const std::string SI_units = "Hz";
} frequency;
const struct GRAVITATIONAL_CONSTANT {
const std::string symbol = "G";
const std::string dimensions = "L^3M^-1T^-2";
const std::string SI_units = "m^3/kg/s^2";
} gravitational_constant;
const struct HALL_COEFFICIENT {
const std::string symbol = "RH";
const std::string dimensions = "L^3T^-1I^-1";
const std::string SI_units = "m^3/C";
} hall_coefficient;
const struct HAMILTONIAN {
const std::string symbol = "H";
const std::string dimensions = "L^2MT^-2";
const std::string SI_units = "J";
} hamiltonian;
const struct HEAT_CAPACITY {
const std::string symbol = "C";
const std::string dimensions = "L^2MT^-2Θ^-1";
const std::string SI_units = "J/K";
} heat_capacity;
const struct HUBBLE_CONSTANT {
const std::string symbol = "1";
const std::string dimensions = "T^-1";
const std::string SI_units = "s^-1";
} hubble_constant;
const struct ILLUMINANCE {
const std::string symbol = "Ev";
const std::string dimensions = "L^-2";
const std::string SI_units = "lx";
} illuminance;
const struct IMPEDANCE {
const std::string symbol = "Z";
const std::string dimensions = "L^2MT^-3I^-2";
const std::string SI_units = "Ω";
} impedance;
const struct IMPULSE {
const std::string symbol = "I";
const std::string dimensions = "LMT^-1";
const std::string SI_units = "N s";
} impulse;
const struct INDUCTANCE {
const std::string symbol = "L";
const std::string dimensions = "L^2MT^-2I^-2";
const std::string SI_units = "H";
} inductance;
const struct IRRADIANCE {
const std::string symbol = "Ee";
const std::string dimensions = "MT^-3";
const std::string SI_units = "W/m^2";
} irradiance;
const struct LAGRANGIAN {
const std::string symbol = "L";
const std::string dimensions = "L^2MT^-2";
const std::string SI_units = "J";
} lagrangian;
const struct LENGTH {
const std::string symbol = "L, l";
const std::string dimensions = "L";
const std::string SI_units = "m";
} length;
const struct LUMINOUS_INTENSITY {
const std::string symbol = "Iv";
const std::string dimensions = "";
const std::string SI_units = "cd";
} luminous_intensity;
const struct MAGNETIC_DIPOLE_MOMENT {
const std::string symbol = "m, μ";
const std::string dimensions = "L^2I";
const std::string SI_units = "A m^2";
} magnetic_dipole_moment;
const struct MAGNETIC_FIELD_STRENGTH {
const std::string symbol = "H";
const std::string dimensions = "L^-1I";
const std::string SI_units = "A m^-1";
} magnetic_field_strength;
const struct MAGNETIC_FLUX {
const std::string symbol = "Φ";
const std::string dimensions = "L^2MT^-2I^-1";
const std::string SI_units = "Wb";
} magnetic_flux;
const struct MAGNETIC_FLUX_DENSITY {
const std::string symbol = "B";
const std::string dimensions = "MT^-2I^-1";
const std::string SI_units = "T";
} magnetic_flux_density;
const struct MAGNETIC_VECTOR_POTENTIAL {
const std::string symbol = "A";
const std::string dimensions = "LMT^-2I^-1";
const std::string SI_units = "Wb m^-1";
} magnetic_vector_potential;
const struct MAGNETISATION {
const std::string symbol = "M";
const std::string dimensions = "L^-1I";
const std::string SI_units = "A m^-1";
} magnetisation;
const struct MASS {
const std::string symbol = "m, M";
const std::string dimensions = "M";
const std::string SI_units = "kg";
} mass;
const struct MOBILITY {
const std::string symbol = "μ";
const std::string dimensions = "M^-1T^2I";
const std::string SI_units = "m^2/V/s";
} mobility;
const struct MOLAR_GAS_CONSTANT {
const std::string symbol = "R";
const std::string dimensions = "L^2MT^-2Θ^-1N^-1";
const std::string SI_units = "J/mol/K";
} molar_gas_constant;
const struct MOMENT_OF_INERTIA {
const std::string symbol = "I";
const std::string dimensions = "L^2Mkg";
const std::string SI_units = "m^2";
} moment_of_inertia;
const struct MOMENTUM {
const std::string symbol = "p";
const std::string dimensions = "LMT^-1Mkg";
const std::string SI_units = "m/s";
} momentum;
const struct NUMBER_DENSITY {
const std::string symbol = "n";
const std::string dimensions = "L^-3";
const std::string SI_units = "m^-3";
} number_density;
const struct PERMEABILITY {
const std::string symbol = "μ";
const std::string dimensions = "LMT^-2I^-2";
const std::string SI_units = "H/m";
} permeability;
const struct PERMITTIVITY {
const std::string symbol = "";
const std::string dimensions = "L^-3M^-1T^4I^2";
const std::string SI_units = "F/m";
} permittivity;
const struct PLANCK_CONSTANT {
const std::string symbol = "h";
const std::string dimensions = "L^2MT^-1";
const std::string SI_units = "J s";
} planck_constant;
const struct POWER {
const std::string symbol = "P";
const std::string dimensions = "L^2MT^-3";
const std::string SI_units = "W";
} power;
const struct POYNTING_VECTOR {
const std::string symbol = "S";
const std::string dimensions = "MT^-3";
const std::string SI_units = "W/m^2";
} poynting_vector;
const struct PRESSURE {
const std::string symbol = "p, P";
const std::string dimensions = "L^-1MT^-2";
const std::string SI_units = "Pa";
} pressure;
const struct RADIANT_INTENSITY {
const std::string symbol = "Ie";
const std::string dimensions = "L^2MT^-3";
const std::string SI_units = "W/sr";
} radiant_intensity;
const struct RESISTANCE {
const std::string symbol = "R";
const std::string dimensions = "L^2M^-3I^-2";
const std::string SI_units = "Ω";
} resistance;
const struct RYDBERG_CONSTANT {
const std::string symbol = "R∞";
const std::string dimensions = "L^-1";
const std::string SI_units = "m^-1";
} rydberg_constant;
const struct SHEAR_MODULUS {
const std::string symbol = "μ, G";
const std::string dimensions = "L^-1MT^-2";
const std::string SI_units = "Pa";
} shear_modulus;
const struct SPECIFIC_HEAT_CAPACITY {
const std::string symbol = "c";
const std::string dimensions = "L^2T^-2Θ^-1";
const std::string SI_units = "J/kg/K";
} specific_heat_capacity;
const struct SPEED {
const std::string symbol = "u, v, c";
const std::string dimensions = "LT^-1";
const std::string SI_units = "m/s";
} speed;
const struct STEFAN_BOLTZMANN_CONSTANT {
const std::string symbol = "σ";
const std::string dimensions = "MT^-3Θ^-4";
const std::string SI_units = "W/m^2/K^4";
} stefan_boltzmann_constant;
const struct STRESS {
const std::string symbol = "σ, τ";
const std::string dimensions = "L^-1MT^-2";
const std::string SI_units = "Pa";
} stress;
const struct SURFACE_TENSION {
const std::string symbol = "σ, γ";
const std::string dimensions = "MT^-2";
const std::string SI_units = "N/m";
} surface_tension;
const struct TEMPERATURE {
const std::string symbol = "T";
const std::string dimensions = "Θ";
const std::string SI_units = "K";
} temperature;
const struct THERMAL_CONDUCTIVITY {
const std::string symbol = "λ";
const std::string dimensions = "LMT^-3Θ^-1";
const std::string SI_units = "W/m/K";
} thermal_conductivity;
const struct TIME {
const std::string symbol = "t";
const std::string dimensions = "T";
const std::string SI_units = "s";
} time;
const struct VELOCITY {
const std::string symbol = "v, u";
const std::string dimensions = "LT^-1";
const std::string SI_units = "m/s";
} velocity;
const struct VISCOSITY_DYNAMIC {
const std::string symbol = "η, μ";
const std::string dimensions = "L^-1MT^-1";
const std::string SI_units = "Pa s";
} viscosity_dynamic;
const struct VISCOSITY_KINEMATIC {
const std::string symbol = "ν";
const std::string dimensions = "L^2T^-1";
const std::string SI_units = "m^2/s";
} viscosity_kinematic;
const struct VOLUME {
const std::string symbol = "V , v";
const std::string dimensions = "L^3";
const std::string SI_units = "m^3";
} volume;
const struct WAVEVECTOR {
const std::string symbol = "k";
const std::string dimensions = "L^-1";
const std::string SI_units = "m^-1";
} wavevector;
const struct WEIGHT {
const std::string symbol = "W";
const std::string dimensions = "LMT^-2";
const std::string SI_units = "N";
} weight;
const struct WORK {
const std::string symbol = "W";
const std::string dimensions = "L^2MT^-2";
const std::string SI_units = "J";
} work;
const struct YOUNG_MODULUS {
const std::string symbol = "E";
const std::string dimensions = "L^-1MT^-2";
const std::string SI_units = "Pa";
} young_modulus;
}dimensions;
#endif //PHYSICSFORMULA_DIMENSIONS_H