L
lqkhai
Guest
Drahý,
Stretol som nejaké problémy s FDTD 3D kódmi.
Tohle je moje kódy.
Kód:/ * File: FD3D.h * /# Include "iostream.h"
# Include "fstream.h"
# Include "math.h"
# Include "stdlib.h"
# Include "malloc.h"# Define IE 40
# Define JE 40
# Define KE 40
# Define N 40trieda ThreeDFDTD
(
public:
/ * Float GAX [IE] [JE] [KE ],***[ IE] [JE] [KE], gaz [IE] [JE] [KE];
float dx [IE] [JE] [KE], dy [IE] [JE] [KE] dz [IE] [JE] [KE];
float ex [IE] [JE] [KE] ey [IE] [JE] [KE] ez [IE] [JE] [KE];
float hx [IE] [JE] [KE] hy [IE] [JE] [KE], hz [IE] [JE] [KE] * /
float *** GAX ,******,*** gaz;
*** Float dx, dy ***, *** dz;
float *** ex, ey ***, *** ez;
float *** hx, hy ***, *** Hz;
float DDX, DT, T, epsz, epsilon, sigma, EAF;
float xn xxn, xnum, xD, curl_e;
float t0, šírenie, pulz, NSTEPs;
int ic, jc, kc;
void createMang (float *** & Mang);
void freeMang (float *** & Mang);
void init (void);
void FDTD (void);
);
Stretol som nejaké problémy s FDTD 3D kódmi.
Tohle je moje kódy.
Kód:/ * File: FD3D.h * /# Include "iostream.h"
# Include "fstream.h"
# Include "math.h"
# Include "stdlib.h"
# Include "malloc.h"# Define IE 40
# Define JE 40
# Define KE 40
# Define N 40trieda ThreeDFDTD
(
public:
/ * Float GAX [IE] [JE] [KE ],***[ IE] [JE] [KE], gaz [IE] [JE] [KE];
float dx [IE] [JE] [KE], dy [IE] [JE] [KE] dz [IE] [JE] [KE];
float ex [IE] [JE] [KE] ey [IE] [JE] [KE] ez [IE] [JE] [KE];
float hx [IE] [JE] [KE] hy [IE] [JE] [KE], hz [IE] [JE] [KE] * /
float *** GAX ,******,*** gaz;
*** Float dx, dy ***, *** dz;
float *** ex, ey ***, *** ez;
float *** hx, hy ***, *** Hz;
float DDX, DT, T, epsz, epsilon, sigma, EAF;
float xn xxn, xnum, xD, curl_e;
float t0, šírenie, pulz, NSTEPs;
int ic, jc, kc;
void createMang (float *** & Mang);
void freeMang (float *** & Mang);
void init (void);
void FDTD (void);
);