68 g = 8+4*this_proj -> nspec*this_proj -> nspec;
69 if (this_proj -> nspec == 2) g += 8;
70 for (h=0; h < this_proj -> sqw_n_data_sets; h++)
72 i = this_proj -> skt_sets + h*g;
73 this_proj -> analysis[
SKT] -> curves[0+i] -> name = g_strdup_printf (
"S(q,ω) %s - q= %f", _(
"Neutrons"), this_proj -> sqw_q_id[h]);
74 this_proj -> analysis[
SKT] -> curves[1+i] -> name = g_strdup_printf (
"S(q,ω) %s - q= %f - %s", _(
"Neutrons"), this_proj -> sqw_q_id[h], _(
"smoothed"));
75 this_proj -> analysis[
SKT] -> curves[2+i] -> name = g_strdup_printf (
"Q(q,ω) %s - q= %f", _(
"Neutrons"), this_proj -> sqw_q_id[h]);
76 this_proj -> analysis[
SKT] -> curves[3+i] -> name = g_strdup_printf (
"Q(q,ω) %s - q= %f - %s", _(
"Neutrons"), this_proj -> sqw_q_id[h], _(
"smoothed"));
77 this_proj -> analysis[
SKT] -> curves[4+i] -> name = g_strdup_printf (
"S(q,ω) %s - q= %f", _(
"X-rays"), this_proj -> sqw_q_id[h]);
78 this_proj -> analysis[
SKT] -> curves[5+i] -> name = g_strdup_printf (
"S(q,ω) %s - q= %f - %s", _(
"X-rays"), this_proj -> sqw_q_id[h], _(
"smoothed"));
79 this_proj -> analysis[
SKT] -> curves[6+i] -> name = g_strdup_printf (
"Q(q,ω) %s - q= %f", _(
"X-rays"), this_proj -> sqw_q_id[h]);
80 this_proj -> analysis[
SKT] -> curves[7+i] -> name = g_strdup_printf (
"Q(q,ω) %s - q= %f - %s", _(
"X-rays"), this_proj -> sqw_q_id[h], _(
"smoothed"));
82 for ( l = 0 ; l < this_proj -> nspec ; l++ )
84 for ( m = 0 ; m < this_proj -> nspec ; m++ )
86 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"AL(q,ω)[%s,%s] - q= %f",
active_chem -> label[l],
active_chem -> label[m], this_proj -> sqw_q_id[h]);
88 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"AL(q,ω)[%s,%s] - q= %f - %s",
active_chem -> label[l],
active_chem -> label[m], this_proj -> sqw_q_id[h], _(
"smoothed"));
92 for ( l = 0 ; l < this_proj -> nspec ; l++ )
94 for ( m = 0 ; m < this_proj -> nspec ; m++ )
96 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"FZ(q,ω)[%s,%s] - q= %f",
active_chem -> label[l],
active_chem -> label[m], this_proj -> sqw_q_id[h]);
98 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"FZ(q,ω)[%s,%s] - q= %f - %s",
active_chem -> label[l],
active_chem -> label[m], this_proj -> sqw_q_id[h], _(
"smoothed"));
102 if ( this_proj -> nspec == 2 )
104 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[NN] - q= %f", this_proj -> sqw_q_id[h]);
106 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[NN] - q= %f - %s", this_proj -> sqw_q_id[h], _(
"smoothed"));
108 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[NC] - q= %f", this_proj -> sqw_q_id[h]);
110 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[NC] - q= %f - %s", this_proj -> sqw_q_id[h], _(
"smoothed"));
112 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[CC] - q= %f", this_proj -> sqw_q_id[h]);
114 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[CC] - q= %f - %s", this_proj -> sqw_q_id[h], _(
"smoothed"));
116 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[ZZ] - q= %f", this_proj -> sqw_q_id[h]);
118 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ω)[ZZ] - q= %f - %s", this_proj -> sqw_q_id[h], _(
"smoothed"));
121 for (h=this_proj -> skt_sets; h < this_proj -> analysis[
SKT] -> numc; h++)
160 int g, h, i, j, k, l, m;
161 if (this_proj -> analysis[
SKT] -> curves)
163 for (i=0; i<this_proj -> analysis[
SKT] -> numc; i++)
168 this_proj -> skt_sets = 8+4*this_proj -> nspec*this_proj -> nspec;
169 if (this_proj -> nspec == 2) this_proj -> skt_sets += 8;
170 this_proj -> sqw_sets = this_proj -> skt_sets;
171 g = this_proj -> skt_sets;
174 this_proj -> skt_sets *= (this_proj -> steps - this_proj -> skt_corr_threshold);
178 this_proj -> skt_sets *= this_proj -> skt_n_data_sets;
180 this_proj -> sqw_sets *= this_proj -> sqw_n_data_sets;
181 this_proj -> analysis[
SKT] -> numc = this_proj -> skt_sets + this_proj -> sqw_sets;
183 for (h=0; h < ((this_proj ->
skt_all_sets) ? this_proj -> steps - this_proj -> skt_corr_threshold : this_proj -> skt_n_data_sets); h++)
187 this_proj -> analysis[
SKT] -> curves[0+i] -> name = g_strdup_printf (
"S(q,ẟt) %s - ẟt= %d", _(
"Neutrons"), j);
188 this_proj -> analysis[
SKT] -> curves[1+i] -> name = g_strdup_printf (
"S(q,ẟt) %s - ẟt= %d - %s", _(
"Neutrons"), j, _(
"smoothed"));
189 this_proj -> analysis[
SKT] -> curves[2+i] -> name = g_strdup_printf (
"Q(q,ẟt) %s - ẟt= %d", _(
"Neutrons"), j);
190 this_proj -> analysis[
SKT] -> curves[3+i] -> name = g_strdup_printf (
"Q(q,ẟt) %s - ẟt= %d - %s", _(
"Neutrons"), j, _(
"smoothed"));
191 this_proj -> analysis[
SKT] -> curves[4+i] -> name = g_strdup_printf (
"S(q,ẟt) %s - ẟt= %d", _(
"X-rays"), j);
192 this_proj -> analysis[
SKT] -> curves[5+i] -> name = g_strdup_printf (
"S(q,ẟt) %s - ẟt= %d - %s", _(
"X-rays"), j, _(
"smoothed"));
193 this_proj -> analysis[
SKT] -> curves[6+i] -> name = g_strdup_printf (
"Q(q,ẟt) %s - ẟt= %d", _(
"X-rays"), j);
194 this_proj -> analysis[
SKT] -> curves[7+i] -> name = g_strdup_printf (
"Q(q,ẟt) %s - ẟt= %d - %s", _(
"X-rays"), j, _(
"smoothed"));
197 for ( l = 0 ; l < this_proj -> nspec ; l++ )
199 for ( m = 0 ; m < this_proj -> nspec ; m++ )
201 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"AL(q,ẟt)[%s,%s] - ẟt= %d",
active_chem -> label[l],
active_chem -> label[m], j);
203 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"AL(q,ẟt)[%s,%s] - ẟt= %d - %s",
active_chem -> label[l],
active_chem -> label[m], j, _(
"smoothed"));
207 for ( l = 0 ; l < this_proj -> nspec ; l++ )
209 for ( m = 0 ; m < this_proj -> nspec ; m++ )
211 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"FZ(q,ẟt)[%s,%s] - ẟt= %d",
active_chem -> label[l],
active_chem -> label[m], j);
213 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"FZ(q,ẟt)[%s,%s] - ẟt= %d - %s",
active_chem -> label[l],
active_chem -> label[m], j, _(
"smoothed"));
217 if ( this_proj -> nspec == 2 )
219 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[NN] - ẟt= %d", j);
221 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[NN] - ẟt= %d - %s", j, _(
"smoothed"));
223 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[NC] - ẟt= %d", j);
225 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[NC] - ẟt= %d - %s", j,_(
"smoothed"));
227 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[CC] - ẟt= %d", j);
229 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[CC] - ẟt= %d - %s", j, _(
"smoothed"));
231 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[ZZ] - ẟt= %d", j);
233 this_proj -> analysis[
SKT] -> curves[k] -> name = g_strdup_printf (
"BT(q,ẟt)[ZZ] - t= %d - %s", j, _(
"smoothed"));
238 this_proj -> analysis[
SKT] -> init_ok = TRUE;
253 print_info (
"\n", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
254 print_info (_(
"\tMolecular dynamics information:\n\n"), NULL, this_proj -> analysis[
SKT] -> calc_buffer);
257 print_info (_(
"\n\n\tIntermediate scattering - F(q,δt)\n\n"), NULL, this_proj -> analysis[
SKT] -> calc_buffer);
259 print_info (_(
"\t - Correlation threshold δt"),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
260 print_info (
"min",
"sup_bold", this_proj -> analysis[
SKT] -> calc_buffer);
261 print_info (
" = ",
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
262 str = g_strdup_printf (
"%d", this_proj -> skt_corr_threshold);
263 print_info (str,
"bold_blue", this_proj -> analysis[
SKT] -> calc_buffer);
265 print_info (
"\n", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
268 print_info (_(
"\t - All "),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
269 str = g_strdup_printf (
"%d", this_proj -> skt_sets);
270 print_info (str,
"bold_blue", this_proj -> analysis[
SKT] -> calc_buffer);
272 print_info (_(
" correlated calculations saved"),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
273 print_info (
"\n", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
277 print_info (_(
"\t - Results saved for "),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
278 str = g_strdup_printf (
"%d", this_proj -> skt_n_data_sets);
279 print_info (str,
"bold_blue", this_proj -> analysis[
SKT] -> calc_buffer);
281 print_info (_(
" correlated calculations:\n\n"),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
282 for (i=0; i<this_proj -> skt_n_data_sets; i++)
284 print_info (
" \t\t ", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
285 str = g_strdup_printf (
"%d", i);
286 print_info (str, NULL, this_proj -> analysis[
SKT] -> calc_buffer);
288 print_info (
") δt\t=\t", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
289 str = g_strdup_printf (
"%d\n", this_proj -> skt_step_id[i]);
290 print_info (str,
"bold_green", this_proj -> analysis[
SKT] -> calc_buffer);
294 print_info (
"\n", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
295 print_info (_(
"\tDynamic structure factor - S(q,ω)\n\n"), NULL, this_proj -> analysis[
SKT] -> calc_buffer);
296 print_info (
"\t - ",
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
297 str = g_strdup_printf (
"%d", this_proj -> sqw_n_data_sets);
298 print_info (str,
"bold_blue", this_proj -> analysis[
SKT] -> calc_buffer);
300 print_info (_(
" q vectors were analyzed:\n\n"),
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
301 for (i=0; i<this_proj -> sqw_n_data_sets; i++)
303 print_info (
" \t\t ", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
304 str = g_strdup_printf (
"%d", i);
305 print_info (str, NULL, this_proj -> analysis[
SKT] -> calc_buffer);
307 print_info (
") q\t=\t", NULL, this_proj -> analysis[
SKT] -> calc_buffer);
308 str = g_strdup_printf (
"%f", this_proj -> sqw_q_id[i]);
309 print_info (str,
"bold_red", this_proj -> analysis[
SKT] -> calc_buffer);
311 print_info (
" Å",
"bold", this_proj -> analysis[
SKT] -> calc_buffer);
312 print_info (
"-1",
"sup_bold", this_proj -> analysis[
SKT] -> calc_buffer);
313 print_info (
"\n",
"bold", this_proj -> analysis[
SKT] -> calc_buffer);