Last change
on this file since 3313 was 3115, checked in by ansari, 19 years ago |
Creation initiale du groupe Cosmo avec le repertoire SimLSS de
simulation de distribution de masse 3D des galaxies par CMV+Rz
18/12/2006
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3115] | 1 | #ifndef PLANCKSPECTRA_SEEN
|
---|
| 2 | #define PLANCKSPECTRA_SEEN
|
---|
| 3 |
|
---|
| 4 | #include "machdefs.h"
|
---|
| 5 | #include "genericfunc.h"
|
---|
| 6 |
|
---|
| 7 | namespace SOPHYA {
|
---|
| 8 |
|
---|
| 9 | //-----------------------------------------------------------------------------------
|
---|
| 10 | class PlanckSpectra : public GenericFunc {
|
---|
| 11 | public:
|
---|
| 12 | PlanckSpectra(double T);
|
---|
| 13 | PlanckSpectra(PlanckSpectra& s);
|
---|
| 14 | virtual ~PlanckSpectra(void);
|
---|
| 15 |
|
---|
| 16 | inline void SetTemperature(double T) {T_ = T;}
|
---|
| 17 | inline double GetTemperature(void) {return T_;}
|
---|
| 18 |
|
---|
| 19 | void SetApprox(unsigned short approx=0);
|
---|
| 20 | void SetDeriv(unsigned short deriv=0);
|
---|
| 21 | void SetVar(unsigned short typvar=0);
|
---|
| 22 | void SetTypSpectra(unsigned short typspec=0);
|
---|
| 23 | void SetUnitOut(unsigned short unitout=0);
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | virtual double operator() (double x);
|
---|
| 27 |
|
---|
| 28 | double F2L(double nu_or_lambda);
|
---|
| 29 | double PlanckEnergie(void);
|
---|
| 30 | double PlanckPhoton(void);
|
---|
| 31 | double WienLaw(void);
|
---|
| 32 | double FindMaximum(double eps=0.001);
|
---|
| 33 |
|
---|
| 34 | protected:
|
---|
| 35 | double T_;
|
---|
| 36 | unsigned short approx_,deriv_,typvar_,typspec_,unitout_;
|
---|
| 37 |
|
---|
| 38 | double PlanckExp(double fl);
|
---|
| 39 | double DPlanckExp_DT(double fl);
|
---|
| 40 |
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | } // Fin du namespace
|
---|
| 44 |
|
---|
| 45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.