NPSpec
0.2.0
Solve for the spectral properties of nanoparticles easily
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
include
npspec
constants.h
Go to the documentation of this file.
1
4
#ifndef CONSTANTS_H
5
#define CONSTANTS_H
6
7
#include "
npspec/version.h
"
8
9
/* Protect as C if C++ so that library can be called from C or Fortran */
10
#ifdef __cplusplus
11
namespace
NPSpec {
12
extern
"C"
{
13
#endif
14
16
const
int
NLAMBDA
= 800;
17
19
const
int
MAXLAYERS
= 10;
20
22
enum
SpectraType
{
Efficiency
,
23
CrossSection
,
24
Molar
,
25
Absorption
26
};
27
29
enum
ErrorCode
{
NoError
= 0,
30
SizeWarning
= -3,
31
InvalidRadius
= -4,
32
InvalidRelativeRadius
= -5,
33
InvalidIncrement
= -6,
34
InvalidPathLength
= -7,
35
InvalidConcentration
= -8,
36
InvalidRefractiveIndex
= -9,
37
InvalidNumberOfLayers
= -10,
38
UnknownMaterial
= -11
39
};
40
44
enum
NanoparticleShape
{
Sphere
,
45
Ellipsoid
46
};
47
51
enum
SpectraProperty
{
Extinction
,
52
Absorbance
,
53
Scattering
54
};
55
59
extern
const
double
wavelengths[];
60
61
#ifdef __cplusplus
62
}
// extern
63
}
// namespace NPSpec
64
#endif
65
66
#endif
/* CONSTANTS_H */
Generated on Fri Apr 5 2013 20:25:44 for NPSpec by
1.8.3.1