TDMS
Time Domain Maxwell Solver
All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
interface.h
Go to the documentation of this file.
1/**
2 * @file interface.h
3 */
4#pragma once
5
6#include <string>
7
8#include "mat_io.h"
9
10/**
11 * @brief Defines a plane over which a source/boundary condition is (or is not)
12 * to be applied.
13 *
14 * @details There are 6 planes on which a source condition can be applied; I0,
15 * I1, J0, J1, K0, and K1. The {I,J,K} character indicates the axial direction
16 * to which the plane is perpendicular, whilst the {0,1} character indicates
17 * whether this is the first or second such plane perpendicular to that axial
18 * direction.
19 *
20 * The index member stores the value of the (constant) Yee cell index of all Yee
21 * cells that lie in the plane defined. That is, index is the I-index of all Yee
22 * cells in the I0 or I1 planes, the J-index for the J0 and J1 planes, and the
23 * K-index of the K0 and K1 planes.
24 *
25 * The apply member flags whether an interface condition is to be applied across
26 * that particular interface/plane.
27 */
29public:
30 /*! Whether or not a source or boundary condition is applied at this interface
31 */
32 bool apply = false;
33 /*! The value of the constant Yee-cell index for cells in this plane */
34 int index = 0;
35
36 InterfaceComponent() = default;
37 InterfaceComponent(const mxArray *ptr, const std::string &name);
38};
Defines a plane over which a source/boundary condition is (or is not) to be applied.
Definition interface.h:28
bool apply
Definition interface.h:32
int index
Definition interface.h:34
Includes MATLAB headers for I/O.