10#include "arrays/tdms_matrix.h"
11#include "arrays/vector_typedefs.h"
34 mxArray *mx_camplitudes =
nullptr;
35 int f_ex_vector_size =
54 double ***camplitudesR =
nullptr,
94 bool there_are_elements_in_arrays() {
95 return (vertices.has_elements() &&
111 std::complex<double> Hnorm);
Class storing the various constants and behaviour flags for one executation of the tdms executable.
Definition simulation_parameters.h:69
Definition vertex_phasors.h:22
void extractPhasorsVertices(int frequency_index, ElectricSplitField &E, MagneticSplitField &H, int n, double omega, SimulationParameters ¶ms)
Extract the phasor values at the vertices on the surface, for the given frequency index.
Definition vertex_phasors.cpp:85
void update_vertex_camplitudes(int frequency_index, int vertex_index, FullFieldSnapshot F)
Incriments camplitudes{R,I} at the given index by the field values provided.
Definition vertex_phasors.cpp:146
double *** camplitudesI
Definition vertex_phasors.h:55
int n_components()
Fetch the number of field components we are extracting.
Definition vertex_phasors.h:88
void normalise_vertices(int frequency_index, std::complex< double > Enorm, std::complex< double > Hnorm)
Normalise the surface amplitudes at frequency_vector_index by the E- and H-norms provided.
Definition vertex_phasors.cpp:39
void setup_complex_amplitude_arrays(int n_frequencies)
Allocate memory for the camplitude{R,I} arrays.
Definition vertex_phasors.cpp:66
VertexPhasors(const mxArray *ptr)
Setup using data from an input file.
Definition vertex_phasors.h:60
mxArray * get_mx_camplitudes()
Get the pointer to the data.
Definition vertex_phasors.h:71
FieldComponentsVector components
Definition vertex_phasors.h:32
bool there_are_vertices_to_extract_at()
Returns true/false based on whether there are/aren't vertices to extract at.
Definition vertex_phasors.h:91
int n_vertices()
Fetch the number of vertices at which we are extracting phasors.
Definition vertex_phasors.h:86
void set_from(const mxArray *ptr)
Setup using data from an input file.
Definition vertex_phasors.cpp:12
Classes for the electric and magnetic (split) fields on a grid.
Class to hold the labels of a Yee cell.
bool has_elements(const std::vector< T > &v)
Return true if the vector has non-zero size.
Definition utils.h:43
Useful miscellaneous utility functions.