Commit Graph

242 Commits

Author SHA1 Message Date
Marek Nečada b6e1663619 Fix comments and limits (at least I think it's a fix)
Former-commit-id: 72f1cddf58f6e6a2e01d1e87174c147c38ead0dd
2018-05-14 15:58:32 +00:00
Marek Nečada 8bf9a1c54d Fix besselbuf sizes, start implementing short-range parts.
Former-commit-id: 7858c87377afe9e6484f6bd906d2fabfb9953945
2018-05-14 10:02:15 +03:00
Marek Nečada 51d354985f More comments
Former-commit-id: f7abe9035ffeae9e5e22c091ca2b0e034d2b5145
2018-05-14 07:40:08 +03:00
Marek Nečada 2da546f7c2 More comments to bessels.h
Former-commit-id: b0a922527c704ac1532db6042239bddab641915c
2018-05-14 07:04:05 +03:00
Marek Nečada c0f23fce55 ./dipdip-dirty stuff moved to ./qpms + comments, asserts and consts
Former-commit-id: 6005fcf91ca007b7e6d7093d1e82a0a305f28ffd
2018-05-14 06:52:32 +03:00
Marek Nečada a22b6b5712 Cleanup
Former-commit-id: 3a84f7eb73045e4c1ca6e380f9d1746fb9b870c3
2018-05-13 07:18:56 +00:00
Marek Nečada 1cf7014415 Making reserve in bessel buffers (TODO check the actual size needed later.)
Former-commit-id: d062dbb2a6cda23678b4557ce510aa0426a2f73a
2018-05-13 07:02:18 +00:00
Marek Nečada 6a6a3853e1 Fix regression
Former-commit-id: 89b21f29bdd06afcb3d49a8532d3a0c551f21a22
2018-05-13 00:15:02 +00:00
Marek Nečada e9b97ba808 Translation coefficients now correctly account for csphase
Former-commit-id: 13bf2de0847b57fe8723968e00000a4ea6bfd315
2018-05-12 07:03:34 +00:00
Marek Nečada 75e0d135d3 csphvec_reldiff version with tolerance
Former-commit-id: f2ddb1fd9c55aff96b1e9f4145cb93bf255b6318
2018-05-12 06:09:13 +00:00
Marek Nečada 9bf0736dd4 Fixes in less used functions
Former-commit-id: c90e785fd2f7a1672447d4d3136ce7c443dc1b8e
2018-05-11 19:13:02 +00:00
Marek Nečada e55847425a different tests of vswf translations
csphvec_t norm and relative difference functions


Former-commit-id: 39addcec6e5429e82698751427ffca03168569e3
2018-05-11 14:29:58 +00:00
Marek Nečada 9e2ad963f4 Xu's antinormalisation (broken, though)
Former-commit-id: 36ce5c8fdb1e63fe790cb40097f22b38fb2dff00
2018-05-09 08:51:41 +00:00
Marek Nečada 8f6181ced8 [IN PRO6RESS] Xu's antinormalisation
Former-commit-id: 577e58118d7da93b927035b4e6e91c6c4cdab485
2018-05-08 15:39:12 +03:00
Marek Nečada 45edb30a62 Split Xu and None.
Former-commit-id: 3a7198907df8d1cbcb41ad7f0923bc8757183d83
2018-05-07 03:46:55 +00:00
Marek Nečada 0b4044f267 Fix translation coefficient magnitude for unnormalized waves.
N. B. this will lead to different numbers than in Xu's tables.
The normalizations "XU" and "NONE" will be hence different


Former-commit-id: 040a39c694e871b487523af73abbf3028ef81576
2018-05-06 21:29:02 +00:00
Marek Nečada 1665474b3d Fix translation coefficient magnitude factor for power norm.
Former-commit-id: 645b9b3517af9d2c2a9ef3e0223307d21f3c89fa
2018-05-06 20:38:33 +00:00
Marek Nečada 1cf9eac0ba Revert accidentally deleted code
Former-commit-id: 0644367bdab1c407898a6e869c21b07f392c9c53
2018-05-06 19:29:20 +00:00
Marek Nečada 5e45afad38 indent
Former-commit-id: a56647c77be3363a71248e7ade21dd52b1d515a8
2018-05-06 19:13:10 +00:00
Marek Nečada f943cc0cdb Found a working set of parameters for the VSWF translation.
Former-commit-id: 3b36597e152bd89e6251e34d549fe1db3ecfd955
2018-05-06 17:34:35 +00:00
Marek Nečada 430e5b2a6b Update the Xu table translation test (TODO the .fodt file)
Former-commit-id: cd4f3cbc1c451a790d2e06691d083e85ceab41fb
2018-05-02 21:17:06 +03:00
Marek Nečada 20595e0781 Xu Table test of translation coeffs: fix erroneous table entry.
Change output format


Former-commit-id: dc3dcc3ce9abd84cfbd7107d2953c64fffd219de
2018-05-02 19:47:35 +03:00
Marek Nečada 34557fe5a4 Move translations table tests
Former-commit-id: bfb7f991c86f2cb2e25cf7444854d9647ed0f31b
2018-05-02 14:02:39 +00:00
Marek Nečada 1277faac91 ray plane wave test - fix missing columns
and it works, so the error is in the translation coeffs...


Former-commit-id: 13ca4eb13352ee7ac899afe359250f54b2783d86
2018-05-02 08:23:26 +00:00
Marek Nečada 0a7da94b4f Fix "zero" ray in plane wave test
Former-commit-id: cd30bf7acb9c68bc325fd60524a3a21df26629bc
2018-05-01 20:13:39 +03:00
Marek Nečada 7eefd445e0 New test code for plane wave decomposition
Former-commit-id: 6fc69078608e26184fafdf3f161ff3f084c56aa3
2018-05-01 19:57:02 +03:00
Marek Nečada e3713d61a3 Ppfac for the "new" B-coefficient
Former-commit-id: aea661c0419d2b619e79044960728a225a7f7132
2018-04-26 11:13:15 +03:00
Marek Nečada bff06d61d2 fix uninitialised value
Former-commit-id: 22535c732f1c6ebb7e97b73e32d88149670a9071
2018-04-25 22:38:04 +03:00
Marek Nečada fbcd9d12ff Small fixes
Former-commit-id: 100df715f56500e605ee77fd86afec8153e3225a
2018-04-25 20:37:34 +03:00
Marek Nečada 99bea1c9b7 More convenient output order
Former-commit-id: f71accc9a5bbbaeb2893ef4acbf8ca3664192169
2018-04-25 20:25:08 +03:00
Marek Nečada 73d76f6e25 fix identifier
Former-commit-id: 465c243162b27608dee36388d48071143f788a9d
2018-04-25 17:20:43 +03:00
Marek Nečada 244d6b7037 fix format strings
Former-commit-id: 04ba94c6f41a94f4b5b90e5dfe5879c3b7533637
2018-04-25 16:25:42 +03:00
Marek Nečada eb47cc2e6c New test approach for the translation coeffs
Former-commit-id: 26c9ee06f12c3f5b48921be530812707d81826c7
2018-04-25 16:08:55 +03:00
Marek Nečada c2ee695633 Fix kahansum init
Former-commit-id: 306596052fa88952fcb182f69d79315fa9c24020
2018-04-02 20:49:27 +03:00
Marek Nečada a9c04937f3 Various uncommitted mods and fixes
Former-commit-id: a9c5e0b73d23eae4b8b5fe5223f21a391d321b1e
2018-03-28 18:28:33 +03:00
Marek Nečada d0890b9d91 dudopráce
Former-commit-id: 4fd98da0231d2df8a1a8d9ceeca0a8a4ecc1ff1e
2018-03-15 02:26:00 +00:00
Marek Nečada e06cdd3171 Dudom. Implementace besselových fcí v chodu.
Former-commit-id: 63827799543f410dfb1a83cab7ca10287d76f7c2
2018-03-14 17:17:52 +02:00
Marek Nečada 5b5e77f985 Kahan sums 3
Former-commit-id: e34f5bbb16a95c4d5517121454a4d5229bcb50c8
2018-03-13 10:57:08 +02:00
Marek Nečada ad2815434a Kahan sums 2
Former-commit-id: 0d8c588c1770d76fd7db37e003e357f0b1bc4988
2018-03-13 10:54:32 +02:00
Marek Nečada cf340560af Kahan sums 1
Former-commit-id: e3a1c66347d2bb05162560b526618eb8c248de04
2018-03-13 10:54:07 +02:00
Marek Nečada 93137b29b3 Replaced (probably wrongly implemented) Xu's B coefficients with Xu/Cruzan B.
Former-commit-id: ea0f90e263c7e41a60bb1aeda0dc5efa2021b3dd
2018-03-08 10:31:11 +00:00
Marek Nečada 2cab9c1307 Dudom
Former-commit-id: ade18052fd1fbc4c02557c8fad65d66ad0272f47
2018-03-08 00:14:15 +02:00
Marek Nečada 4b7797edaf "fix" the q ranges for the B coefficients in translations.c
Former-commit-id: 17084dd0b57cb4271c67d5d95b7e033c3968276f
2018-03-07 21:32:05 +02:00
Marek Nečada 6474ceff0b Testing translation coefficients – found some irregularities.
Former-commit-id: 1f4791f3c6447de48229ccc4eb5a59c6cd7a2968
2018-03-07 18:44:32 +02:00
Marek Nečada 93ac5730b2 gaunt coeff generators mathematica
Former-commit-id: 43fb56d338faf193083035ab4ae4da115ca0bbaf
2018-02-13 01:45:26 +02:00
Marek Nečada 85ef4d7a70 Precompiled tabulated version of gaunt coeffs + tests.
Former-commit-id: 3fdd540ca817b1d5cc576b54baa3e8f42bd958ce
2018-02-12 23:39:51 +00:00
Marek Nečada 1a95827149 Test translations. Gives terrible numerical results.
Former-commit-id: d0315028193ba3e951c2f569d21c62035417327a
2018-02-08 10:23:31 +02:00
Marek Nečada 1829dcd58d Xu test more or less working for small n, nu.
N. B. incompatibility with old Taylor-like translation coefficients


Former-commit-id: 506c15d318b673cc38d0e137efbc55b2687dde7c
2018-02-08 06:23:34 +02:00
Marek Nečada d5f47c1844 generalise translations; does not give right values yety
Former-commit-id: 89262c325c2c2b619d1b5b7b7fd70ef3d02b0c41
2018-02-08 05:01:41 +02:00
Marek Nečada e689df15fd fix broken syntax in translations.c
Former-commit-id: 46444199859568e0a34bceadef5a017f6bcb7480
2018-02-07 17:33:08 +02:00
Marek Nečada de45a9e38c reorganisation of the code
Former-commit-id: 2efe6a07fa27aa2a159dfa83959e9580b3f53809
2018-02-07 15:39:41 +02:00
Marek Nečada b51b1dc2b5 Wrong radial part of longitudinal waves -> BUGS file
Former-commit-id: 6144e79efefcb54b43e85b1b3c14ef9d907bb336
2018-02-04 22:23:02 +00:00
Marek Nečada 4dc151d5b9 Correct plane wave decomposition at origin (wrong elsewhere for longitudinal waves
Former-commit-id: 4dc70fde23e31828fb959da429d716bd39e84e47
2018-02-04 15:40:13 +00:00
Marek Nečada dbc118e712 Plane wave decomposition now works for the transversal part (not yet longitudinal)
Former-commit-id: 83dadf35d24a66c7576395f6f156f5e7586551cd
2018-02-04 11:43:42 +00:00
Marek Nečada 6198a992f9 Forgot the test...
Former-commit-id: 88ae72c3ac9e3c0bda5f80d2ea46440687710e72
2018-02-02 14:23:47 +00:00
Marek Nečada f458e94995 Plane wave decomposition compiles but yields wrong results.
Former-commit-id: 0cfe82f1efe0e68d41a2f4bf315dfac4618cf435
2018-02-02 14:23:15 +00:00
Marek Nečada 7988b4e942 Dudom
Former-commit-id: 14be6634a87694d70a8b29a5ddf5ec4399b9c691
2018-02-01 17:04:51 +02:00
Marek Nečada 00f9f5234a Jdu do práce
Former-commit-id: 3be0f5adda5334dae7397d21b6d48835a190632d
2018-02-01 04:40:45 +00:00
Marek Nečada 2a7015b80b Rozbil jsem to, jdu domů.
Former-commit-id: 77490824d9a8f975ec4ebe98d8cfa104093884e4
2018-01-30 01:09:48 +02:00
Marek Nečada 155859d8a7 Fix edge legendre signs again
Former-commit-id: 932787e15c101c131bded3ada1034a379da6123c
2018-01-29 17:34:41 +02:00
Marek Nečada bd5aacd7d9 Legendre, pi, tau calculation fixes
Former-commit-id: 98e265cc0c6d73bd3eff3a601096ce84d63cc7a2
2018-01-29 10:13:13 +00:00
Marek Nečada 92e9622b64 Pi, tau auxillary functions. still bugs in the poles.
Former-commit-id: 99d550f5ffa03d001f89e41a07e70652105bdc36
2018-01-28 09:18:06 +00:00
Marek Nečada 3312bc61e2 Práce na vswf ; jdu domů
Former-commit-id: 112c65dcb0de85908b43cd488c63ac14072dc97e
2018-01-26 15:07:29 +02:00
Marek Nečada 90cc4065d3 Bessel transform mathematica results etc.
Former-commit-id: 3dca9d0ccbfefa4c5f3867ce4ba31229646ca2d9
2018-01-15 15:14:15 +02:00
Marek Nečada 37896ad022 dudom
Former-commit-id: cffd4c06ee69fb27f3aacb25508bf1e0532cadc2
2017-12-21 06:35:39 +02:00
Marek Nečada 0df626a194 Rozdělané Legendrovy polynomy por záporná m (jdu spát)
Former-commit-id: c0a0eba0bdc993de7199e57cc9f8a7c9964667a7
2017-12-18 01:04:12 +00:00
Marek Nečada b1f96695ae Types for vswfs
Former-commit-id: d868e91fa47206edc345780c009c464d11539ddb
2017-12-17 17:07:19 +00:00
Marek Nečada 6ef1adb60f Header cleanup, konvence
Former-commit-id: 8920ff072be831d081599e0237f4e6a39b3ec659
2017-12-17 16:44:45 +00:00
Marek Nečada ef8129d93c vswf computation (start writing)
Former-commit-id: 8886648a52b94a21a17e2fede87941a65597d740
2017-12-17 17:46:37 +02:00
Marek Nečada bb289a46b9 C indexing functions to separate file, new normalizations in progress
Former-commit-id: 30b4ab302fe69fedc8c12bdb7b3b35f532cfc35d
2017-12-17 17:42:18 +02:00
Marek Nečada 55d618143b separate C header file for types
Former-commit-id: 0c9797b04726c1d027a1eca96a5a7db3231403fc
2017-12-17 17:02:58 +02:00
Marek Nečada f6371b7d34 Přehled zdrojáků
Former-commit-id: 5ccde8227fefc212f5cdcabfe0f78ea237a0f83b
2017-12-06 22:32:48 +00:00
Marek Nečada 53e5508642 Mathematica script for calculating the 2D Bessel transforms.
Former-commit-id: 6371433778d3b7ee2f0a286f2f3e2cbddc53c917
2017-09-11 03:05:49 +03:00
Marek Nečada dc633c6d9a nd generalisation of function for reciprocal basis
Former-commit-id: a213a1198a65956eeafe0e3249beafc822131497
2017-08-03 08:11:28 +00:00
Marek Nečada 0b09921bb5 Two conventions for reciprocalBasis
Former-commit-id: 698fca8df5631e704e4a33dd9871b780f542a130
2017-08-03 08:07:50 +00:00
Marek Nečada 22b5cfdd49 dudom
Former-commit-id: 877c2c71178212397cdb72e18f54b9a884fb2951
2017-07-25 17:10:58 +03:00
Marek Nečada 0fe13cecc2 make TMatrix subclass of TMatrixSpec
Former-commit-id: 05ac6d2d707c1bc3815ee4bc58cdb56c3603c10f
2017-07-25 10:29:06 +03:00
Marek Nečada 5ef938ac11 Pseudovectorisation of qpms_p.lpy()
Former-commit-id: f09d71c52ef73453ee1a49f327a5b52548ce978b
2017-07-20 17:30:24 +03:00
Marek Nečada 46c67a548e Pseudovectorised version of qpms_p.vswf_yr()
Former-commit-id: 00f32b599dc087369fa99eb1bf9207d9901897c2
2017-07-20 17:05:32 +03:00
Marek Nečada e0b1b3af55 Pseudovectorisation of plane_pq_y
Former-commit-id: 4af74647f63a2aa4c669244245dfc4b2cf7a3efd
2017-07-20 16:42:29 +03:00
Marek Nečada 2451da7b3e Additional test, exception output
Former-commit-id: f976b87dae8c38dcfdd810b187fd0089a8287667
2017-07-20 15:58:28 +03:00
Marek Nečada 83a2d56d41 Basis transform for lattices
Former-commit-id: 5746d8f6a70c21b0133259c1f936fda96b01cf96
2017-07-20 15:45:52 +03:00
Marek Nečada bb3e0630af introduce TMatrix class
Former-commit-id: 1c6dea1510a91a498f4abc8fa47dd6f95f397da3
2017-07-19 17:01:22 +03:00
Marek Nečada 710efdc533 Define python enums for normalization and Bessel function types.
Former-commit-id: 2dccf7654eec98ce598f82d2d31479dbab459f28
2017-07-19 16:59:33 +03:00
Marek Nečada 681d3817ff Define particle / T-matrix specifications as namedtuples.
Also get rid of separate T-matrix spec sequences.


Former-commit-id: 814df45116c56e638e13d370d5be11330adad722
2017-07-18 16:07:31 +03:00
Marek Nečada cff4a2cbf1 tmatrices.py: get TMatrix by CL argument specification
Former-commit-id: e28bd7f80f64a810a1f2a22534e3fc1a40341dc9
2017-07-12 14:18:37 +03:00
Marek Nečada 3b6304b348 Move t-matrix op related stuff qpms_p.py->tmatrices.py
Former-commit-id: 4179c6e8fa960ade08ccac85e035bdc6a9bd16c0
2017-07-12 07:21:49 +03:00
Marek Nečada cc4815b861 Fix module path
Former-commit-id: 6b8d455aae082bde323031b7eb57268701f18c77
2017-07-11 23:45:11 +00:00
Marek Nečada d2b3851da5 lattices2d.py ready for (basic) use
Former-commit-id: f1fbc9a7e44be5a3b3c5c69a6aae35562741c440
2017-07-12 02:09:52 +03:00
Marek Nečada f925f2163d Progress on lattices2d.py; dudom
Former-commit-id: 0b9f718ce5cfff12f1d044dbf995f51092daf76b
2017-07-11 16:17:33 +03:00
Marek Nečada 97648ce214 Description of the modules, todos, remove unused imports.
Former-commit-id: 8fa256520b1fb3fbb69bc65040b0e541b8c38b97
2017-07-11 11:57:03 +03:00
Marek Nečada 4dbb8f09b0 Working on scripts_common
Former-commit-id: 830060579114debef9874748618e0dcf3f14882c
2017-07-11 10:48:52 +03:00
Marek Nečada e2f9923f31 Jdu do práce
Former-commit-id: 78742e79ad31d8aa44ac410401c6b5d6a394a188
2017-07-11 06:17:59 +00:00
Marek Nečada 37122d0b28 Improve range2D + some application argument TODOs
Former-commit-id: 40d8895058b25b9de8a4b4a47e9a115deaa495e1
2017-06-27 15:51:08 +03:00
Marek Nečada ccde3d76df Wigner-Seitz cell (untested)
Former-commit-id: fb16e8e607bcf6de8b4049147df649bcfdecd855
2017-06-27 14:50:18 +03:00
Marek Nečada 3eaa1e49fa Bravais lattice type recognition
Former-commit-id: b33c30f31ff08780a60ceb1fdcf011ee6e064e59
2017-06-27 00:22:18 +03:00
Marek Nečada fa1802a7bd Some data sanity checks
Former-commit-id: 7a7b0433aae0f754098e4d5a014b8c1311377317
2017-05-18 16:06:47 +03:00
Marek Nečada 43702a00c8 Cosmetics
Former-commit-id: f7a02a39ae67af4fb835892be4ff8356f3e91c9d
2017-05-17 13:34:54 +03:00
Marek Nečada c16e0df2f2 Check lMax > 0; more robust coordinate handling in lattices.py
Former-commit-id: 9e5ac45158d5c7241427a6148db2d1842dd74cc6
2017-05-17 11:32:17 +03:00
Marek Nečada 8135121a3e lattices.py: freeing memory; Cosmetic changes
Former-commit-id: 2d7e68b0f11d89406807d23e5b18c64900cbf01c
2017-05-16 15:01:20 +03:00