#include <string>
#include <vector>
#include <utility>
#include <set>
#include <complex>
#include <numeric>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <cassert>
#include <limits>
Go to the source code of this file.
Macros |
| #define | EPS_0 8.854187817620389e-12 |
| | freespace permittivity (F/m)
|
| #define | MU_0 1.256637061435917e-6 |
| | freespace permeability (H/m)
|
| #define | ETA_0 3.767303134617707e+2 |
| | freespace intrinsic impedance (ohm)
|
| #define | C_0 2.99792458e8 |
| | light speed in free space
|
| #define | PI 3.141592653589793 |
| | PI.
|
| #define | ANGL 57.2957795131 |
| | constant to convert radians to pi
|
| #define | SHAPE_CIRCLE 401 |
| #define | SHAPE_RECTANGLE 402 |
| #define | SHAPE_POINT 403 |
| #define | SHAPE_LINE 404 |
| #define | SHAPE_PIE 405 |
| #define | SHAPE_PARALLELO 406 |
| #define | SHAPE_CUBE 407 |
| #define | SHAPE_POLYGON 408 |
| #define | SIGNAL_GM 430 |
| #define | SIGNAL_SIN 431 |
| #define | SIGNAL_GAU 432 |
| #define | SIGNAL_DGAU 433 |
| #define | SIGNAL_RIC 434 |
| #define | CREATE_2D_ARRAY(type, data, NJ, NK) |
| #define | DELETE_2D_ARRAY(data) |
| #define | CREATE_1D_ARRAY(type, data, NK) data = new type[NK]; \ |
| #define | DELETE_1D_ARRAY(data) delete [] data; |
| #define | ASSIGN_2D_ARRAY(out, in, NJ, NK) |
| #define | PRINT_2D_ARRAY(data, NJ, NK) |
| #define | SOURCE_EHS 11 |
| #define | SOURCE_TFSF 12 |
| #define | SOURCE_CUR 13 |
| #define | SOURCE_SAR 14 |
| #define | SOURCE_PHS 15 |
| #define | BC_PEC 31 |
| #define | BC_PMC 32 |
| #define | BC_MUR 34 |
| #define | BC_RIGID 35 |
| #define | BC_PRESS 36 |
| #define | BC_SUL 38 |
| #define | BC_PERIODIC 39 |
| #define | TR 0 |
| #define | TH 1 |
| #define | SB 2 |
Macro Definition Documentation
| #define ANGL 57.2957795131 |
constant to convert radians to pi
| #define ASSIGN_2D_ARRAY |
( |
|
out, |
|
|
|
in, |
|
|
|
NJ, |
|
|
|
NK |
|
) |
| |
Value:for (unsigned j=0; j!=NJ; j++) \
for (unsigned k=0; k!=NK; k++) \
out[j][k]=in[j][k];
light speed in free space
| #define CREATE_1D_ARRAY |
( |
|
type, |
|
|
|
data, |
|
|
|
NK |
|
) |
| data = new type[NK]; \ |
| #define CREATE_2D_ARRAY |
( |
|
type, |
|
|
|
data, |
|
|
|
NJ, |
|
|
|
NK |
|
) |
| |
Value:data = new type *[NJ]; \
data[0] = new type[NJ*NK]; \
for (unsigned i=1; i!=NJ; i++) { \
data[i] = data[0]+i*NK; \
}
| #define DELETE_1D_ARRAY |
( |
|
data | ) |
delete [] data; |
| #define DELETE_2D_ARRAY |
( |
|
data | ) |
|
Value:delete [] data[0]; \
delete [] data;
| #define EPS_0 8.854187817620389e-12 |
freespace permittivity (F/m)
| #define ETA_0 3.767303134617707e+2 |
freespace intrinsic impedance (ohm)
| #define MU_0 1.256637061435917e-6 |
freespace permeability (H/m)
| #define PI 3.141592653589793 |
| #define PRINT_2D_ARRAY |
( |
|
data, |
|
|
|
NJ, |
|
|
|
NK |
|
) |
| |
Value:for (unsigned j=0; j!=NJ; j++) \
for (unsigned k=0; k!=NK; k++) \
std::cout << data[j][k] << '\t'; \
std::cout << std::endl;
| #define SHAPE_PARALLELO 406 |
| #define SHAPE_POLYGON 408 |
| #define SHAPE_RECTANGLE 402 |