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.
24 lines
453 B
24 lines
453 B
#include "material.h"
|
|
#include "tetra.h"
|
|
|
|
Material::Material(int onum){
|
|
fp_t oneC = 1.0;
|
|
int i;
|
|
objNum = onum;
|
|
for (i = 0; i < 3; i ++) {
|
|
epsr.setEntry(i, i, oneC);
|
|
mur.setEntry(i, i, oneC);
|
|
rum.setEntry(i, i, oneC);
|
|
sigma.setEntry(i, i, oneC);
|
|
sigma_m.setEntry(i, i, oneC);
|
|
}
|
|
}
|
|
|
|
Material getMaterialProp(Material *objProp, tetra *tet, fp_t freq){
|
|
Material prop;
|
|
prop = objProp[tet->getobjNum()];
|
|
|
|
return prop;
|
|
}
|
|
|
|
|
|
|