Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
d2dd88b
fisrt test
jjwalkowiak Mar 7, 2025
70c76c4
update
jjwalkowiak Mar 7, 2025
e8d59bb
stellerator plasma volume fix
jjwalkowiak Mar 7, 2025
1da32f6
more tests
jjwalkowiak Mar 12, 2025
4be4f16
sprocess test run
jjwalkowiak Mar 13, 2025
7869d37
add squid
jjwalkowiak Jun 12, 2025
7130737
Merge branch 'test' of https://github.com/jjwalkowiak/PROCESS into test
jjwalkowiak Jun 12, 2025
d09871b
create autostart for stellarator
jjwalkowiak Jun 17, 2025
bbf03f6
add comments
jjwalkowiak Jun 18, 2025
733d620
add functions list to documentation
jjwalkowiak Jul 15, 2025
46e4c6d
test for stellarators
jjwalkowiak Aug 4, 2025
81b8498
remove unused WIP test
jjwalkowiak Aug 4, 2025
e60fcf6
introduce changes to the stellarator model, to prepare equations for …
jjwalkowiak Aug 4, 2025
b37cbe4
update test to check backward compatibility
jjwalkowiak Aug 4, 2025
b4e81f1
correct equation for the stellerator avaliable radial space
jjwalkowiak Aug 5, 2025
35c7f01
Merge branch 'main' into modify-plasma-coil-distance
jjwalkowiak Aug 5, 2025
88ddb3f
store list of updated variables (temporary)
jjwalkowiak Aug 5, 2025
4f27883
add coild scaling and correct vv r_major in stellartor module
jjwalkowiak Aug 11, 2025
1814c6a
correct solver constraint equations check
jjwalkowiak Aug 11, 2025
9bd0984
minus missing in inequality check margin
jjwalkowiak Aug 11, 2025
1837540
Change coilsurface scaling in stellartor module. Now it followis in c…
jjwalkowiak Aug 13, 2025
2497f08
update input description
jjwalkowiak Aug 29, 2025
1d92b8b
add temperature margin variable for SC critical current in the stella…
jjwalkowiak Sep 9, 2025
0573494
calculate vv_stress_quench in stellartor module
jjwalkowiak Sep 10, 2025
8622aef
stellarator module: correct vv max force denisty, change names of som…
jjwalkowiak Sep 23, 2025
1c8ef0d
change parabolic profile default behaviour
jjwalkowiak Sep 23, 2025
04bf46c
test
jjwalkowiak Sep 23, 2025
838e531
stellarator module refactoring
jjwalkowiak Sep 23, 2025
cbb0c95
stellarator coils refactoring
jjwalkowiak Sep 24, 2025
dabc8dc
refactoring stellarator coils
jjwalkowiak Oct 9, 2025
d46cfe3
update tests
jjwalkowiak Oct 9, 2025
9c568fd
refactoring update
jjwalkowiak Oct 13, 2025
645d699
update stella_config
jjwalkowiak Oct 29, 2025
e428be0
update squid IN.DAT in templates
jjwalkowiak Oct 29, 2025
ff7d8fe
Merge pull request #2 from jjwalkowiak/modify-plasma-coil-distance
jjwalkowiak Nov 3, 2025
efa43a2
Merge https://github.com/ukaea/PROCESS into merge
jjwalkowiak Nov 4, 2025
1eb7830
debug merge
jjwalkowiak Nov 4, 2025
b13e385
add testcase to gitignore
jjwalkowiak Nov 4, 2025
f6e893f
add reference files
jjwalkowiak Nov 4, 2025
e7a8b54
add error when given epseff is lower than 0
jjwalkowiak Nov 4, 2025
fc542b1
Merge pull request #4 from ukaea/main
jjwalkowiak Nov 4, 2025
b5ed963
correct current calculation
jjwalkowiak Nov 7, 2025
7e0e6e3
correct coil calling routine
jjwalkowiak Nov 7, 2025
e4d3c87
stellarator refactoring
jjwalkowiak Nov 20, 2025
4d36503
test cases
jjwalkowiak Nov 20, 2025
ef0c506
Merge branch 'merge' of https://github.com/jjwalkowiak/PROCESS into m…
jjwalkowiak Nov 20, 2025
1d1cbca
remov old files
jjwalkowiak Feb 2, 2026
a1bdc5f
Merge pull request #5 from jjwalkowiak/merge
jjwalkowiak Feb 2, 2026
8b37a9b
Delete stellarator_test directory
jjwalkowiak Feb 2, 2026
e5866d1
Revert "remov old files"
jjwalkowiak Feb 2, 2026
07de173
update gitignore
jjwalkowiak Feb 2, 2026
375e219
Merge pull request #6 from jjwalkowiak/merge
jjwalkowiak Feb 2, 2026
d1be692
update gitignore
jjwalkowiak Feb 3, 2026
5f5e751
Delete tests/impurity_radiation.py
jjwalkowiak Feb 3, 2026
f9273ff
Delete tests/vv_stress.py
jjwalkowiak Feb 3, 2026
75f98f7
Merge remote-tracking branch 'upstream/HEAD' into merge
jjwalkowiak Feb 3, 2026
ec164ca
remove unnecesary files from documentation
jjwalkowiak Feb 4, 2026
578d47f
merge refactoring
jjwalkowiak Feb 4, 2026
1ff1f60
pre-commit style corrections
jjwalkowiak Feb 4, 2026
39c64af
correct ouptut flag and function conflict
jjwalkowiak Feb 4, 2026
44e0f2c
Update .gitignore
jjwalkowiak Feb 4, 2026
9a7e430
more refactoring
jjwalkowiak Feb 4, 2026
37afb1f
Merge branch 'main' of https://github.com/jjwalkowiak/PROCESS
jjwalkowiak Feb 4, 2026
6b19091
more refactoring
jjwalkowiak Feb 4, 2026
93276ce
Add Shield import to process/main.py
jjwalkowiak Feb 4, 2026
91a8ad3
Merge branch 'main' into main
jjwalkowiak Feb 4, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dist/*
documentation/io/vardes.md
lcov_results/
env/
env_process/
.venv
*.DAT
!scenario_examples/*/*.DAT
Expand Down
44 changes: 27 additions & 17 deletions process/data_structure/stellarator_variables.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# These variables were from stellarator.f90
f_n: float = None
f_st_n_coils: float = None
"""Actual number of coils to reference value from stella_config file"""

