TDMS
Time Domain Maxwell Solver
Loading...
Searching...
No Matches
grid_labels.h
Go to the documentation of this file.
1
/**
2
* @file grid_labels.h
3
* @brief Class to hold the labels of a Yee cell.
4
*/
5
#pragma once
6
7
#include "
mat_io.h
"
8
9
/**
10
* Grid labels hold the cartesian labels of Yee cell, in the x, y and z
11
* directions
12
*/
13
class
GridLabels {
14
public
:
15
double
*x =
nullptr
;
//< Start of the labels in the x direction
16
double
*y =
nullptr
;
//< Start of the labels in the y direction
17
double
*z =
nullptr
;
//< Start of the labels in the z direction
18
19
GridLabels() =
default
;
20
21
explicit
GridLabels(
const
mxArray *ptr);
22
23
/**
24
* @brief Set values by copying from another GridLabels object
25
*
26
* @param other_labels The GridLabels object to copy values from
27
* @param i_l,j_l,k_l The first item to copy from the x, y, z attributes
28
* (respectively)
29
* @param i_u,j_u,k_u The final (inclusive) item to copy from the x, y, z
30
* attributes (respectively)
31
*/
32
void
initialise_from
(
const
GridLabels &labels_to_copy_from,
int
i_l,
int
i_u,
33
int
j_l,
int
j_u,
int
k_l,
int
k_u);
34
};
GridLabels::initialise_from
void initialise_from(const GridLabels &labels_to_copy_from, int i_l, int i_u, int j_l, int j_u, int k_l, int k_u)
Set values by copying from another GridLabels object.
Definition
grid_labels.cpp:12
mat_io.h
Includes MATLAB headers for I/O.
tdms
include
grid_labels.h
Generated by
1.15.0