This repository contains every script used in my project.
整理自 D:/桌面/script 的课题脚本集合。项目按用途分类,保留了 original_txt/ 原始备份,并把可识别的 txt 重命名为可检索的脚本文件。
txs_processing/: TXS、DXS、DF、HPR 等文本/截面处理脚本data_extraction/: OP、XML、KINF 等结果提取脚本data_conversion/: CSV、Excel、flux map 等格式转换脚本data_analysis/: 多项式系数读取、拟合和计算脚本plotting/: Origin、2D 热图、3D core/bias/VTK 可视化脚本cuda/: CUDA 线性方程组求解、矩阵构建与 Thrust 示例fortran/: Fortran 数值求解子程序file_tools/,utilities/,workflow/,shell/: 文件批处理、清理、批量运行和命令封装examples/: 绘图和处理脚本需要的示例输入original_txt/: 原始 txt 文件备份,便于回溯
| Path | Name | Purpose | Type |
|---|---|---|---|
cuda/batched_build_and_solve.cu |
Batched build and solve demo | Build matrices and solve batched systems with CUDA. | script |
cuda/batched_gaussian_kernel.cu |
Batched Gaussian kernel | CUDA kernel for solving one dense linear system per block. | script |
cuda/batched_matrix_solver_kernel.cu |
Batched matrix solver kernel | Replacement CUDA kernel for 69x69 row-major batched systems. | script |
cuda/device_construct_and_solve.cu |
Device construct and solve demo | Construct and solve fixed 69x69 systems on device. | script |
cuda/gaussian_elimination_solver.cu |
CUDA Gaussian elimination solver | CUDA implementation of batched Gaussian elimination with partial pivoting. | script |
cuda/randomized_linear_system_solver.cu |
Randomized CUDA solver | CUDA linear-system solver prototype with random initialization hooks. | script |
cuda/shared_memory_linear_solver.cu |
Shared-memory linear solver | CUDA shared-memory solver for multiple linear systems. | script |
cuda/thrust_transform_example.cu |
Thrust transform example | Thrust-based vector transform example from the original unnamed note. | script |
data_analysis/evaluate_tvsm_polynomials.py |
TVSM polynomial evaluator | Extract polynomial coefficients and evaluate them over tabular inputs. | script |
data_analysis/fit_tvsm_coefficients.py |
TVSM coefficient fitter | Read fitted coefficients and calculate polynomial values for Excel outputs. | script |
data_conversion/epr_fluxmap_to_csv.py |
EPR flux map converter | Parse EPR flux map text and export structured CSV data. | script |
data_conversion/txs_lines_to_excel.py |
TXS to Excel exporter | Read target TXS line ranges and export them to workbook sheets. | script |
data_extraction/extract_kinf_values.py |
KINF value extractor | Extract first KINF values and save them to a text file. | script |
data_extraction/extract_op_eigenvalues.py |
OP eigenvalue extractor | Extract selected numeric eigenvalues from .op files and save CSV results. |
script |
data_extraction/extract_xml_line25_values.py |
XML line value extractor | Batch extract target values from XML-like files and write a summary. | script |
examples/bias.info |
Bias info example | Example bias input data for the 3D core bias plotter. | data |
examples/core3d.conf |
Core 3D config example | Example configuration for the 3D core bias plotter. | data |
file_tools/copy_and_rename_to_subfolders.py |
Batch copy and rename | Copy one source file into subfolders and rename it according to each folder. | script |
fortran/solve69_partial_pivot.f90 |
Fortran solve69 | Fortran subroutine for solving a 69x69 system with partial pivoting. | script |
plotting/2d/excel_clipboard_heatmap.py |
Excel clipboard heatmap | Create a clipped heatmap from an Excel matrix copied to the clipboard. | script |
plotting/3d/examples/bias.info |
Bias info example | Example bias input data colocated with the plotter. | data |
plotting/3d/examples/core3d.conf |
Core 3D config example | Example core config colocated with the plotter. | data |
plotting/3d/excel_slices_to_paraview.py |
Excel slices to ParaView | Convert Excel slice sheets into aligned 15x15 data for ParaView workflows. | script |
plotting/3d/plot_core3d_bias.py |
3D core bias plotter | Read core layout and bias data, then render a 3D bias plot. | script |
plotting/3d/snippets/add_bias_layer_polygons.py |
3D bias layer polygons | Snippet for adding colored bias polygons to a 3D Matplotlib axis. | snippet |
plotting/3d/snippets/add_outer_shell.py |
3D outer shell | Function for drawing a translucent outer shell around a core mask. | snippet |
plotting/3d/snippets/add_outer_vertical_edges.py |
3D outer vertical edges | Snippet for drawing vertical lines only along the outside boundary. | snippet |
plotting/3d/snippets/high_resolution_3d_figure_layout.py |
High-resolution 3D layout | Snippet for dense 3D figure layout and colorbar placement. | snippet |
plotting/3d/snippets/read_bias_info_by_rows.py |
Row-wise bias reader | Function for reading layer bias data according to mask rows. | snippet |
plotting/3d/snippets/read_bias_info_tokens.py |
Token-wise bias reader | Function for reading layer bias data as token streams with N as NaN. |
snippet |
plotting/3d/vtk_surface_voxelize.py |
VTK surface voxelizer | Read VTK data, voxelize surfaces, and write converted datasets. | script |
plotting/origin/batch_export_origin_graphs.py |
Origin graph exporter | OriginPro automation for exporting graph windows. | script |
shell/rename_subdirectories_by_prefix.sh |
Subdirectory rename helper | Shell helper for renaming folders or files by directory prefix. | script |
shell/run_excel_slices_to_paraview.sh |
ParaView conversion command | Example shell command for running the Excel-to-ParaView converter. | script |
txs_processing/calculate_axs_df_ratio.py |
AXS-DF ratio calculator | Parse paired *-1.txs and *-2.txs files and export selected AXS-DF ratios. |
script |
txs_processing/extract_txs_sections.py |
TXS section extractor | Extract numeric blocks between markers from TXS files into organized outputs. | script |
txs_processing/fill_dxs_by_prefix_from_template.py |
DXS template filler | Copy and fill DXS files based on prefix and template naming rules. | script |
txs_processing/generate_dxs_from_values.py |
DXS generator | Extract numeric values and generate DXS formatted output recursively. | script |
txs_processing/generate_dxs_scatter.py |
DXS scatter generator | Generate scatter-oriented DXS output from recursively collected numeric values. | script |
txs_processing/normalize_dxs_zero_values.py |
DXS zero normalizer | Normalize zero-like numeric fields in DXS files. | script |
txs_processing/rewrite_hpr_sections.py |
HPR section rewriter | Rewrite or zero selected HPR numeric sections while keeping original formatting. | script |
txs_processing/set_df_values_by_line.py |
DF value replacer | Replace selected numeric values in DF-style text files while preserving numeric format. | script |
txs_processing/set_df_values_by_prefix.py |
DF prefix batch replacer | Batch replace target lines according to the first two digits in each filename. | script |
utilities/list_library_files.py |
Library file lister | List library files under a directory for quick inventory checks. | script |
utilities/remove_blank_lines.py |
Blank line remover | Remove blank lines from text files with backup support. | script |
utilities/remove_odd_lines.py |
Odd line remover | Remove odd-numbered lines with a one-time backup. | script |
workflow/run_locust_batch.py |
Locust batch runner | Run Locust jobs across multiple workspaces with signal handling. | script |
Most Python scripts were preserved as standalone scripts where possible. Some files from the original folder were code fragments rather than complete programs; those are placed under snippets/ and marked with a context note at the top.
Install dependencies according to the script you run. Common Python packages used here include numpy, pandas, matplotlib, openpyxl, vtk, and originpro.
CUDA files are source examples/prototypes and should be compiled with an NVCC toolchain that matches the local CUDA runtime.