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 
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 
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 
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 
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 
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 
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 
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 
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
int int int nf
Definition: momtf.cpp:56
int int int int int mf
Definition: momtf.cpp:56
void hex_optimize_()
Optimize the SQLite database file.
Definition: db.cpp:266
int int int int int int nEnergies
Definition: momtf.cpp:56
void hex_dump(const char *dumpname)
Definition: db.cpp:281
void hex_optimize()
Definition: db.cpp:265
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
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
void hex_update_()
Update integral and complete cross section.
Definition: db.cpp:252
int int int int lf
Definition: momtf.cpp:56
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
void hex_initialize(const char *dbname)
Definition: db.cpp:68
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
int li
Definition: momtf.cpp:56
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
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
void hex_import(const char *sqlname)
Definition: db.cpp:150
void hex_new()
Definition: db.cpp:137
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
void hex_import_(const char *sqlname)
Import SQL batch file.
Definition: db.cpp:151
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
int int int int int int double * energies
Definition: momtf.cpp:56
int int mi
Definition: momtf.cpp:56
void hex_dump_(const char *dumpname)
Dump contents of the T-matrix table.
Definition: db.cpp:282
void hex_initialize_(const char *dbname)
Initialize the environment.
Definition: db.cpp:69
void hex_new_()
Create new database.
Definition: db.cpp:138
int int int int int int double bool extra
Definition: momtf.cpp:56
void hex_update()
Definition: db.cpp:251