From 3ef209bad0cd7c1ae83a65702633e43f5a91c97f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 3 Apr 2016 17:01:06 +0200 Subject: Compute fake conductivity (for PML). --- src/physics.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/physics.h') 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 -- cgit