This repository serve as a backup for my Maxwell-TD code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
762 B

// MATERIAL.H
#ifndef MATERIAL_H
#define MATERIAL_H
#include "tensor.h"
#include "../dgtd-performance.hpp"
class Material {
public:
int objNum;
tensor epsr;
tensor mur;
tensor rum;
tensor sigma;
tensor sigma_m;
Material(int = 0);
bool scattering_region;
// PML Material Properties
int PML_Flag;
int PML_m_ord;
double PML_thick;
// Set PML Material Properties
void set_PML_Flag(int n) { PML_Flag = n; }
void set_PML_m_ord(int n) { PML_m_ord = n; }
void set_PML_thick(double d) { PML_thick = d; }
// Get PML Material Properties
int get_PML_Flag() { return PML_Flag; }
int get_PML_m_ord() { return PML_m_ord; }
double get_PML_thick() { return PML_thick; }
};
#endif