Skip to content

Commit 5dd67ef

Browse files
Updates 1D json file
1 parent be481d1 commit 5dd67ef

File tree

1 file changed

+34
-37
lines changed

1 file changed

+34
-37
lines changed
Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"solver_options": { // Optional - Customisation of the case's solver.
3-
"solver_type": "Centered", // Type of Flux to solve (Centered*, Upwind). *Centered does not support SMA boundaries.
4-
"final_time": 2.0, // Final time of the simulation. (double) (2.0 if not defined).
5-
"time_step": 1e-2, // Time step to use. Does not ensure stability if chosen too high. (double) (0.0 if not defined).
6-
"cfl": 0.7, // Courant-Friedrichs-Lewy condition. Does not ensure stability if chosen too high. Limited to 1D problems. (0.0 to 1.0) (0.8 if not defined).
7-
"order": 3, // Order of the Finite Element Collection used to distretise the Mesh. (integer)
8-
"spectral": false // Use Spectral Evolution Operators. (boolean) (false if ignored) (Heavier on the computation) (Does not include newer features).
2+
"solver_options": {
3+
"solver_type": "Centered",
4+
"final_time": 2.0,
5+
"time_step": 1e-2,
6+
"cfl": 0.7,
7+
"order": 3,
8+
"spectral": false
99
},
1010

11-
"model": { // Model will be built using customised mesh.
12-
"filename": "1D_PEC_Centered.msh", // Name of the Mesh, must coincide with name of the case. (string)
11+
"model": {
12+
"filename": "1D_PEC_Centered.msh",
1313
"materials": [
1414
{
1515
"tags": [ 1 ],
@@ -25,47 +25,45 @@
2525
{
2626
"tags": [ 1, 2 ],
2727
"type": "PEC"
28-
} // Defined BdrCond as follows: "PEC", "PMC", "SMA".
28+
}
2929
]
3030
},
3131

32-
"probes": { // Case Data extraction.
33-
"exporter": { // Optional - If this exists a Paraview visualization will be extracted by the defined steps. Only one.
34-
"steps": 1 // Every how many steps the data should be saved.
32+
"probes": {
33+
"exporter": {
34+
"steps": 1
3535
},
36-
"points": [ // Optional - If this exists, define probe_info for each point probe.
36+
"points": [
3737
{
3838
"field": "E",
39-
"position": [ 0.0 ] // Spatial location on where to extract (nD vector with Mesh Dimension as size). If defined out of bounds the program will crash.
39+
"position": [ 0.0 ]
4040
}
4141
],
4242
"surfaces": [
4343
{
4444
"field": "E",
45-
"tags": [ 1 ] // Spatial location on where to extract (nD vector with Mesh Dimension as size). If defined out of bounds the program will crash.
45+
"tags": [ 1 ]
4646
}
4747
]
4848
},
4949

50-
"sources": [ // Case Illumination. Temporarily One Max.
50+
"sources": [
5151
{
52-
"type": "initial", // Type of Illumination (Initial, Resonant).
53-
"field_type": "E", // Field to illuminate (E, H).
54-
"center": [ 0.5 ], // Spatial position of the illumination on t = 0 (nD Array with Mesh Dimension as size for X, Y, Z).
55-
"polarization": [ 0.0, 1.0, 0.0 ], // Spatial polarization of the field to illuminate (3D Array (X, Y, Z)).
56-
"dimension": 1, // Dimension of the *source* (1, 2, 3).
57-
// Extra arguments if using specific types. Will assume defaults if not given(?).
52+
"type": "initial",
53+
"field_type": "E",
54+
"center": [ 0.5 ],
55+
"polarization": [ 0.0, 1.0, 0.0 ],
56+
"dimension": 1,
5857
"magnitude": {
59-
"type": "gaussian", // For now, only required if type InitPlanewave. (Gaussian)
60-
"spread": 0.15, // Only if type = Initial/TDPlanewave/InitPlanewave (Gaussian for now). (double)
61-
"delay": 1.0 // Only if type = TDPlanewave, delay for the illumination (starts on 0.0, 0.0, 0.0);
58+
"type": "gaussian",
59+
"spread": 0.15,
60+
"delay": 1.0
6261
}
6362
},
6463
{
65-
"type": "initial", // Type of Illumination (Initial, Resonant).
66-
"field_type": "E", // Field to illuminate (E, H).
67-
"polarization": [ 0.0, 1.0, 0.0 ], // Spatial polarization of the field to illuminate (3D Array (X, Y, Z)).
68-
// Extra arguments if using specific types. Will assume defaults if not given(?).
64+
"type": "initial",
65+
"field_type": "E",
66+
"polarization": [ 0.0, 1.0, 0.0 ],
6967
"magnitude": {
7068
"type": "resonant",
7169
"mode": [ 2 ]
@@ -74,14 +72,13 @@
7472
{
7573
"type": "totalField",
7674
"tags": [ 1, 2, 3, 4 ],
77-
"magnitude": {
78-
"type": "gaussian", // For now, only required if type InitPlanewave. (Gaussian)
79-
"spread": 0.15, // Only if type = Initial/TDPlanewave/InitPlanewave (Gaussian for now). (double)
80-
"delay": 1.0 // Only if type = TDPlanewave, delay for the illumination (starts on 0.0, 0.0, 0.0);
81-
},
8275
"polarization": [ 0.0, 1.0, 0.0 ],
83-
"propagation": [ 1.0, 0.0, 0.0 ] // Only if type = TDPlanewave/InitPlanewave. (3D Array (X, Y, Z)).
76+
"propagation": [ 1.0, 0.0, 0.0 ],
77+
"magnitude": {
78+
"type": "gaussian",
79+
"spread": 0.15,
80+
"delay": 1.0
81+
}
8482
}
8583
]
86-
8784
};

0 commit comments

Comments
 (0)