f_r: float = None
f_st_rmajor: float = None
"""Actual major radius to reference value from stella_config file"""

f_aspect: float = None
f_st_aspect: float = None
"""Actual aspect ratio to reference value from stella_config file"""

f_b: float = None
f_st_coil_aspect: float = None
"""Scaling factor for (stellarator major radius / coil radius ratio)"""

f_i: float = None
f_st_b: float = None
"""Actual b_plasma_toroidal_on_axis to reference value from stella_config file """

f_a: float = None
f_st_i_total: float = None
"""Actual total coil current to reference value from stella_config file"""

f_st_rminor: float = None
"""Actual minor radius to reference value from stella_config file"""

first_call: bool = None

Expand Down Expand Up @@ -97,16 +106,17 @@ def init_stellarator_variables():
global \
first_call, \
first_call_stfwbs, \
f_n, \
f_r, \
f_a, \
f_b, \
f_i, \
f_st_n_coils, \
f_st_rmajor, \
f_st_rminor, \
f_st_b, \
f_st_i_total, \
istell, \
bmn, \
f_asym, \
f_rad, \
f_w, \
f_st_coil_aspect, \
fdivwet, \
flpitch, \
hportamax, \
Expand All @@ -127,11 +137,11 @@ def init_stellarator_variables():

