Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f71f5b9
A new branch for snu students to incorporate local developments into …
Jun 20, 2025
89e4516
FEATURE - Add sol_num parameter to match routine. Adding sol_num para…
jaesun57 Jun 24, 2025
d975697
FEATURE - Add sol_num parameter to match input file. This change init…
jaesun57 Jun 24, 2025
a004502
EQUIL - NEW FEATURE - shear and geometry calculation
jaesun57 Aug 20, 2025
9a00d1b
FEATURE - curvature calculation
jaesun57 Aug 20, 2025
b5ed56f
MINOR - correction of shear calculation error
jaesun57 Sep 8, 2025
8ce8371
WIP - modification of bernstein calculation dependency
jaesun57 Sep 15, 2025
08a1f69
WIP - file directory structure changes
jaesun57 Oct 1, 2025
38dd604
MINOR - minor error at calculation
jaesun57 Oct 1, 2025
e14f8c6
MINOR - wrong code remove
jaesun57 Oct 10, 2025
f8e8d15
MINOR - changing naming convention in bernsetin form
jaesun57 Oct 11, 2025
9978d7c
ERROR - error correction in metric
jaesun57 Oct 11, 2025
071b133
Merge branch 'develop' into snu_offshoot
jaesun57 Mar 11, 2026
5ce5f7b
Remove bernstein module usage and related flag from dcon files
jaesun57 Mar 11, 2026
25ddd6e
Clarify comment for sol_num in match.in regarding DCON eigen function…
jaesun57 Mar 11, 2026
7ffde74
Remove nametag file from documentation
jaesun57 Mar 11, 2026
4a146f2
GPEC - WIP - add curvature, shear, K value calculation for recon_flag
jaesun57 Mar 13, 2026
8d98987
GPEC - WIP - add docs for reconsturction
jaesun57 Mar 13, 2026
cc25b17
GPEC - WIP - modify shear calculation and add some C value calculatio…
jaesun57 Mar 18, 2026
557b62c
GPEC - docs - Add variable naming convention and mathematical symbols…
jaesun57 Mar 18, 2026
1ef3127
GPEC- WIP - fix curvature calcuation and make allocation process alig…
jaesun57 Mar 18, 2026
f6a5e27
GPEC - FEATURE - Update core calculations
jaesun57 Apr 23, 2026
a79f3c1
GPEC - FEATURE - Add Python analysis and plotting tools
jaesun57 Apr 23, 2026
8fa6308
GPEC - MINOR - Update example configurations and documentation
jaesun57 Apr 23, 2026
b13d2e3
GPEC - WIP - Update recon coordinate derivation
jaesun57 May 18, 2026
e9cc5d5
GPEC - FEATURE - Add recon energy diagnostics
jaesun57 May 18, 2026
86eae46
GPEC - MINOR - Document recon input settings
jaesun57 May 18, 2026
d8a5dff
GPEC - MINOR - Update external perturbation flags in gpec.in
jaesun57 May 19, 2026
7b8d4a2
GPEC - FEATURE - Add configurable recon integration method
jaesun57 May 19, 2026
a978489
GPEC - MINOR - Document recon integration option in input
jaesun57 May 19, 2026
7f5e53d
GPEC - MINOR - Fix recon ep summary for selected mode
jaesun57 May 19, 2026
b08b3d4
GPEC - MINOR - Remove recon completion banner
jaesun57 May 19, 2026
31e6c47
GPEC - MINOR - Align recon ep summary labels
jaesun57 May 19, 2026
3137ed9
GPEC - MINOR - Document C verify identity in reconstruction note
jaesun57 May 19, 2026
35edba0
GPEC - FEATURE - Add optional C verify diagnostics for recon
jaesun57 May 19, 2026
d16bd07
GPEC - MINOR - Document cveri_flag in input
jaesun57 May 19, 2026
3ccce21
GPEC - MINOR - Refine C verify output wording
jaesun57 May 19, 2026
cc1882a
GPEC - MINOR - Refine recon summary formatting
jaesun57 May 19, 2026
69c7f28
GPEC - MINOR - Add recon output control and reuse C verify state
jaesun57 May 19, 2026
6d2a766
GPEC - MINOR - Document recon_out input control
jaesun57 May 19, 2026
a031559
GPEC - RECON2 - 2026-05-22 add recon_flag2 entrypoint
jaesun57 May 26, 2026
bc56df6
GPEC - RECON2 - 2026-05-25 add first-form energy kernel
jaesun57 May 26, 2026
9815512
GPEC - RECON2 - 2026-05-25 add first-form recon output
jaesun57 May 26, 2026
8d4348d
GPEC - RECON2 - add template input flag
jaesun57 May 27, 2026
5450935
GPEC - WIP add recon xi input flags
jaesun57 May 27, 2026
9983440
DOCS - Remove DIIID ideal example Python scripts from repo
jaesun57 May 27, 2026
3f1f64b
GPEC - RECON3 - add |C|^2 Bernstein decomposition diagnostic
jaesun57 Jun 2, 2026
f80b993
GPEC - RECON1 - add per-(psi,theta) terms R-Z output
jaesun57 Jun 5, 2026
73aaf92
DOCS - recon: C effective-field figure + Eulerian/Lagrangian derivation
jaesun57 Jun 16, 2026
94fa110
GPEC - recon: track main.tex figure PNG (gitignore exception)
jaesun57 Jun 16, 2026
1ce5e3c
DOCS - recon: fix H4 appendix A.2 (|V|^2 residual =, block labeling)
jaesun57 Jun 16, 2026
69c6edc
DOCS - recon: frame V as the rotated edge current + triple-product rule
jaesun57 Jun 16, 2026
fc716a4
GPEC - recon: covariant bare-Q (qvmn) output + fix QvsC figure
jaesun57 Jun 17, 2026
602eba2
GPEC - recon: remove unused xi injection input flags (xi_flag, xifile)
jaesun57 Jun 19, 2026
1eaeabc
Merge origin/develop into recon
jaesun57 Jun 24, 2026
ae5b869
INSTALL - MINOR - regenerate install/DEPENDENCIES.inc
actions-user Jun 25, 2026
311922c
MATCH - recon: unify sol_num index wording (1 = most unstable)
jaesun57 Jun 25, 2026
08ba8bd
DCON/EQUIL - recon: revert leftover cruft to develop
jaesun57 Jun 25, 2026
ce90394
Merge origin/snu_offshoot (DEPENDENCIES.inc regen) into recon
jaesun57 Jun 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ docs/_build/
docs/examples/*/gal_solution.dat
docs/examples/*/delta_gw.dat
docs/examples/*/gal_solution_cut.dat
docs/examples/DIIID_ideal_example/*.py

deps/bin/*
deps/hdf5
Expand All @@ -53,3 +54,16 @@ sum/sum
xdraw/pspack
xdraw/xdraw
slayer/slayer

*.aux
*.blg
*.bbl
*.fdb_latexmk
*.fls
*.log
*.synctex.gz
*.pdf
*.png

# keep the figure included by docs/tex/recon/main.tex
!docs/tex/recon/QvsC_quant_n1.png
264 changes: 0 additions & 264 deletions CLAUDE.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/DIIID_ideal_example/gpec.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
&GPEC_DIAGNOSE
timeit=t ! Print timer splits for major subroutines
radvar_flag=f ! Map various radial variables (rho,psi_tor) on psi_n grid
/
/
30 changes: 17 additions & 13 deletions docs/examples/solovev_ideal_example/gpec.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
&GPEC_INPUT
dcon_dir = './' ! Path to DCON outputs. Individual file paths are appended to this
dcon_dir = '' ! Path to DCON outputs. Individual file paths are appended to this
idconfile = 'euler.bin' ! Eigenfunctions output by DCON run
ieqfile = 'psi_in.bin' ! Flux surfaces output by DCON run
rdconfile = 'globalsol.bin' ! Galerkin eigenfunctions output by resistive DCON run

gal_flag = f ! Use the Galerkin eigenfunctions from resistive DCON instead of the ideal DCON shooting method solutions

jac_in="pest" ! Coordinate system of external perturbation (affects data_flag and harmonic_flag). Options include: pest,boozer,hamada
jsurf_in=0 ! True(1) if external perturbation is area weighted (i.e. flux)
jac_in="hamada" ! Coordinate system of external perturbation (affects data_flag and harmonic_flag). Options include: pest,boozer,hamada
jsurf_in=1 ! True(1) if external perturbation is area weighted (i.e. flux)
tmag_in =0 ! True(1) if external perturbation has toroidal angle defined by jac_in. False(0) if machine angle.
mthsurf =0 ! Number of poloidal angle gridpoints. Minimum of twice the Nyquist condition from DCON m limits is enforced.

Expand All @@ -28,7 +28,7 @@
displacement_flag=f ! Perturbations are displacement (m). Default is field (T).
fixed_boundary_flag=f ! Total perturbation = external perturbation

mode_flag = t ! Return only a single DCON eigenfunction defined by mode (ignores external pert.)
mode_flag = .T. ! Return only a single DCON eigenfunction defined by mode (ignores external pert.)
mode = 1 ! DCON eigen function index (1 is least stable)
filter_types = 'w' ! Isolate the filter_modes of energy (w), reluctance (r), permiability (p) or singular coupling (s) eigenvectors/singular-vectors
filter_modes = 0 ! Number of modes isolated, negative values isolate backwards from the last mode
Expand All @@ -47,28 +47,29 @@
use_classic_splines = f ! Use a classical cubic spline instead of tri-diagonal solution for splines with extrapolation boundary conditions
/
&GPEC_OUTPUT
jac_out="pest" ! Coordinate system of outputs
jac_out="hamada" ! Coordinate system of outputs
jsurf_out=0 ! True(1) for area weighted outputs (only appends standard gpec_control output)
tmag_out=1 ! True(1) for magnetic toroidal angle outputs (affects singcoup and singfld, appends gpec_control)
mlim_out=64 ! If positive, Fourier decomposed outputs will span -mlim_out<=m<=mlim_out. Default (<=0) outputs on internal m range.

resp_flag=t ! Output energy, reluctance, inductance, and permeability eigenvalues, eigenvectors, and matrices
filter_flag=t ! Outputs energy, reluctance, permeability, and (optionally) the singular-coupling eigenmodes on the control surface
resp_flag=f ! Output energy, reluctance, inductance, and permeability eigenvalues, eigenvectors, and matrices
filter_flag=f ! Outputs energy, reluctance, pereability, and (optionally) the singular-coupling eigenmodes on the control surface
singcoup_flag=f ! Calculate coupling of each m to resonant surfaces
singfld_flag=t ! Output of resonant surface quantities (flux,current,etc.)
singfld_flag=f ! Output of resonant surface quantities (flux,current,etc.)
vsingfld_flag=f ! Output of vacuum resonant surface quantities
singthresh_flag=f ! Calculate Callen resonant field penetration threshold (requires kinetic profiles from pentrc.in)

pmodb_flag=f ! Outputs delta-B_Lagrangian
xbnormal_flag=t ! Outputs normal displacement and field in plasma
xbnormal_flag=f ! Outputs normal displacement and field in plasma
vbnormal_flag=f ! Outputs vacuum normal displacement and field in plasma
xclebsch_flag=t ! Outputs clebsch coordinate displacement for PENT
xclebsch_flag=f ! Outputs clebsch coordinate displacement for PENT
dw_flag=f ! Outputs self-consistent energy and torque profiles (when kin_flag=t from DCON)

eqbrzphi_flag=f ! Outputs equilibrium field on regular (r,z) grid
brzphi_flag=t ! Outputs perturbed field on regular (r,z) grid
brzphi_flag=f ! Outputs perturbed field on regular (r,z) grid
xrzphi_flag=f ! Outputs displacement on regular (r,z) grid
vbrzphi_flag=f ! Outputs field on regular (r,z) grid due to total boundary surface current (not a real field)
vvbrzphi_flag=f ! Outputs field on regular (r,z) grid due to external perturbation surface current (not a real field)
vvbrzphi_flag=f ! Outputs field on regular (r,z) grid due to exeternal perturbation surface current (not a real field)
vsbrzphi_flag=f ! Outputs the field on regular (r,z) grid due to singular surface currents
ss_flag(3)=f ! Outputs the field on regular (r,z) grid due to the 3rd singular surface current, etc.
xbrzphifun_flag=f ! Outputs r,z, and perturbation vectors on psi,theta grid
Expand All @@ -82,8 +83,11 @@
bin_2d_flag=f ! Write 2D binary outputs for use with xdraw
max_linesout=0 ! Maximum length of ascii data tables enforced by increasing radial step size (iff .gt. 0).
verbose=t ! Print run log to terminal

recon_flag=t
netcdf_flag=t
/
&GPEC_DIAGNOSE
timeit=f ! Print timer splits for major subroutines
timeit=t ! Print timer splits for major subroutines
radvar_flag=f ! Map various radial variables (rho,psi_tor) on psi_n grid
/
Loading
Loading