diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2016-04-03 17:01:06 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2016-04-03 17:01:06 +0200 |
commit | 3ef209bad0cd7c1ae83a65702633e43f5a91c97f (patch) | |
tree | ce124f04fdd363499243afeeb45e1449a76f7a81 /src/physics.h | |
parent | f1e955e7e9719aa82d1b32dac2bce62f26f75df7 (diff) |
Compute fake conductivity (for PML).
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 |