first_call = True
first_call_stfwbs = True
f_n = 0.0
f_r = 0.0
f_a = 0.0
f_b = 0.0
f_i = 0.0
f_st_n_coils = 0.0
f_st_rmajor = 0.0
f_st_rminor = 0.0
f_st_b = 0.0
f_st_i_total = 0.0
istell = 0
bmn = 1e-3
f_asym = 1.0
Expand All @@ -143,7 +153,7 @@ def init_stellarator_variables():
hportpmax = 0.0
hporttmax = 0.0
iotabar = 1.0
isthtr = 3
isthtr = 1
m_res = 5
n_res = 5
shear = 0.5
Expand Down
4 changes: 2 additions & 2 deletions process/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
from process.exceptions import ProcessValidationError
from process.input import parse_input_file
from process.log import logging_model_handler
from process.stellarator import stinit
from process.stellarator.initialization import st_init


def init_process():
Expand All @@ -86,7 +86,7 @@ def init_process():
set_device_type()

# Initialise the Stellarator
stinit()
st_init()

# Check input data for errors/ambiguities
check_process(inputs)
Expand Down
3 changes: 3 additions & 0 deletions process/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ def __post_init__(self):
data_structure.tfcoil_variables, float, range=(0.0, 1.0)
),
"f_w": InputVariable(data_structure.stellarator_variables, float, range=(0.1, 1.0)),
"f_st_coil_aspect": InputVariable(
data_structure.stellarator_variables, float, range=(0.1, 10.0)
),
"f_z_cryostat": InputVariable(
data_structure.build_variables, float, range=(2.0, 10.0)
),
Expand Down
3 changes: 3 additions & 0 deletions process/iteration_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ class IterationVariable:
),
174: IterationVariable("triang", data_structure.physics_variables, 0.00, 1.00),
175: IterationVariable("kappa", data_structure.physics_variables, 0.00, 10.00),
176: IterationVariable(
"f_st_coil_aspect", data_structure.stellarator_variables, 0.70, 1.30
),
}


Expand Down
29 changes: 16 additions & 13 deletions process/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@
from process.pulse import Pulse
from process.resistive_tf_coil import AluminiumTFCoil, CopperTFCoil, ResistiveTFCoil
from process.scan import Scan
from process.stellarator.neoclassics import Neoclassics
from process.stellarator.stellarator import Stellarator
from process.shield import Shield
from process.stellarator import Neoclassics, Stellarator
from process.structure import Structure
from process.superconducting_tf_coil import SuperconductingTFCoil
from process.tf_coil import TFCoil
Expand Down Expand Up @@ -689,18 +690,20 @@ def __init__(self):
plasma_profile=self.plasma_profile,
)
self.neoclassics = Neoclassics()
self.stellarator = Stellarator(
availability=self.availability,
buildings=self.buildings,
vacuum=self.vacuum,
costs=self.costs,
power=self.power,
plasma_profile=self.plasma_profile,
hcpb=self.ccfe_hcpb,
current_drive=self.current_drive,
physics=self.physics,
neoclassics=self.neoclassics,
)
if data_structure.stellarator_variables.istell != 0:
self.stellarator = Stellarator(
availability=self.availability,
buildings=self.buildings,
vacuum=self.vacuum,
costs=self.costs,
power=self.power,
plasma_profile=self.plasma_profile,
hcpb=self.ccfe_hcpb,
current_drive=self.current_drive,
physics=self.physics,
neoclassics=self.neoclassics,
)

self.dcll = DCLL(fw=self.fw)

@property
Expand Down
1 change: 1 addition & 0 deletions process/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def calculate_profile_y(
logger.info(
f"TPROFILE: temperature pedestal is higher than core temperature. {temp_plasma_pedestal_kev = }, {t0 = }"
)

rho_index = rho <= radius_plasma_pedestal_temp_norm
self.profile_y[rho_index] = (
temp_plasma_pedestal_kev
Expand Down
Loading
Loading