diff --git a/assets/const/const.dat b/assets/const/const.dat index 5d165ce..2d51028 100644 --- a/assets/const/const.dat +++ b/assets/const/const.dat @@ -11,7 +11,7 @@ Codata Internationally Recommended 2022 Values of the Fundamental Physical Const Symbol Name Value Unit Uncertainty Source ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -weinK Wien displacement law constant 2.89776850e-01 K cm 5.10000000e-07 CODATA2022 +wienK Wien displacement law constant 2.89776850e-01 K cm 5.10000000e-07 CODATA2022 au1Hyper atomic unit of 1st hyperpolarizablity 3.20636151e-53 C^3 m^3 J^-2 2.80000000e-60 CODATA2022 au2Hyper atomic unit of 2nd hyperpolarizablity 6.23538080e-65 C^4 m^4 J^-3 1.10000000e-71 CODATA2022 auEDip atomic unit of electric dipole moment 8.47835309e-30 C m 7.30000000e-37 CODATA2022 @@ -428,7 +428,7 @@ mH_amu_rel helion relative atomic mass h_shield_shift helion shielding shift 5.99674300e-05 1.00000000e-10 CODATA2022 F_hyperfine_Cs-133 hyperfine transition frequency of Cs-133 9.19263177e+09 1 / s 0.00000000e+00 CODATA2022 aSi_220_ideal lattice spacing of ideal Si (220) 1.92015572e-08 cm 3.20000000e-16 CODATA2022 -eta luminous efficacy 6.83000000e-05 s3 rad2 cd / (g cm2) 0.00000000e+00 CODATA2022 +eta luminous efficacy 6.83000000e-05 s3 rad2 cd/(g cm2) 0.00000000e+00 CODATA2022 rg_n_MHz_T neutron gyromag. ratio in MHz/T 2.91646931e+01 MHz T^-1 6.90000000e-06 CODATA2022 mN_amu_rel neutron relative atomic mass 1.00866492e+00 4.90000000e-10 CODATA2022 mu_N_invm nuclear magneton in inverse meter per tesla 2.54262341e-02 m^-1 T^-1 7.80000000e-12 CODATA2022 diff --git a/assets/const/format.sh b/assets/const/format.sh new file mode 100755 index 0000000..7e53731 --- /dev/null +++ b/assets/const/format.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + exit 1 +fi +input_file="$1" +output_file="$2" +printf 'const char embeddedConstants[] = R"(' > "$output_file" +cat "$input_file" >> "$output_file" +printf ')";\n' >> "$output_file" diff --git a/assets/const/meson.build b/assets/const/meson.build new file mode 100644 index 0000000..583fb32 --- /dev/null +++ b/assets/const/meson.build @@ -0,0 +1,17 @@ +data_file = files('const.dat') +command_file = files('format.sh') +output_file = meson.current_build_dir() + '/embedded_constants.h' + +embedded_constants_h = custom_target('embed_constants', + input: data_file, + output: 'embedded_constants.h', + command: ['sh', '-c', command_file[0].full_path()+' @INPUT@ ' + output_file, '@INPUT@', '@OUTPUT@'] +) + +# Ensure the generated header is included +const_data_header = include_directories('.') + +const_data_dep = declare_dependency( + include_directories: const_data_header, + sources: embedded_constants_h +) \ No newline at end of file diff --git a/assets/mesh/sphere.msh b/assets/mesh/sphere.msh new file mode 100644 index 0000000..416c655 Binary files /dev/null and b/assets/mesh/sphere.msh differ