diff options
Diffstat (limited to 'src/physics.h')
-rw-r--r-- | src/physics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/physics.h b/src/physics.h index 2557d3c..06c5d4f 100644 --- a/src/physics.h +++ b/src/physics.h @@ -10,7 +10,7 @@ #define IMPEDANCE_ZERO (sqrt(MU_ZERO/EPS_ZERO)) typedef struct { - size_t width, height, depth; + size_t dims[3]; size_t zstr, ystr, xstr, size; // strides in no. of points (not bytes) size_t zstr1, ystr1, xstr1, size1; // same as above but for aux float spacing; // in meters @@ -24,6 +24,8 @@ typedef struct { typedef struct { float eps, mu; // permittivity and permeability + float fake_cond[3]; + vec3_t curl_E, curl_H; vec3_t int_E, int_H; @@ -43,6 +45,7 @@ typedef struct { phy_field_info field_info; phy_field_em fields[3]; phy_field_aux_point *aux; + size_t pml_widths[3]; float time, time_delta; // UI stuff |