Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
PhysicalData.hpp
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "math/Precision.hpp"
13
14#include <algorithm>
15#include <array>
16#include <optional>
17#include <stdexcept>
18#include <string>
19#include <string_view>
20
26namespace correlation::physics {
27
28namespace detail {
37 std::string_view symbol;
40
45 std::array<real_t, 9> form_factors;
46};
47
53constexpr const ElementData *find(std::string_view symbol) noexcept;
54} // namespace detail
55
63inline real_t getCovalentRadius(std::string_view symbol) {
64 const auto *data = detail::find(symbol);
65 if (data == nullptr) {
66 throw std::out_of_range(std::string("Covalent radius not found for element: ") +
67 std::string(symbol));
68 }
69 return data->radius;
70}
71
78[[nodiscard]] constexpr std::optional<real_t> findAtomicMass(std::string_view symbol) noexcept {
79 const auto *data = detail::find(symbol);
80 if (data == nullptr) {
81 return std::nullopt;
82 }
83 return data->mass;
84}
85
93inline real_t getAtomicMass(std::string_view symbol) {
94 const auto *data = detail::find(symbol);
95 if (data == nullptr) {
96 throw std::out_of_range(std::string("Atomic mass not found for element: ") +
97 std::string(symbol));
98 }
99 return data->mass;
100}
101
112inline const std::array<real_t, 9> &getAtomicFormFactors(std::string_view symbol) {
113 const auto *data = detail::find(symbol);
114 if (data == nullptr) {
115 throw std::out_of_range(std::string("Atomic form factor not found for element: ") +
116 std::string(symbol));
117 }
118 return data->form_factors;
119}
120
121namespace detail {
122inline constexpr std::array<ElementData, 98> DATABASE = {
123 {
124 {
125 .symbol = "Ac",
126 .radius = static_cast<real_t>(1.86),
127 .mass = static_cast<real_t>(227.0),
128 .form_factors =
129 {
130 static_cast<real_t>(15.914053),
131 static_cast<real_t>(0.080511),
132 static_cast<real_t>(32.535042),
133 static_cast<real_t>(0.770669),
134 static_cast<real_t>(21.553976),
135 static_cast<real_t>(4.352206),
136 static_cast<real_t>(11.433394),
137 static_cast<real_t>(21.381622),
138 static_cast<real_t>(3.939212),
139 },
140 },
141 {
142 .symbol = "Ag",
143 .radius = static_cast<real_t>(1.28),
144 .mass = static_cast<real_t>(107.87),
145 .form_factors =
146 {
147 static_cast<real_t>(6.073874),
148 static_cast<real_t>(0.055333),
149 static_cast<real_t>(17.155437),
150 static_cast<real_t>(7.896512),
151 static_cast<real_t>(4.173344),
152 static_cast<real_t>(28.443739),
153 static_cast<real_t>(0.852238),
154 static_cast<real_t>(110.37611),
155 static_cast<real_t>(0.756603),
156 },
157 },
158 {
159 .symbol = "Al",
160 .radius = static_cast<real_t>(1.26),
161 .mass = static_cast<real_t>(26.982),
162 .form_factors =
163 {
164 static_cast<real_t>(4.730796),
165 static_cast<real_t>(3.628931),
166 static_cast<real_t>(2.313951),
167 static_cast<real_t>(43.051167),
168 static_cast<real_t>(1.54198),
169 static_cast<real_t>(0.09596),
170 static_cast<real_t>(1.117564),
171 static_cast<real_t>(108.93239),
172 static_cast<real_t>(0.139509),
173 },
174 },
175 {
176 .symbol = "Am",
177 .radius = static_cast<real_t>(1.66),
178 .mass = static_cast<real_t>(243.0),
179 .form_factors =
180 {
181 static_cast<real_t>(33.435162),
182 static_cast<real_t>(0.612785),
183 static_cast<real_t>(23.657259),
184 static_cast<real_t>(3.792942),
185 static_cast<real_t>(15.576339),
186 static_cast<real_t>(16.195778),
187 static_cast<real_t>(3.027023),
188 static_cast<real_t>(117.757),
189 static_cast<real_t>(3.54116),
190 },
191 },
192 {
193 .symbol = "Ar",
194 .radius = static_cast<real_t>(0.96),
195 .mass = static_cast<real_t>(39.948),
196 .form_factors =
197 {
198 static_cast<real_t>(7.188004),
199 static_cast<real_t>(0.956221),
200 static_cast<real_t>(6.638454),
201 static_cast<real_t>(15.339877),
202 static_cast<real_t>(0.45418),
203 static_cast<real_t>(15.339862),
204 static_cast<real_t>(1.929593),
205 static_cast<real_t>(39.043823),
206 static_cast<real_t>(0.265954),
207 },
208 },
209 {
210 .symbol = "As",
211 .radius = static_cast<real_t>(1.21),
212 .mass = static_cast<real_t>(74.922),
213 .form_factors =
214 {
215 static_cast<real_t>(17.025642),
216 static_cast<real_t>(2.597739),
217 static_cast<real_t>(4.503441),
218 static_cast<real_t>(0.003012),
219 static_cast<real_t>(3.715904),
220 static_cast<real_t>(14.272119),
221 static_cast<real_t>(3.9372),
222 static_cast<real_t>(50.437996),
223 static_cast<real_t>(-2.984117),
224 },
225 },
226 {
227 .symbol = "At",
228 .radius = static_cast<real_t>(1.47),
229 .mass = static_cast<real_t>(210.0),
230 .form_factors =
231 {
232 static_cast<real_t>(16.011461),
233 static_cast<real_t>(0.092639),
234 static_cast<real_t>(32.615547),
235 static_cast<real_t>(0.904416),
236 static_cast<real_t>(8.113899),
237 static_cast<real_t>(26.543257),
238 static_cast<real_t>(2.884082),
239 static_cast<real_t>(68.372963),
240 static_cast<real_t>(3.995684),
241 },
242 },
243 {
244 .symbol = "Au",
245 .radius = static_cast<real_t>(1.24),
246 .mass = static_cast<real_t>(196.97),
247 .form_factors =
248 {
249 static_cast<real_t>(16.77739),
250 static_cast<real_t>(0.122737),
251 static_cast<real_t>(19.317156),
252 static_cast<real_t>(8.62157),
253 static_cast<real_t>(32.979683),
254 static_cast<real_t>(1.256902),
255 static_cast<real_t>(5.595453),
256 static_cast<real_t>(38.00882),
257 static_cast<real_t>(-6.279078),
258 },
259 },
260 {
261 .symbol = "B",
262 .radius = static_cast<real_t>(0.85),
263 .mass = static_cast<real_t>(10.81),
264 .form_factors =
265 {
266 static_cast<real_t>(2.085185),
267 static_cast<real_t>(23.494068),
268 static_cast<real_t>(1.06458),
269 static_cast<real_t>(1.137894),
270 static_cast<real_t>(1.062788),
271 static_cast<real_t>(61.238976),
272 static_cast<real_t>(0.140515),
273 static_cast<real_t>(0.114886),
274 static_cast<real_t>(0.003823),
275 },
276 },
277 {
278 .symbol = "Ba",
279 .radius = static_cast<real_t>(1.96),
280 .mass = static_cast<real_t>(137.33),
281 .form_factors =
282 {
283 static_cast<real_t>(19.747343),
284 static_cast<real_t>(3.481823),
285 static_cast<real_t>(17.368477),
286 static_cast<real_t>(0.371224),
287 static_cast<real_t>(10.465718),
288 static_cast<real_t>(21.226641),
289 static_cast<real_t>(2.592602),
290 static_cast<real_t>(173.83427),
291 static_cast<real_t>(-5.183497),
292 },
293 },
294 {
295 .symbol = "Be",
296 .radius = static_cast<real_t>(1.02),
297 .mass = static_cast<real_t>(9.0122),
298 .form_factors =
299 {
300 static_cast<real_t>(1.533712),
301 static_cast<real_t>(42.662079),
302 static_cast<real_t>(0.638283),
303 static_cast<real_t>(0.59542),
304 static_cast<real_t>(0.601052),
305 static_cast<real_t>(99.106499),
306 static_cast<real_t>(0.106139),
307 static_cast<real_t>(0.15134),
308 static_cast<real_t>(0.002511),
309 },
310 },
311 {
312 .symbol = "Bi",
313 .radius = static_cast<real_t>(1.51),
314 .mass = static_cast<real_t>(208.98),
315 .form_factors =
316 {
317 static_cast<real_t>(16.282274),
318 static_cast<real_t>(0.10118),
319 static_cast<real_t>(32.725136),
320 static_cast<real_t>(1.002287),
321 static_cast<real_t>(6.678302),
322 static_cast<real_t>(25.714146),
323 static_cast<real_t>(2.69475),
324 static_cast<real_t>(77.057549),
325 static_cast<real_t>(4.040914),
326 },
327 },
328 {
329 .symbol = "Bk",
330 .radius = static_cast<real_t>(1.68),
331 .mass = static_cast<real_t>(247.0),
332 .form_factors =
333 {
334 static_cast<real_t>(15.889072),
335 static_cast<real_t>(0.055503),
336 static_cast<real_t>(33.625286),
337 static_cast<real_t>(0.569571),
338 static_cast<real_t>(24.710381),
339 static_cast<real_t>(3.615472),
340 static_cast<real_t>(3.707139),
341 static_cast<real_t>(97.694786),
342 static_cast<real_t>(3.213169),
343 },
344 },
345 {
346 .symbol = "Br",
347 .radius = static_cast<real_t>(1.14),
348 .mass = static_cast<real_t>(79.904),
349 .form_factors =
350 {
351 static_cast<real_t>(17.55057),
352 static_cast<real_t>(2.119226),
353 static_cast<real_t>(5.411882),
354 static_cast<real_t>(16.557184),
355 static_cast<real_t>(3.93718),
356 static_cast<real_t>(0.002481),
357 static_cast<real_t>(3.880645),
358 static_cast<real_t>(42.164009),
359 static_cast<real_t>(-2.492088),
360 },
361 },
362 {
363 .symbol = "C",
364 .radius = static_cast<real_t>(0.75),
365 .mass = static_cast<real_t>(12.011),
366 .form_factors =
367 {
368 static_cast<real_t>(2.657506),
369 static_cast<real_t>(14.780758),
370 static_cast<real_t>(1.078079),
371 static_cast<real_t>(0.776775),
372 static_cast<real_t>(1.490909),
373 static_cast<real_t>(42.086842),
374 static_cast<real_t>(-4.24107),
375 static_cast<real_t>(-0.000294),
376 static_cast<real_t>(4.297983),
377 },
378 },
379 {
380 .symbol = "Ca",
381 .radius = static_cast<real_t>(1.71),
382 .mass = static_cast<real_t>(40.078),
383 .form_factors =
384 {
385 static_cast<real_t>(8.593655),
386 static_cast<real_t>(10.460644),
387 static_cast<real_t>(1.477324),
388 static_cast<real_t>(0.041891),
389 static_cast<real_t>(1.436254),
390 static_cast<real_t>(81.390381),
391 static_cast<real_t>(1.182839),
392 static_cast<real_t>(169.84784),
393 static_cast<real_t>(0.196255),
394 },
395 },
396 {
397 .symbol = "Cd",
398 .radius = static_cast<real_t>(1.36),
399 .mass = static_cast<real_t>(112.41),
400 .form_factors =
401 {
402 static_cast<real_t>(6.080986),
403 static_cast<real_t>(0.04899),
404 static_cast<real_t>(18.019468),
405 static_cast<real_t>(7.273646),
406 static_cast<real_t>(4.018197),
407 static_cast<real_t>(29.119284),
408 static_cast<real_t>(1.30351),
409 static_cast<real_t>(95.831207),
410 static_cast<real_t>(0.603504),
411 },
412 },
413 {
414 .symbol = "Ce",
415 .radius = static_cast<real_t>(1.63),
416 .mass = static_cast<real_t>(140.12),
417 .form_factors =
418 {
419 static_cast<real_t>(17.355122),
420 static_cast<real_t>(0.328369),
421 static_cast<real_t>(43.988499),
422 static_cast<real_t>(0.002047),
423 static_cast<real_t>(20.54665),
424 static_cast<real_t>(3.088196),
425 static_cast<real_t>(3.13067),
426 static_cast<real_t>(134.90765),
427 static_cast<real_t>(-38.386017),
428 },
429 },
430 {
431 .symbol = "Cf",
432 .radius = static_cast<real_t>(1.68),
433 .mass = static_cast<real_t>(251.0),
434 .form_factors =
435 {
436 static_cast<real_t>(33.794075),
437 static_cast<real_t>(0.550447),
438 static_cast<real_t>(25.467693),
439 static_cast<real_t>(3.581973),
440 static_cast<real_t>(16.048487),
441 static_cast<real_t>(14.357388),
442 static_cast<real_t>(3.657525),
443 static_cast<real_t>(96.064972),
444 static_cast<real_t>(3.005326),
445 },
446 },
447 {
448 .symbol = "Cl",
449 .radius = static_cast<real_t>(0.99),
450 .mass = static_cast<real_t>(35.45),
451 .form_factors =
452 {
453 static_cast<real_t>(1.446071),
454 static_cast<real_t>(0.052357),
455 static_cast<real_t>(6.870609),
456 static_cast<real_t>(1.193165),
457 static_cast<real_t>(6.151801),
458 static_cast<real_t>(18.343416),
459 static_cast<real_t>(1.750347),
460 static_cast<real_t>(46.398396),
461 static_cast<real_t>(0.146773),
462 },
463 },
464 {
465 .symbol = "Cm",
466 .radius = static_cast<real_t>(1.66),
467 .mass = static_cast<real_t>(247.0),
468 .form_factors =
469 {
470 static_cast<real_t>(15.804837),
471 static_cast<real_t>(0.058619),
472 static_cast<real_t>(33.480801),
473 static_cast<real_t>(0.59016),
474 static_cast<real_t>(24.150198),
475 static_cast<real_t>(3.67472),
476 static_cast<real_t>(3.655563),
477 static_cast<real_t>(100.73619),
478 static_cast<real_t>(3.39084),
479 },
480 },
481 {
482 .symbol = "Co",
483 .radius = static_cast<real_t>(1.11),
484 .mass = static_cast<real_t>(58.933),
485 .form_factors =
486 {
487 static_cast<real_t>(12.91451),
488 static_cast<real_t>(4.507138),
489 static_cast<real_t>(2.481908),
490 static_cast<real_t>(0.009126),
491 static_cast<real_t>(3.466894),
492 static_cast<real_t>(16.438129),
493 static_cast<real_t>(2.106351),
494 static_cast<real_t>(76.98732),
495 static_cast<real_t>(-0.936572),
496 },
497 },
498 {
499 .symbol = "Cr",
500 .radius = static_cast<real_t>(1.22),
501 .mass = static_cast<real_t>(51.996),
502 .form_factors =
503 {
504 static_cast<real_t>(11.007069),
505 static_cast<real_t>(6.366281),
506 static_cast<real_t>(1.555477),
507 static_cast<real_t>(0.023987),
508 static_cast<real_t>(2.985293),
509 static_cast<real_t>(23.244839),
510 static_cast<real_t>(1.347855),
511 static_cast<real_t>(105.7745),
512 static_cast<real_t>(0.06551),
513 },
514 },
515 {
516 .symbol = "Cs",
517 .radius = static_cast<real_t>(2.32),
518 .mass = static_cast<real_t>(132.91),
519 .form_factors =
520 {
521 static_cast<real_t>(17.418674),
522 static_cast<real_t>(0.399828),
523 static_cast<real_t>(8.314444),
524 static_cast<real_t>(0.016872),
525 static_cast<real_t>(10.323193),
526 static_cast<real_t>(25.605827),
527 static_cast<real_t>(1.383834),
528 static_cast<real_t>(233.33968),
529 static_cast<real_t>(-2.322802),
530 },
531 },
532 {
533 .symbol = "Cu",
534 .radius = static_cast<real_t>(1.12),
535 .mass = static_cast<real_t>(63.546),
536 .form_factors =
537 {
538 static_cast<real_t>(14.014192),
539 static_cast<real_t>(3.73828),
540 static_cast<real_t>(4.784577),
541 static_cast<real_t>(0.003744),
542 static_cast<real_t>(5.056806),
543 static_cast<real_t>(13.034982),
544 static_cast<real_t>(1.457971),
545 static_cast<real_t>(72.554794),
546 static_cast<real_t>(-3.254477),
547 },
548 },
549 {
550 .symbol = "Dy",
551 .radius = static_cast<real_t>(1.67),
552 .mass = static_cast<real_t>(162.50),
553 .form_factors =
554 {
555 static_cast<real_t>(26.671785),
556 static_cast<real_t>(2.282593),
557 static_cast<real_t>(88.687576),
558 static_cast<real_t>(0.000665),
559 static_cast<real_t>(14.065445),
560 static_cast<real_t>(12.92023),
561 static_cast<real_t>(2.768497),
562 static_cast<real_t>(121.93719),
563 static_cast<real_t>(-83.279831),
564 },
565 },
566 {
567 .symbol = "Er",
568 .radius = static_cast<real_t>(1.65),
569 .mass = static_cast<real_t>(167.26),
570 .form_factors =
571 {
572 static_cast<real_t>(28.174887),
573 static_cast<real_t>(2.120995),
574 static_cast<real_t>(82.493271),
575 static_cast<real_t>(0.00064),
576 static_cast<real_t>(14.624002),
577 static_cast<real_t>(11.915256),
578 static_cast<real_t>(2.802756),
579 static_cast<real_t>(114.52994),
580 static_cast<real_t>(-77.135223),
581 },
582 },
583 {
584 .symbol = "Eu",
585 .radius = static_cast<real_t>(1.68),
586 .mass = static_cast<real_t>(151.96),
587 .form_factors =
588 {
589 static_cast<real_t>(17.186195),
590 static_cast<real_t>(0.261678),
591 static_cast<real_t>(37.156837),
592 static_cast<real_t>(0.001995),
593 static_cast<real_t>(13.103387),
594 static_cast<real_t>(14.78736),
595 static_cast<real_t>(2.707246),
596 static_cast<real_t>(134.8163),
597 static_cast<real_t>(-31.586687),
598 },
599 },
600 {
601 .symbol = "F",
602 .radius = static_cast<real_t>(0.64),
603 .mass = static_cast<real_t>(18.998),
604 .form_factors =
605 {
606 static_cast<real_t>(3.511943),
607 static_cast<real_t>(10.687859),
608 static_cast<real_t>(2.772244),
609 static_cast<real_t>(4.380466),
610 static_cast<real_t>(0.678385),
611 static_cast<real_t>(0.093982),
612 static_cast<real_t>(0.915159),
613 static_cast<real_t>(27.255203),
614 static_cast<real_t>(0.032557),
615 },
616 },
617 {
618 .symbol = "Fe",
619 .radius = static_cast<real_t>(1.16),
620 .mass = static_cast<real_t>(55.845),
621 .form_factors =
622 {
623 static_cast<real_t>(12.311098),
624 static_cast<real_t>(5.009415),
625 static_cast<real_t>(1.876623),
626 static_cast<real_t>(0.014461),
627 static_cast<real_t>(3.066177),
628 static_cast<real_t>(18.74304),
629 static_cast<real_t>(2.070451),
630 static_cast<real_t>(82.767876),
631 static_cast<real_t>(-0.304931),
632 },
633 },
634 {
635 .symbol = "Fr",
636 .radius = static_cast<real_t>(2.23),
637 .mass = static_cast<real_t>(223.0),
638 .form_factors =
639 {
640 static_cast<real_t>(16.007385),
641 static_cast<real_t>(0.087031),
642 static_cast<real_t>(32.66383),
643 static_cast<real_t>(0.840187),
644 static_cast<real_t>(21.594351),
645 static_cast<real_t>(4.954467),
646 static_cast<real_t>(1.598497),
647 static_cast<real_t>(199.8058),
648 static_cast<real_t>(4.003472),
649 },
650 },
651 {
652 .symbol = "Ga",
653 .radius = static_cast<real_t>(1.24),
654 .mass = static_cast<real_t>(69.723),
655 .form_factors =
656 {
657 static_cast<real_t>(15.758946),
658 static_cast<real_t>(3.121754),
659 static_cast<real_t>(6.841123),
660 static_cast<real_t>(0.226057),
661 static_cast<real_t>(4.121016),
662 static_cast<real_t>(12.482196),
663 static_cast<real_t>(2.714681),
664 static_cast<real_t>(66.203621),
665 static_cast<real_t>(-0.847395),
666 },
667 },
668 {
669 .symbol = "Gd",
670 .radius = static_cast<real_t>(1.69),
671 .mass = static_cast<real_t>(157.25),
672 .form_factors =
673 {
674 static_cast<real_t>(24.898117),
675 static_cast<real_t>(2.435028),
676 static_cast<real_t>(17.104952),
677 static_cast<real_t>(0.246961),
678 static_cast<real_t>(13.222581),
679 static_cast<real_t>(13.996325),
680 static_cast<real_t>(3.266152),
681 static_cast<real_t>(110.86309),
682 static_cast<real_t>(-43.505684),
683 },
684 },
685 {
686 .symbol = "Ge",
687 .radius = static_cast<real_t>(1.21),
688 .mass = static_cast<real_t>(72.630),
689 .form_factors =
690 {
691 static_cast<real_t>(16.540613),
692 static_cast<real_t>(2.866618),
693 static_cast<real_t>(1.5679),
694 static_cast<real_t>(0.012198),
695 static_cast<real_t>(3.727829),
696 static_cast<real_t>(13.432163),
697 static_cast<real_t>(3.345098),
698 static_cast<real_t>(58.866047),
699 static_cast<real_t>(0.018726),
700 },
701 },
702 {
703 .symbol = "H",
704 .radius = static_cast<real_t>(0.32),
705 .mass = static_cast<real_t>(1.008),
706 .form_factors =
707 {
708 static_cast<real_t>(0.413048),
709 static_cast<real_t>(15.569946),
710 static_cast<real_t>(0.294953),
711 static_cast<real_t>(32.398468),
712 static_cast<real_t>(0.187491),
713 static_cast<real_t>(5.711404),
714 static_cast<real_t>(0.080701),
715 static_cast<real_t>(61.889874),
716 static_cast<real_t>(4.9e-05),
717 },
718 },
719 {
720 .symbol = "He",
721 .radius = static_cast<real_t>(0.46),
722 .mass = static_cast<real_t>(4.0026),
723 .form_factors =
724 {
725 static_cast<real_t>(0.732354),
726 static_cast<real_t>(11.553918),
727 static_cast<real_t>(0.753896),
728 static_cast<real_t>(4.595831),
729 static_cast<real_t>(0.283819),
730 static_cast<real_t>(1.546299),
731 static_cast<real_t>(0.190003),
732 static_cast<real_t>(26.463964),
733 static_cast<real_t>(0.000487),
734 },
735 },
736 {
737 .symbol = "Hf",
738 .radius = static_cast<real_t>(1.52),
739 .mass = static_cast<real_t>(178.49),
740 .form_factors =
741 {
742 static_cast<real_t>(30.617033),
743 static_cast<real_t>(1.795613),
744 static_cast<real_t>(15.145351),
745 static_cast<real_t>(9.934469),
746 static_cast<real_t>(54.933548),
747 static_cast<real_t>(0.000739),
748 static_cast<real_t>(4.096253),
749 static_cast<real_t>(76.189705),
750 static_cast<real_t>(-49.719837),
751 },
752 },
753 {
754 .symbol = "Hg",
755 .radius = static_cast<real_t>(1.33),
756 .mass = static_cast<real_t>(200.59),
757 .form_factors =
758 {
759 static_cast<real_t>(16.83989),
760 static_cast<real_t>(0.115905),
761 static_cast<real_t>(20.023823),
762 static_cast<real_t>(8.256927),
763 static_cast<real_t>(28.428564),
764 static_cast<real_t>(1.19525),
765 static_cast<real_t>(5.881564),
766 static_cast<real_t>(39.247227),
767 static_cast<real_t>(4.076478),
768 },
769 },
770 {
771 .symbol = "Ho",
772 .radius = static_cast<real_t>(1.66),
773 .mass = static_cast<real_t>(164.93),
774 .form_factors =
775 {
776 static_cast<real_t>(27.15019),
777 static_cast<real_t>(2.16966),
778 static_cast<real_t>(16.999819),
779 static_cast<real_t>(0.215414),
780 static_cast<real_t>(14.059334),
781 static_cast<real_t>(12.213148),
782 static_cast<real_t>(3.386979),
783 static_cast<real_t>(100.50678),
784 static_cast<real_t>(-41.165253),
785 },
786 },
787 {
788 .symbol = "I",
789 .radius = static_cast<real_t>(1.33),
790 .mass = static_cast<real_t>(126.90),
791 .form_factors =
792 {
793 static_cast<real_t>(19.884502),
794 static_cast<real_t>(4.628591),
795 static_cast<real_t>(6.736593),
796 static_cast<real_t>(0.027754),
797 static_cast<real_t>(8.110516),
798 static_cast<real_t>(31.849096),
799 static_cast<real_t>(1.170953),
800 static_cast<real_t>(84.406387),
801 static_cast<real_t>(-0.448811),
802 },
803 },
804 {
805 .symbol = "In",
806 .radius = static_cast<real_t>(1.42),
807 .mass = static_cast<real_t>(114.82),
808 .form_factors =
809 {
810 static_cast<real_t>(6.196477),
811 static_cast<real_t>(0.042072),
812 static_cast<real_t>(18.816183),
813 static_cast<real_t>(6.695665),
814 static_cast<real_t>(4.050479),
815 static_cast<real_t>(31.00979),
816 static_cast<real_t>(1.638929),
817 static_cast<real_t>(103.28435),
818 static_cast<real_t>(0.333097),
819 },
820 },
821 {
822 .symbol = "Ir",
823 .radius = static_cast<real_t>(1.22),
824 .mass = static_cast<real_t>(192.22),
825 .form_factors =
826 {
827 static_cast<real_t>(32.004436),
828 static_cast<real_t>(1.353767),
829 static_cast<real_t>(1.975454),
830 static_cast<real_t>(81.014175),
831 static_cast<real_t>(17.070105),
832 static_cast<real_t>(0.128093),
833 static_cast<real_t>(15.939454),
834 static_cast<real_t>(7.661196),
835 static_cast<real_t>(4.018893),
836 },
837 },
838 {
839 .symbol = "K",
840 .radius = static_cast<real_t>(1.96),
841 .mass = static_cast<real_t>(39.098),
842 .form_factors =
843 {
844 static_cast<real_t>(8.163991),
845 static_cast<real_t>(12.816323),
846 static_cast<real_t>(7.146945),
847 static_cast<real_t>(0.808945),
848 static_cast<real_t>(1.07014),
849 static_cast<real_t>(210.32701),
850 static_cast<real_t>(0.877316),
851 static_cast<real_t>(39.597652),
852 static_cast<real_t>(0.253614),
853 },
854 },
855 {
856 .symbol = "Kr",
857 .radius = static_cast<real_t>(1.17),
858 .mass = static_cast<real_t>(83.798),
859 .form_factors =
860 {
861 static_cast<real_t>(17.655279),
862 static_cast<real_t>(1.908231),
863 static_cast<real_t>(6.848105),
864 static_cast<real_t>(16.606236),
865 static_cast<real_t>(4.171004),
866 static_cast<real_t>(0.001598),
867 static_cast<real_t>(3.44676),
868 static_cast<real_t>(39.917473),
869 static_cast<real_t>(-2.810592),
870 },
871 },
872 {
873 .symbol = "La",
874 .radius = static_cast<real_t>(1.80),
875 .mass = static_cast<real_t>(138.91),
876 .form_factors =
877 {
878 static_cast<real_t>(19.966019),
879 static_cast<real_t>(3.197408),
880 static_cast<real_t>(27.329655),
881 static_cast<real_t>(0.003446),
882 static_cast<real_t>(11.018425),
883 static_cast<real_t>(19.955492),
884 static_cast<real_t>(3.086696),
885 static_cast<real_t>(141.38197),
886 static_cast<real_t>(-21.745489),
887 },
888 },
889 {
890 .symbol = "Li",
891 .radius = static_cast<real_t>(1.33),
892 .mass = static_cast<real_t>(6.94),
893 .form_factors =
894 {
895 static_cast<real_t>(0.974637),
896 static_cast<real_t>(4.334946),
897 static_cast<real_t>(0.158472),
898 static_cast<real_t>(0.342451),
899 static_cast<real_t>(0.811855),
900 static_cast<real_t>(97.102966),
901 static_cast<real_t>(0.262416),
902 static_cast<real_t>(201.36383),
903 static_cast<real_t>(0.002542),
904 },
905 },
906 {
907 .symbol = "Lu",
908 .radius = static_cast<real_t>(1.62),
909 .mass = static_cast<real_t>(174.97),
910 .form_factors =
911 {
912 static_cast<real_t>(30.122866),
913 static_cast<real_t>(1.88309),
914 static_cast<real_t>(15.099346),
915 static_cast<real_t>(10.342764),
916 static_cast<real_t>(56.314899),
917 static_cast<real_t>(0.00078),
918 static_cast<real_t>(3.54098),
919 static_cast<real_t>(89.55925),
920 static_cast<real_t>(-51.049416),
921 },
922 },
923 {
924 .symbol = "Mg",
925 .radius = static_cast<real_t>(1.39),
926 .mass = static_cast<real_t>(24.305),
927 .form_factors =
928 {
929 static_cast<real_t>(4.708971),
930 static_cast<real_t>(4.875207),
931 static_cast<real_t>(1.194814),
932 static_cast<real_t>(108.50608),
933 static_cast<real_t>(1.558157),
934 static_cast<real_t>(0.111516),
935 static_cast<real_t>(1.170413),
936 static_cast<real_t>(48.292408),
937 static_cast<real_t>(0.126842),
938 },
939 },
940 {
941 .symbol = "Mn",
942 .radius = static_cast<real_t>(1.19),
943 .mass = static_cast<real_t>(54.938),
944 .form_factors =
945 {
946 static_cast<real_t>(11.709542),
947 static_cast<real_t>(5.59712),
948 static_cast<real_t>(1.733414),
949 static_cast<real_t>(0.0178),
950 static_cast<real_t>(2.673141),
951 static_cast<real_t>(21.78842),
952 static_cast<real_t>(2.023368),
953 static_cast<real_t>(89.517914),
954 static_cast<real_t>(-0.147293),
955 },
956 },
957 {
958 .symbol = "Mo",
959 .radius = static_cast<real_t>(1.38),
960 .mass = static_cast<real_t>(95.95),
961 .form_factors =
962 {
963 static_cast<real_t>(6.236218),
964 static_cast<real_t>(0.09078),
965 static_cast<real_t>(17.987711),
966 static_cast<real_t>(1.10831),
967 static_cast<real_t>(12.973127),
968 static_cast<real_t>(11.46872),
969 static_cast<real_t>(3.451426),
970 static_cast<real_t>(66.684151),
971 static_cast<real_t>(1.10877),
972 },
973 },
974 {
975 .symbol = "N",
976 .radius = static_cast<real_t>(0.71),
977 .mass = static_cast<real_t>(14.007),
978 .form_factors =
979 {
980 static_cast<real_t>(11.89378),
981 static_cast<real_t>(0.000158),
982 static_cast<real_t>(3.277479),
983 static_cast<real_t>(10.232723),
984 static_cast<real_t>(1.858092),
985 static_cast<real_t>(30.34469),
986 static_cast<real_t>(0.858927),
987 static_cast<real_t>(0.656065),
988 static_cast<real_t>(-11.804902),
989 },
990 },
991 {
992 .symbol = "Na",
993 .radius = static_cast<real_t>(1.55),
994 .mass = static_cast<real_t>(22.990),
995 .form_factors =
996 {
997 static_cast<real_t>(4.910127),
998 static_cast<real_t>(3.281434),
999 static_cast<real_t>(3.081783),
1000 static_cast<real_t>(9.119178),
1001 static_cast<real_t>(1.262067),
1002 static_cast<real_t>(0.102763),
1003 static_cast<real_t>(1.098938),
1004 static_cast<real_t>(132.01395),
1005 static_cast<real_t>(0.079712),
1006 },
1007 },
1008 {
1009 .symbol = "Nb",
1010 .radius = static_cast<real_t>(1.47),
1011 .mass = static_cast<real_t>(92.906),
1012 .form_factors =
1013 {
1014 static_cast<real_t>(17.958399),
1015 static_cast<real_t>(1.21159),
1016 static_cast<real_t>(12.063054),
1017 static_cast<real_t>(12.246687),
1018 static_cast<real_t>(5.007015),
1019 static_cast<real_t>(0.098615),
1020 static_cast<real_t>(3.287667),
1021 static_cast<real_t>(75.011948),
1022 static_cast<real_t>(1.123452),
1023 },
1024 },
1025 {
1026 .symbol = "Nd",
1027 .radius = static_cast<real_t>(1.74),
1028 .mass = static_cast<real_t>(144.24),
1029 .form_factors =
1030 {
1031 static_cast<real_t>(17.331244),
1032 static_cast<real_t>(0.300269),
1033 static_cast<real_t>(62.783924),
1034 static_cast<real_t>(0.00132),
1035 static_cast<real_t>(12.160097),
1036 static_cast<real_t>(17.026001),
1037 static_cast<real_t>(2.663483),
1038 static_cast<real_t>(148.74899),
1039 static_cast<real_t>(-57.189842),
1040 },
1041 },
1042 {
1043 .symbol = "Ne",
1044 .radius = static_cast<real_t>(0.67),
1045 .mass = static_cast<real_t>(20.180),
1046 .form_factors =
1047 {
1048 static_cast<real_t>(4.183749),
1049 static_cast<real_t>(8.175457),
1050 static_cast<real_t>(2.905726),
1051 static_cast<real_t>(3.252536),
1052 static_cast<real_t>(0.520513),
1053 static_cast<real_t>(0.063295),
1054 static_cast<real_t>(1.135641),
1055 static_cast<real_t>(21.81391),
1056 static_cast<real_t>(0.025576),
1057 },
1058 },
1059 {
1060 .symbol = "Ni",
1061 .radius = static_cast<real_t>(1.10),
1062 .mass = static_cast<real_t>(58.693),
1063 .form_factors =
1064 {
1065 static_cast<real_t>(13.521865),
1066 static_cast<real_t>(4.077277),
1067 static_cast<real_t>(6.947285),
1068 static_cast<real_t>(0.286763),
1069 static_cast<real_t>(3.866028),
1070 static_cast<real_t>(14.622634),
1071 static_cast<real_t>(2.1359),
1072 static_cast<real_t>(71.96608),
1073 static_cast<real_t>(-2.762697),
1074 },
1075 },
1076 {
1077 .symbol = "Np",
1078 .radius = static_cast<real_t>(1.71),
1079 .mass = static_cast<real_t>(237.0),
1080 .form_factors =
1081 {
1082 static_cast<real_t>(32.999901),
1083 static_cast<real_t>(0.657086),
1084 static_cast<real_t>(22.638077),
1085 static_cast<real_t>(3.854918),
1086 static_cast<real_t>(14.219973),
1087 static_cast<real_t>(17.435474),
1088 static_cast<real_t>(3.67295),
1089 static_cast<real_t>(109.46448),
1090 static_cast<real_t>(3.769391),
1091 },
1092 },
1093 {
1094 .symbol = "O",
1095 .radius = static_cast<real_t>(0.63),
1096 .mass = static_cast<real_t>(15.999),
1097 .form_factors =
1098 {
1099 static_cast<real_t>(2.960427),
1100 static_cast<real_t>(14.182259),
1101 static_cast<real_t>(2.508818),
1102 static_cast<real_t>(5.936858),
1103 static_cast<real_t>(0.637853),
1104 static_cast<real_t>(0.112726),
1105 static_cast<real_t>(0.722838),
1106 static_cast<real_t>(34.958481),
1107 static_cast<real_t>(0.027014),
1108 },
1109 },
1110 {
1111 .symbol = "Os",
1112 .radius = static_cast<real_t>(1.29),
1113 .mass = static_cast<real_t>(190.23),
1114 .form_factors =
1115 {
1116 static_cast<real_t>(32.210297),
1117 static_cast<real_t>(1.473531),
1118 static_cast<real_t>(16.67844),
1119 static_cast<real_t>(9.049695),
1120 static_cast<real_t>(48.559906),
1121 static_cast<real_t>(0.000519),
1122 static_cast<real_t>(5.455839),
1123 static_cast<real_t>(50.210201),
1124 static_cast<real_t>(-43.677956),
1125 },
1126 },
1127 {
1128 .symbol = "P",
1129 .radius = static_cast<real_t>(1.11),
1130 .mass = static_cast<real_t>(30.974),
1131 .form_factors =
1132 {
1133 static_cast<real_t>(1.950541),
1134 static_cast<real_t>(0.908139),
1135 static_cast<real_t>(4.14693),
1136 static_cast<real_t>(27.044952),
1137 static_cast<real_t>(1.49456),
1138 static_cast<real_t>(0.07128),
1139 static_cast<real_t>(1.522042),
1140 static_cast<real_t>(67.520187),
1141 static_cast<real_t>(0.155233),
1142 },
1143 },
1144 {
1145 .symbol = "Pa",
1146 .radius = static_cast<real_t>(1.69),
1147 .mass = static_cast<real_t>(231.04),
1148 .form_factors =
1149 {
1150 static_cast<real_t>(32.740208),
1151 static_cast<real_t>(0.709545),
1152 static_cast<real_t>(21.973675),
1153 static_cast<real_t>(4.050881),
1154 static_cast<real_t>(12.957398),
1155 static_cast<real_t>(19.231543),
1156 static_cast<real_t>(3.683832),
1157 static_cast<real_t>(117.255),
1158 static_cast<real_t>(3.886066),
1159 },
1160 },
1161 {
1162 .symbol = "Pb",
1163 .radius = static_cast<real_t>(1.44),
1164 .mass = static_cast<real_t>(207.2),
1165 .form_factors =
1166 {
1167 static_cast<real_t>(16.419567),
1168 static_cast<real_t>(0.105499),
1169 static_cast<real_t>(32.73859),
1170 static_cast<real_t>(1.055049),
1171 static_cast<real_t>(6.530247),
1172 static_cast<real_t>(25.02589),
1173 static_cast<real_t>(2.342742),
1174 static_cast<real_t>(80.906593),
1175 static_cast<real_t>(4.049824),
1176 },
1177 },
1178 {
1179 .symbol = "Pd",
1180 .radius = static_cast<real_t>(1.20),
1181 .mass = static_cast<real_t>(106.42),
1182 .form_factors =
1183 {
1184 static_cast<real_t>(6.121511),
1185 static_cast<real_t>(0.062549),
1186 static_cast<real_t>(4.784063),
1187 static_cast<real_t>(0.784031),
1188 static_cast<real_t>(16.631683),
1189 static_cast<real_t>(8.751391),
1190 static_cast<real_t>(4.318258),
1191 static_cast<real_t>(34.489983),
1192 static_cast<real_t>(0.883099),
1193 },
1194 },
1195 {
1196 .symbol = "Pm",
1197 .radius = static_cast<real_t>(1.73),
1198 .mass = static_cast<real_t>(145.0),
1199 .form_factors =
1200 {
1201 static_cast<real_t>(17.286388),
1202 static_cast<real_t>(0.28662),
1203 static_cast<real_t>(51.560162),
1204 static_cast<real_t>(0.00155),
1205 static_cast<real_t>(12.478557),
1206 static_cast<real_t>(16.223755),
1207 static_cast<real_t>(2.675515),
1208 static_cast<real_t>(143.98451),
1209 static_cast<real_t>(-45.973682),
1210 },
1211 },
1212 {
1213 .symbol = "Po",
1214 .radius = static_cast<real_t>(1.45),
1215 .mass = static_cast<real_t>(209.0),
1216 .form_factors =
1217 {
1218 static_cast<real_t>(16.289164),
1219 static_cast<real_t>(0.098121),
1220 static_cast<real_t>(32.807171),
1221 static_cast<real_t>(0.966265),
1222 static_cast<real_t>(21.095163),
1223 static_cast<real_t>(6.046622),
1224 static_cast<real_t>(2.505901),
1225 static_cast<real_t>(76.598068),
1226 static_cast<real_t>(4.046556),
1227 },
1228 },
1229 {
1230 .symbol = "Pr",
1231 .radius = static_cast<real_t>(1.76),
1232 .mass = static_cast<real_t>(140.91),
1233 .form_factors =
1234 {
1235 static_cast<real_t>(21.551311),
1236 static_cast<real_t>(2.995675),
1237 static_cast<real_t>(17.16173),
1238 static_cast<real_t>(0.312491),
1239 static_cast<real_t>(11.903859),
1240 static_cast<real_t>(17.716705),
1241 static_cast<real_t>(2.679103),
1242 static_cast<real_t>(152.19282),
1243 static_cast<real_t>(-3.871068),
1244 },
1245 },
1246 {
1247 .symbol = "Pt",
1248 .radius = static_cast<real_t>(1.23),
1249 .mass = static_cast<real_t>(195.08),
1250 .form_factors =
1251 {
1252 static_cast<real_t>(31.273891),
1253 static_cast<real_t>(1.316992),
1254 static_cast<real_t>(18.44544),
1255 static_cast<real_t>(8.797154),
1256 static_cast<real_t>(17.063745),
1257 static_cast<real_t>(0.124741),
1258 static_cast<real_t>(5.555933),
1259 static_cast<real_t>(40.177994),
1260 static_cast<real_t>(4.050394),
1261 },
1262 },
1263 {
1264 .symbol = "Pu",
1265 .radius = static_cast<real_t>(1.72),
1266 .mass = static_cast<real_t>(244.0),
1267 .form_factors =
1268 {
1269 static_cast<real_t>(33.281178),
1270 static_cast<real_t>(0.634999),
1271 static_cast<real_t>(23.148544),
1272 static_cast<real_t>(3.856168),
1273 static_cast<real_t>(15.153755),
1274 static_cast<real_t>(16.849735),
1275 static_cast<real_t>(3.031492),
1276 static_cast<real_t>(121.29204),
1277 static_cast<real_t>(3.6642),
1278 },
1279 },
1280 {
1281 .symbol = "Ra",
1282 .radius = static_cast<real_t>(2.01),
1283 .mass = static_cast<real_t>(226.0),
1284 .form_factors =
1285 {
1286 static_cast<real_t>(32.56369),
1287 static_cast<real_t>(0.80198),
1288 static_cast<real_t>(21.396671),
1289 static_cast<real_t>(4.590666),
1290 static_cast<real_t>(11.298093),
1291 static_cast<real_t>(22.758972),
1292 static_cast<real_t>(2.834688),
1293 static_cast<real_t>(160.40439),
1294 static_cast<real_t>(3.981773),
1295 },
1296 },
1297 {
1298 .symbol = "Rb",
1299 .radius = static_cast<real_t>(2.10),
1300 .mass = static_cast<real_t>(85.468),
1301 .form_factors =
1302 {
1303 static_cast<real_t>(8.123134),
1304 static_cast<real_t>(15.142385),
1305 static_cast<real_t>(2.138042),
1306 static_cast<real_t>(33.542667),
1307 static_cast<real_t>(6.761702),
1308 static_cast<real_t>(0.129372),
1309 static_cast<real_t>(1.156051),
1310 static_cast<real_t>(224.13251),
1311 static_cast<real_t>(1.139548),
1312 },
1313 },
1314 {
1315 .symbol = "Re",
1316 .radius = static_cast<real_t>(1.31),
1317 .mass = static_cast<real_t>(186.21),
1318 .form_factors =
1319 {
1320 static_cast<real_t>(31.888456),
1321 static_cast<real_t>(1.549238),
1322 static_cast<real_t>(16.117104),
1323 static_cast<real_t>(9.233474),
1324 static_cast<real_t>(42.390297),
1325 static_cast<real_t>(0.000689),
1326 static_cast<real_t>(5.211669),
1327 static_cast<real_t>(54.516373),
1328 static_cast<real_t>(-37.412682),
1329 },
1330 },
1331 {
1332 .symbol = "Rh",
1333 .radius = static_cast<real_t>(1.25),
1334 .mass = static_cast<real_t>(102.91),
1335 .form_factors =
1336 {
1337 static_cast<real_t>(6.216648),
1338 static_cast<real_t>(0.070789),
1339 static_cast<real_t>(17.919739),
1340 static_cast<real_t>(0.856121),
1341 static_cast<real_t>(3.854252),
1342 static_cast<real_t>(33.889484),
1343 static_cast<real_t>(0.840326),
1344 static_cast<real_t>(121.68669),
1345 static_cast<real_t>(0.995452),
1346 },
1347 },
1348 {
1349 .symbol = "Rn",
1350 .radius = static_cast<real_t>(1.42),
1351 .mass = static_cast<real_t>(222.0),
1352 .form_factors =
1353 {
1354 static_cast<real_t>(16.070229),
1355 static_cast<real_t>(0.090437),
1356 static_cast<real_t>(32.641106),
1357 static_cast<real_t>(0.876409),
1358 static_cast<real_t>(21.489658),
1359 static_cast<real_t>(5.239687),
1360 static_cast<real_t>(2.299218),
1361 static_cast<real_t>(69.188477),
1362 static_cast<real_t>(4.020977),
1363 },
1364 },
1365 {
1366 .symbol = "Ru",
1367 .radius = static_cast<real_t>(1.25),
1368 .mass = static_cast<real_t>(101.07),
1369 .form_factors =
1370 {
1371 static_cast<real_t>(6.271624),
1372 static_cast<real_t>(0.07704),
1373 static_cast<real_t>(17.906738),
1374 static_cast<real_t>(0.928222),
1375 static_cast<real_t>(14.123269),
1376 static_cast<real_t>(9.555345),
1377 static_cast<real_t>(3.746008),
1378 static_cast<real_t>(35.86068),
1379 static_cast<real_t>(1.043992),
1380 },
1381 },
1382 {
1383 .symbol = "S",
1384 .radius = static_cast<real_t>(1.03),
1385 .mass = static_cast<real_t>(32.06),
1386 .form_factors =
1387 {
1388 static_cast<real_t>(6.372157),
1389 static_cast<real_t>(1.514347),
1390 static_cast<real_t>(5.154568),
1391 static_cast<real_t>(22.092527),
1392 static_cast<real_t>(1.473732),
1393 static_cast<real_t>(0.061373),
1394 static_cast<real_t>(1.635073),
1395 static_cast<real_t>(55.445175),
1396 static_cast<real_t>(0.154722),
1397 },
1398 },
1399 {
1400 .symbol = "Sb",
1401 .radius = static_cast<real_t>(1.40),
1402 .mass = static_cast<real_t>(121.76),
1403 .form_factors =
1404 {
1405 static_cast<real_t>(5.394956),
1406 static_cast<real_t>(33.326523),
1407 static_cast<real_t>(6.54957),
1408 static_cast<real_t>(0.030974),
1409 static_cast<real_t>(19.650681),
1410 static_cast<real_t>(5.564929),
1411 static_cast<real_t>(1.82782),
1412 static_cast<real_t>(87.130966),
1413 static_cast<real_t>(-0.290506),
1414 },
1415 },
1416 {
1417 .symbol = "Sc",
1418 .radius = static_cast<real_t>(1.48),
1419 .mass = static_cast<real_t>(44.956),
1420 .form_factors =
1421 {
1422 static_cast<real_t>(1.476566),
1423 static_cast<real_t>(53.131023),
1424 static_cast<real_t>(1.487278),
1425 static_cast<real_t>(0.035325),
1426 static_cast<real_t>(1.600187),
1427 static_cast<real_t>(137.31949),
1428 static_cast<real_t>(9.177463),
1429 static_cast<real_t>(9.098031),
1430 static_cast<real_t>(0.157765),
1431 },
1432 },
1433 {
1434 .symbol = "Se",
1435 .radius = static_cast<real_t>(1.16),
1436 .mass = static_cast<real_t>(78.971),
1437 .form_factors =
1438 {
1439 static_cast<real_t>(17.354071),
1440 static_cast<real_t>(2.349787),
1441 static_cast<real_t>(4.653248),
1442 static_cast<real_t>(0.00255),
1443 static_cast<real_t>(4.259489),
1444 static_cast<real_t>(15.57946),
1445 static_cast<real_t>(4.136455),
1446 static_cast<real_t>(45.181202),
1447 static_cast<real_t>(-3.160982),
1448 },
1449 },
1450 {
1451 .symbol = "Si",
1452 .radius = static_cast<real_t>(1.16),
1453 .mass = static_cast<real_t>(28.085),
1454 .form_factors =
1455 {
1456 static_cast<real_t>(5.275329),
1457 static_cast<real_t>(2.631338),
1458 static_cast<real_t>(3.191038),
1459 static_cast<real_t>(33.730728),
1460 static_cast<real_t>(1.511514),
1461 static_cast<real_t>(0.081119),
1462 static_cast<real_t>(1.356849),
1463 static_cast<real_t>(86.288643),
1464 static_cast<real_t>(0.145073),
1465 },
1466 },
1467 {
1468 .symbol = "Sm",
1469 .radius = static_cast<real_t>(1.72),
1470 .mass = static_cast<real_t>(150.36),
1471 .form_factors =
1472 {
1473 static_cast<real_t>(23.700363),
1474 static_cast<real_t>(2.689539),
1475 static_cast<real_t>(23.072214),
1476 static_cast<real_t>(0.003491),
1477 static_cast<real_t>(12.777782),
1478 static_cast<real_t>(15.495437),
1479 static_cast<real_t>(2.684217),
1480 static_cast<real_t>(139.86247),
1481 static_cast<real_t>(-17.452166),
1482 },
1483 },
1484 {
1485 .symbol = "Sn",
1486 .radius = static_cast<real_t>(1.40),
1487 .mass = static_cast<real_t>(118.71),
1488 .form_factors =
1489 {
1490 static_cast<real_t>(19.325171),
1491 static_cast<real_t>(6.118104),
1492 static_cast<real_t>(6.281571),
1493 static_cast<real_t>(0.036915),
1494 static_cast<real_t>(4.498866),
1495 static_cast<real_t>(32.529045),
1496 static_cast<real_t>(1.856934),
1497 static_cast<real_t>(95.037186),
1498 static_cast<real_t>(0.119024),
1499 },
1500 },
1501 {
1502 .symbol = "Sr",
1503 .radius = static_cast<real_t>(1.85),
1504 .mass = static_cast<real_t>(87.62),
1505 .form_factors =
1506 {
1507 static_cast<real_t>(17.730219),
1508 static_cast<real_t>(1.56306),
1509 static_cast<real_t>(9.795867),
1510 static_cast<real_t>(14.310868),
1511 static_cast<real_t>(6.099763),
1512 static_cast<real_t>(0.120574),
1513 static_cast<real_t>(2.620025),
1514 static_cast<real_t>(135.77132),
1515 static_cast<real_t>(1.140251),
1516 },
1517 },
1518 {
1519 .symbol = "Ta",
1520 .radius = static_cast<real_t>(1.46),
1521 .mass = static_cast<real_t>(180.95),
1522 .form_factors =
1523 {
1524 static_cast<real_t>(31.066359),
1525 static_cast<real_t>(1.708732),
1526 static_cast<real_t>(15.341823),
1527 static_cast<real_t>(9.618455),
1528 static_cast<real_t>(49.278297),
1529 static_cast<real_t>(0.00076),
1530 static_cast<real_t>(4.577665),
1531 static_cast<real_t>(66.346199),
1532 static_cast<real_t>(-44.119026),
1533 },
1534 },
1535 {
1536 .symbol = "Tb",
1537 .radius = static_cast<real_t>(1.68),
1538 .mass = static_cast<real_t>(158.93),
1539 .form_factors =
1540 {
1541 static_cast<real_t>(25.910013),
1542 static_cast<real_t>(2.373912),
1543 static_cast<real_t>(32.344139),
1544 static_cast<real_t>(0.002034),
1545 static_cast<real_t>(13.765117),
1546 static_cast<real_t>(13.481969),
1547 static_cast<real_t>(2.751404),
1548 static_cast<real_t>(125.83651),
1549 static_cast<real_t>(-26.851971),
1550 },
1551 },
1552 {
1553 .symbol = "Tc",
1554 .radius = static_cast<real_t>(1.28),
1555 .mass = static_cast<real_t>(98.0),
1556 .form_factors =
1557 {
1558 static_cast<real_t>(17.840963),
1559 static_cast<real_t>(1.005729),
1560 static_cast<real_t>(3.428236),
1561 static_cast<real_t>(41.901382),
1562 static_cast<real_t>(1.373012),
1563 static_cast<real_t>(119.32054),
1564 static_cast<real_t>(12.947364),
1565 static_cast<real_t>(9.781542),
1566 static_cast<real_t>(1.074784),
1567 },
1568 },
1569 {
1570 .symbol = "Te",
1571 .radius = static_cast<real_t>(1.36),
1572 .mass = static_cast<real_t>(127.60),
1573 .form_factors =
1574 {
1575 static_cast<real_t>(6.660302),
1576 static_cast<real_t>(33.031654),
1577 static_cast<real_t>(6.940756),
1578 static_cast<real_t>(0.02575),
1579 static_cast<real_t>(19.847015),
1580 static_cast<real_t>(5.065547),
1581 static_cast<real_t>(1.557175),
1582 static_cast<real_t>(84.101616),
1583 static_cast<real_t>(-0.806668),
1584 },
1585 },
1586 {
1587 .symbol = "Th",
1588 .radius = static_cast<real_t>(1.75),
1589 .mass = static_cast<real_t>(232.04),
1590 .form_factors =
1591 {
1592 static_cast<real_t>(15.784024),
1593 static_cast<real_t>(0.077067),
1594 static_cast<real_t>(32.454899),
1595 static_cast<real_t>(0.735137),
1596 static_cast<real_t>(21.849222),
1597 static_cast<real_t>(4.097976),
1598 static_cast<real_t>(4.239077),
1599 static_cast<real_t>(109.46411),
1600 static_cast<real_t>(3.922533),
1601 },
1602 },
1603 {
1604 .symbol = "Ti",
1605 .radius = static_cast<real_t>(1.36),
1606 .mass = static_cast<real_t>(47.867),
1607 .form_factors =
1608 {
1609 static_cast<real_t>(9.818524),
1610 static_cast<real_t>(8.001879),
1611 static_cast<real_t>(1.522646),
1612 static_cast<real_t>(0.029763),
1613 static_cast<real_t>(1.703101),
1614 static_cast<real_t>(39.885422),
1615 static_cast<real_t>(1.768774),
1616 static_cast<real_t>(120.158),
1617 static_cast<real_t>(0.102473),
1618 },
1619 },
1620 {
1621 .symbol = "Tl",
1622 .radius = static_cast<real_t>(1.44),
1623 .mass = static_cast<real_t>(204.38),
1624 .form_factors =
1625 {
1626 static_cast<real_t>(16.630795),
1627 static_cast<real_t>(0.110704),
1628 static_cast<real_t>(19.386616),
1629 static_cast<real_t>(7.181401),
1630 static_cast<real_t>(32.808571),
1631 static_cast<real_t>(1.11973),
1632 static_cast<real_t>(1.747191),
1633 static_cast<real_t>(90.660263),
1634 static_cast<real_t>(4.066939),
1635 },
1636 },
1637 {
1638 .symbol = "Tm",
1639 .radius = static_cast<real_t>(1.64),
1640 .mass = static_cast<real_t>(168.93),
1641 .form_factors =
1642 {
1643 static_cast<real_t>(28.925894),
1644 static_cast<real_t>(2.046203),
1645 static_cast<real_t>(76.173798),
1646 static_cast<real_t>(0.000656),
1647 static_cast<real_t>(14.904704),
1648 static_cast<real_t>(11.465375),
1649 static_cast<real_t>(2.814812),
1650 static_cast<real_t>(111.41198),
1651 static_cast<real_t>(-70.839813),
1652 },
1653 },
1654 {
1655 .symbol = "U",
1656 .radius = static_cast<real_t>(1.70),
1657 .mass = static_cast<real_t>(238.03),
1658 .form_factors =
1659 {
1660 static_cast<real_t>(15.679275),
1661 static_cast<real_t>(0.071206),
1662 static_cast<real_t>(32.824306),
1663 static_cast<real_t>(0.681177),
1664 static_cast<real_t>(13.660459),
1665 static_cast<real_t>(18.236156),
1666 static_cast<real_t>(3.687261),
1667 static_cast<real_t>(112.50004),
1668 static_cast<real_t>(3.854444),
1669 },
1670 },
1671 {
1672 .symbol = "V",
1673 .radius = static_cast<real_t>(1.34),
1674 .mass = static_cast<real_t>(50.942),
1675 .form_factors =
1676 {
1677 static_cast<real_t>(10.473575),
1678 static_cast<real_t>(7.08194),
1679 static_cast<real_t>(1.547881),
1680 static_cast<real_t>(0.02604),
1681 static_cast<real_t>(1.986381),
1682 static_cast<real_t>(31.909672),
1683 static_cast<real_t>(1.865616),
1684 static_cast<real_t>(108.02284),
1685 static_cast<real_t>(0.067744),
1686 },
1687 },
1688 {
1689 .symbol = "W",
1690 .radius = static_cast<real_t>(1.37),
1691 .mass = static_cast<real_t>(183.84),
1692 .form_factors =
1693 {
1694 static_cast<real_t>(31.5079),
1695 static_cast<real_t>(1.629485),
1696 static_cast<real_t>(15.682498),
1697 static_cast<real_t>(9.446448),
1698 static_cast<real_t>(37.960129),
1699 static_cast<real_t>(0.000898),
1700 static_cast<real_t>(4.885509),
1701 static_cast<real_t>(59.980675),
1702 static_cast<real_t>(-32.864574),
1703 },
1704 },
1705 {
1706 .symbol = "Xe",
1707 .radius = static_cast<real_t>(1.31),
1708 .mass = static_cast<real_t>(131.29),
1709 .form_factors =
1710 {
1711 static_cast<real_t>(19.97892),
1712 static_cast<real_t>(4.143356),
1713 static_cast<real_t>(11.774945),
1714 static_cast<real_t>(0.010142),
1715 static_cast<real_t>(9.332182),
1716 static_cast<real_t>(28.7962),
1717 static_cast<real_t>(1.244749),
1718 static_cast<real_t>(75.280685),
1719 static_cast<real_t>(-6.065902),
1720 },
1721 },
1722 {
1723 .symbol = "Y",
1724 .radius = static_cast<real_t>(1.63),
1725 .mass = static_cast<real_t>(88.906),
1726 .form_factors =
1727 {
1728 static_cast<real_t>(17.79204),
1729 static_cast<real_t>(1.429691),
1730 static_cast<real_t>(10.253252),
1731 static_cast<real_t>(13.132816),
1732 static_cast<real_t>(5.714949),
1733 static_cast<real_t>(0.112173),
1734 static_cast<real_t>(3.170516),
1735 static_cast<real_t>(108.19703),
1736 static_cast<real_t>(1.131787),
1737 },
1738 },
1739 {
1740 .symbol = "Yb",
1741 .radius = static_cast<real_t>(1.70),
1742 .mass = static_cast<real_t>(173.05),
1743 .form_factors =
1744 {
1745 static_cast<real_t>(29.67676),
1746 static_cast<real_t>(1.97763),
1747 static_cast<real_t>(65.624069),
1748 static_cast<real_t>(0.00072),
1749 static_cast<real_t>(15.160854),
1750 static_cast<real_t>(11.044622),
1751 static_cast<real_t>(2.830288),
1752 static_cast<real_t>(108.13915),
1753 static_cast<real_t>(-60.313812),
1754 },
1755 },
1756 {
1757 .symbol = "Zn",
1758 .radius = static_cast<real_t>(1.18),
1759 .mass = static_cast<real_t>(65.38),
1760 .form_factors =
1761 {
1762 static_cast<real_t>(14.741002),
1763 static_cast<real_t>(3.388232),
1764 static_cast<real_t>(6.907748),
1765 static_cast<real_t>(0.243315),
1766 static_cast<real_t>(4.642337),
1767 static_cast<real_t>(11.903689),
1768 static_cast<real_t>(2.191766),
1769 static_cast<real_t>(63.31213),
1770 static_cast<real_t>(-36.915829),
1771 },
1772 },
1773 {
1774 .symbol = "Zr",
1775 .radius = static_cast<real_t>(1.54),
1776 .mass = static_cast<real_t>(91.224),
1777 .form_factors =
1778 {
1779 static_cast<real_t>(17.859772),
1780 static_cast<real_t>(1.310692),
1781 static_cast<real_t>(10.911038),
1782 static_cast<real_t>(12.319285),
1783 static_cast<real_t>(5.821115),
1784 static_cast<real_t>(0.104353),
1785 static_cast<real_t>(3.512513),
1786 static_cast<real_t>(91.777542),
1787 static_cast<real_t>(1.124859),
1788 },
1789 },
1790 },
1791};
1792
1793constexpr const ElementData *find(std::string_view symbol) noexcept {
1794 // Binary search implementation for element data retrieval.
1795 // This function provides O(log N) lookup complexity.
1796 // @param symbol Chemical symbol.
1797 // @return Constant pointer to ElementData or nullptr.
1798 const auto *iterator = std::lower_bound(
1799 DATABASE.data(), DATABASE.data() + DATABASE.size(), symbol,
1800 [](const ElementData &data, std::string_view sym) { return data.symbol < sym; });
1801 if (iterator != DATABASE.data() + DATABASE.size() && iterator->symbol == symbol) {
1802 return iterator;
1803 }
1804 return nullptr;
1805}
1806} // namespace detail
1807
1808} // namespace correlation::physics
Floating point precision type definitions for Correlation.
Definition PhysicalData.hpp:28
constexpr std::array< ElementData, 98 > DATABASE
Definition PhysicalData.hpp:122
constexpr const ElementData * find(std::string_view symbol) noexcept
Searches for an element by its symbol in the static database.
Definition PhysicalData.hpp:1793
Provides structures and functions for handling atomic and material physical properties.
real_t getAtomicMass(std::string_view symbol)
Retrieves the atomic mass of a given chemical element.
Definition PhysicalData.hpp:93
const std::array< real_t, 9 > & getAtomicFormFactors(std::string_view symbol)
Retrieves the atomic form factors for a given chemical element.
Definition PhysicalData.hpp:112
real_t getCovalentRadius(std::string_view symbol)
Retrieves the covalent radius of a given chemical element.
Definition PhysicalData.hpp:63
constexpr std::optional< real_t > findAtomicMass(std::string_view symbol) noexcept
Retrieves the atomic mass of a given chemical element without throwing.
Definition PhysicalData.hpp:78
double real_t
Definition Precision.hpp:18
Internal structure to hold element-specific physical data.
Definition PhysicalData.hpp:36
real_t mass
Atomic mass in atomic mass units (Da).
Definition PhysicalData.hpp:39
std::string_view symbol
Chemical symbol (e.g., "Si").
Definition PhysicalData.hpp:37
real_t radius
Covalent radius in Angstroms.
Definition PhysicalData.hpp:38
std::array< real_t, 9 > form_factors
9 coefficients (a1, b1, a2, b2, a3, b3, a4, b4, c) for the Cromer-Mann equation used to calculate ato...
Definition PhysicalData.hpp:45