1 /*
2  * These are compiled in limits for parameters. Some of these
3  * are "natural" (like the limits on inclination, which by definition
4  * is between 0 and 90 degree), others are "reasonable, but somewhat
5  * arbitrary". The requirement for "reasonable" limits stems from the
6  * fact that the fitting algorithm might diverge otherwise.
7  */
8 
9 /* mass ratio */
10 #define LIM_MQ_L 0.0001
11 #define LIM_MQ_H 10000.0
12 #define LIM_MQO_L 0.003
13 #define LIM_MQO_H 50.0
14 
15 /* inclination */
16 #define LIM_IN_L 0.0
17 #define LIM_IN_H 1.57079632679489661923132169164
18 
19 /* log g */
20 #define LIM_LOGG_L 3.5
21 #define LIM_LOGG_H 5.0
22 
23 /* fill factor */
24 #define LIM_RF_L 0.001
25 #define LIM_RF_H 1.0
26 #define LIM_RO_L 1.0001
27 #define LIM_RO_H 1.3
28 
29 /* temperature */
30 #define LIM_TB_L 5.
31 #define LIM_TB_H 500000.
32 #define LIM_TM_L 2000.
33 #define LIM_TM_H(arg) LIM_TB_H
34 
35 /* disk parameters */
36 #define LIM_OR_L 0.0
37 #define LIM_OR_H 1.0
38 #define LIM_IR_L 0.0
39 #define LIM_IR_H 0.99
40 #define LIM_TI_L 0.0
41 #define LIM_TI_H 30.0
42 #define LIM_TH_L 0.0
43 #define LIM_TH_H 1.0
44 #define LIM_WA_L 0.0
45 #define LIM_WA_H 90.0
46 #define LIM_HR_L 0.0
47 #define LIM_HR_H 1.0
48 #define LIM_DT_L 5.0
49 #define LIM_DT_H 500000.0
50 
51 /* hot spot */
52 #define LIM_HST_L  LIM_DT_L
53 #define LIM_HST_H  LIM_DT_H
54 #define LIM_HSL_L    0.
55 #define LIM_HSL_H  360.
56 #define LIM_HSE_L    0.
57 #define LIM_HSE_H   90.
58 #define LIM_HSD_L    0.
59 #define LIM_HSD_H    1.
60 #define LIM_HSP_L    0.
61 #define LIM_HSP_H    1.
62 
63 /* warp */
64 #define LIM_WPM_L    0.
65 #define LIM_WPM_H   80.
66 #define LIM_WPL_L    0.
67 #define LIM_WPL_H  360.
68 #define LIM_WPW_L    0.
69 #define LIM_WPW_H 1000.
70 #define LIM_WPC_L    0.
71 #define LIM_WPC_H    2.
72 
73 /* elliptic orbit */
74 #define LIM_EX_L 0.0
75 #define LIM_EX_H 0.95
76 #define LIM_PA_L 0.
77 #define LIM_PA_H 360.
78 
79 /* asynchron rotation */
80 #define LIM_FR_L 0.01
81 #define LIM_FR_H 100.0
82 
83 /* spots */
84 #define LIM_SLA_L -90.
85 #define LIM_SLA_H  90.
86 #define LIM_SLO_L  0.
87 #define LIM_SLO_H  360.
88 #define LIM_SRA_L  1.0
89 #define LIM_SRA_H  60.
90 #define LIM_SDF_L  0.5
91 #define LIM_SDF_H  2.0
92 
93 /* mass/distance */
94 #define LIM_MASS_L 0.0
95 #define LIM_MASS_H 3.978e32    /* 100 solar masses */
96 #define LIM_PERI_L 0.0
97 #define LIM_PERI_H 2.2226262e9 /* 70 years         */
98 #define LIM_DIST_L 0.0
99 #define LIM_DIST_H 1.496e14    /* 1000 au          */
100 
101 /* third Light */
102 #define LIM_3L_L 0.0
103 #define LIM_3L_H 0.98
104 
105 /* line profile */
106 #define LIM_PRF_L 300.0
107 #define LIM_PRF_H 5000.0
108