Hex: src/interfaces.h Source File

| Hex 2.2 Hydrogen-electron collision solver

interfaces.h
Go to the documentation of this file.
1 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
2 // //
3 // / / / / __ \ \ / / //
4 // / /__ / / / _ \ \ \/ / //
5 // / ___ / | |/_/ / /\ \ //
6 // / / / / \_\ / / \ \ //
7 // //
8 // //
9 // Copyright (c) 2016, Jakub Benda, Charles University in Prague //
10 // //
11 // MIT License: //
12 // //
13 // Permission is hereby granted, free of charge, to any person obtaining a //
14 // copy of this software and associated documentation files (the "Software"), //
15 // to deal in the Software without restriction, including without limitation //
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense, //
17 // and/or sell copies of the Software, and to permit persons to whom the //
18 // Software is furnished to do so, subject to the following conditions: //
19 // //
20 // The above copyright notice and this permission notice shall be included //
21 // in all copies or substantial portions of the Software. //
22 // //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS //
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //
26 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, //
27 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF //
28 // OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. //
29 // //
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31
32 #ifndef HEX_DB_INTERFACES
33 #define HEX_DB_INTERFACES
34
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif // __cplusplus
39
60 void hex_initialize_ (const char* dbname);
61 void hex_initialize (const char* dbname);
62
75 void hex_new_ ();
76 void hex_new ();
77
94 void hex_import_ (const char* sqlname);
95 void hex_import (const char* sqlname);
96
110 void hex_update_ ();
111 void hex_update ();
112
118 void hex_optimize_ ();
119 void hex_optimize ();
120
131 void hex_dump_ (const char* dumpname);
132 void hex_dump (const char* dumpname);
133
162 void hex_scattering_amplitude_
163 (
164 int * ni, int * li, int * mi,
165 int * nf, int * lf, int * mf,
166 int * S,
167 int * nEnergies, double * energies,
168 int * nAngles, double * angles,
169 double * result, double * extra
170 );
171
191 void hex_scattering_amplitude
192 (
193 int ni, int li, int mi,
194 int nf, int lf, int mf,
195 int S,
196 int nEnergies, double * energies,
197 int nAngles, double * angles,
198 double * result, double * extra
199 );
200
244 void hex_scattering_amplitude_dir_
245 (
246 int * ni, int * li, int * mi,
247 int * nf, int * lf, int * mf,
248 int * S, double * E, int * N,
249 double * alpha, double * beta, double * gamma,
250 double * angles, double * result
251 );
252
275 void hex_scattering_amplitude_dir
276 (
277 int ni, int li, int mi,
278 int nf, int lf, int mf,
279 int S, double E, int N,
280 double alpha, double beta, double gamma,
281 double * angles, double * result
282 );
283
310 void hex_differential_cross_section_
311 (
312 int * ni, int * li, int * mi,
313 int * nf, int * lf, int * mf,
314 int * S,
315 int * nEnergies, double * energies,
316 int * nAngles, double * angles,
317 double * dcs, double * extra
318 );
319
337 void hex_differential_cross_section
338 (
339 int ni, int li, int mi,
340 int nf, int lf, int mf,
341 int S,
342 int nEnergies, double * energies,
343 int nAngles, double * angles,
344 double * dcs, double * extra
345 );
346
374 void hex_complete_cross_section_
375 (
376 int * ni, int * li, int * mi,
377 int * nf, int * lf, int * mf,
378 int * N, double * energies,
379 double * ccs, int * Nall,
380 int * npws, int * pws
381 );
382
401 void hex_complete_cross_section
402 (
403 int ni, int li, int mi,
404 int nf, int lf, int mf,
405 int N, double * energies,
406 double * ccs, int * Nall,
407 int npws, int * pws
408 );
409
410 #ifdef __cplusplus
411 }
412 #endif // __cplusplus
413
414 #endif
nf
int int int nf
Definition: momtf.cpp:56
mf
int int int int int mf
Definition: momtf.cpp:56
hex_optimize_
void hex_optimize_()
Optimize the SQLite database file.
Definition: db.cpp:266
nEnergies
int int int int int int nEnergies
Definition: momtf.cpp:56
hex_dump
void hex_dump(const char *dumpname)
Definition: db.cpp:281
hex_optimize
void hex_optimize()
Definition: db.cpp:265
hex_complete_cross_section
void hex_complete_cross_section(int ni, int li, int mi, int nf, int lf, int mf, int N, double *energies, double *ccs, int *Nall, int npws, int *pws)
Complete cross section (C).
Definition: ccs.cpp:110
hex_differential_cross_section_
void hex_differential_cross_section_(int *ni, int *li, int *mi, int *nf, int *lf, int *mf, int *S, int *nEnergies, double *energies, int *nAngles, double *angles, double *dcs, double *extra)
Differential cross section (Fortran).
Definition: dcs.cpp:133
hex_update_
void hex_update_()
Update integral and complete cross section.
Definition: db.cpp:252
lf
int int int int lf
Definition: momtf.cpp:56
hex_scattering_amplitude_
void hex_scattering_amplitude_(int *ni, int *li, int *mi, int *nf, int *lf, int *mf, int *S, int *nEnergies, double *energies, int *nAngles, double *angles, double *result, double *extra)
Scattering anplitude (Fortran).
Definition: scatamp.cpp:154
hex_initialize
void hex_initialize(const char *dbname)
Definition: db.cpp:68
hex_scattering_amplitude
void hex_scattering_amplitude(int ni, int li, int mi, int nf, int lf, int mf, int S, int nEnergies, double *energies, int nAngles, double *angles, double *result, double *extra)
Scattering anplitude (C).
Definition: scatamp.cpp:133
li
int li
Definition: momtf.cpp:56
hex_differential_cross_section
void hex_differential_cross_section(int ni, int li, int mi, int nf, int lf, int mf, int S, int nEnergies, double *energies, int nAngles, double *angles, double *dcs, double *extra)
Differential cross section (C).
Definition: dcs.cpp:112
hex_complete_cross_section_
void hex_complete_cross_section_(int *ni, int *li, int *mi, int *nf, int *lf, int *mf, int *N, double *energies, double *ccs, int *Nall, int *npws, int *pws)
Complete cross section (Fortran).
Definition: ccs.cpp:128
hex_import
void hex_import(const char *sqlname)
Definition: db.cpp:150
hex_new
void hex_new()
Definition: db.cpp:137
hex_scattering_amplitude_dir_
void hex_scattering_amplitude_dir_(int *ni, int *li, int *mi, int *nf, int *lf, int *mf, int *S, double *E, int *N, double *alpha, double *beta, double *gamma, double *angles, double *result)
Scattering anplitude for non-aligned impact direction (Fortran).
Definition: scatamp-dir.cpp:133
hex_import_
void hex_import_(const char *sqlname)
Import SQL batch file.
Definition: db.cpp:151
hex_scattering_amplitude_dir
void hex_scattering_amplitude_dir(int ni, int li, int mi, int nf, int lf, int mf, int S, double E, int N, double alpha, double beta, double gamma, double *angles, double *result)
Scattering anplitude for non-aligned impact direction (C).
Definition: scatamp-dir.cpp:114
energies
int int int int int int double * energies
Definition: momtf.cpp:56
mi
int int mi
Definition: momtf.cpp:56
hex_dump_
void hex_dump_(const char *dumpname)
Dump contents of the T-matrix table.
Definition: db.cpp:282
hex_initialize_
void hex_initialize_(const char *dbname)
Initialize the environment.
Definition: db.cpp:69
hex_new_
void hex_new_()
Create new database.
Definition: db.cpp:138
extra
int int int int int int double bool extra
Definition: momtf.cpp:56
hex_update
void hex_update()
Definition: db.cpp:251