-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41efaf7
commit 55bb38c
Showing
22 changed files
with
761 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ RESOURCES += \ | |
resource.qrc | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "air.h" | ||
|
||
#include "math.h" | ||
|
||
Air::Air() | ||
{ | ||
|
||
} | ||
|
||
Air::~Air() | ||
{ | ||
|
||
} | ||
|
||
double Air::refractive_index_abs(double lambdamicron, double T, double P) | ||
{ | ||
constexpr double P0 = 101325.0; | ||
constexpr double Tref = 15; | ||
double nref = refractive_index_ref(lambdamicron); | ||
double num = nref - 1.0; | ||
double denom = 1.0 + (T-Tref)*(3.4785*pow(10,-3)); | ||
|
||
return ( 1.0 + (num/denom)*(P/P0) ); | ||
} | ||
|
||
double Air::refractive_index_ref(double lambdamicron) | ||
{ | ||
double term1 = 6432.8; | ||
double term2 = 2949810.0*pow(lambdamicron, 2)/( 146.0*pow(lambdamicron,2) - 1.0 ); | ||
double term3 = 25540.0*pow(lambdamicron,2)/( 41.0*pow(lambdamicron,2) - 1.0 ); | ||
double nref = 1.0 + (term1 + term2 + term3)*pow(10, -8); | ||
|
||
return nref; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef AIR_H | ||
#define AIR_H | ||
|
||
|
||
class Air | ||
{ | ||
public: | ||
Air(); | ||
~Air(); | ||
|
||
static double refractive_index_abs(double lambdamicron, double T, double P= 101325.0); | ||
|
||
private: | ||
static double refractive_index_ref(double lambdamicron); | ||
|
||
}; | ||
|
||
#endif // AIR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.