TDMS
Time Domain Maxwell Solver
All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
input_output_names.h
Go to the documentation of this file.
1/**
2 * @file input_output_names.h
3 * @brief Constant values associated with the format of the input and output
4 * files and matrices
5 */
6#pragma once
7
8#include <string>
9#include <vector>
10
11#define NMATRICES 48//< number of input matrices
12#define NOUTMATRICES_WRITE \
13 23//< number of output matrices to be written to output file
14#define NOUTMATRICES_WRITE_ALL \
15 25//< number of output matrices to be written to output file
16#define NOUTMATRICES_PASSED \
17 31//< number of output matrices passed by mexFunction
18
19/*
20These are the names of the arrays that we expect to recieve from the input file
21(and posibly gridfile) that is passed to tdms on the command line. In the case
22where we are given an input file and a gridfile, the array names we expect to
23recieve from each is also recorded. In the case where the -m (compressed output)
24flag is passed, we do not save all the possible output arrays and so have a
25complete list of outputs and a shortened list of those which are saved when
26using -m.
27*/
28namespace tdms_matrix_names {
29const std::vector<std::string> matrixnames_infile = {
30 "Cmaterial",
31 "Dmaterial",
32 "C",
33 "D",
34 "freespace",
35 "disp_params",
36 "delta",
37 "interface",
38 "Isource",
39 "Jsource",
40 "Ksource",
41 "grid_labels",
42 "omega_an",
43 "to_l",
44 "hwhm",
45 "Dxl",
46 "Dxu",
47 "Dyl",
48 "Dyu",
49 "Dzl",
50 "Dzu",
51 "Nt",
52 "dt",
53 "tind",
54 "sourcemode",
55 "runmode",
56 "exphasorsvolume",
57 "exphasorssurface",
58 "intphasorssurface",
59 "phasorsurface",
60 "phasorinc",
61 "dimension",
62 "conductive_aux",
63 "dispersive_aux",
64 "structure",
65 "f_ex_vec",
66 "exdetintegral",
67 "f_vec",
68 "Pupil",
69 "D_tilde",
70 "k_det_obs_global",
71 "air_interface",
72 "intmatprops",
73 "tdfield",
74 "tdfdir",
75 "fieldsample",
76 "campssample"};//< All matrices that we could expect to get from an
77 // input file with a separate gridfile
78const std::vector<std::string> matrixnames_input_with_grid = {
79 "fdtdgrid",
80 "Cmaterial",
81 "Dmaterial",
82 "C",
83 "D",
84 "freespace",
85 "disp_params",
86 "delta",
87 "interface",
88 "Isource",
89 "Jsource",
90 "Ksource",
91 "grid_labels",
92 "omega_an",
93 "to_l",
94 "hwhm",
95 "Dxl",
96 "Dxu",
97 "Dyl",
98 "Dyu",
99 "Dzl",
100 "Dzu",
101 "Nt",
102 "dt",
103 "tind",
104 "sourcemode",
105 "runmode",
106 "exphasorsvolume",
107 "exphasorssurface",
108 "intphasorssurface",
109 "phasorsurface",
110 "phasorinc",
111 "dimension",
112 "conductive_aux",
113 "dispersive_aux",
114 "structure",
115 "f_ex_vec",
116 "exdetintegral",
117 "f_vec",
118 "Pupil",
119 "D_tilde",
120 "k_det_obs_global",
121 "air_interface",
122 "intmatprops",
123 "tdfield",
124 "tdfdir",
125 "fieldsample",
126 "campssample"};//< Matrices we expect to get from an input file that
127 // also contains grid information
128const std::vector<std::string> matrixnames_gridfile = {
129 "fdtdgrid"};//< Matrices we expect to obtain from a separate gridfile
130const std::vector<std::string> outputmatrices_all = {
131 "Ex_out", "Ey_out", "Ez_out", "Hx_out",
132 "Hy_out", "Hz_out", "x_out", "y_out",
133 "z_out", "Ex_i", "Ey_i", "Ez_i",
134 "Hx_i", "Hy_i", "Hz_i", "x_i",
135 "y_i", "z_i", "vertices", "camplitudes",
136 "facets", "maxresfield", "Id", "fieldsample",
137 "campssample"};//< All output matrices we might want to write
138const std::vector<std::string> outputmatrices = {
139 "Ex_out", "Ey_out", "Ez_out", "Hx_out", "Hy_out",
140 "Hz_out", "x_out", "y_out", "z_out", "Ex_i",
141 "Ey_i", "Ez_i", "Hx_i", "Hy_i", "Hz_i",
142 "x_i", "y_i", "z_i", "camplitudes", "maxresfield",
143 "Id", "fieldsample", "campssample"};//< Output matrices we want to
144 // write in a compressed (-m)
145 // output
146}// namespace tdms_matrix_names