Skip to content

Commit

Permalink
Merge pull request #25 from ProjectTorreyPines/dev
Browse files Browse the repository at this point in the history
Releasing 0.1.0
  • Loading branch information
anchal-physics authored Oct 10, 2023
2 parents 25629d7 + 4c2896f commit e4f7f37
Show file tree
Hide file tree
Showing 18 changed files with 3,637 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
align_assignment = true
align_conditional = true
align_matrix = true
align_pair_arrow = true
align_struct_field = true
always_for_in = true
always_use_return = true
annotate_untyped_fields_with_any = false
conditional_to_if = true
for_in_replacement = ""
format_docstrings = true
import_to_using = true
indent = 4
indent_submodule = true
join_lines_based_on_source = true
long_to_short_function_def = true
margin = 88
normalize_line_endings = "unix"
pipe_to_function_call = true
remove_extra_newlines = true
separate_kwargs_with_semicolon = true
surround_whereop_typeparameters = true
trailing_comma = true
whitespace_in_kwargs = false
whitespace_ops_in_indices = false
whitespace_typedefs = true
yas_style_nesting = true
3 changes: 3 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config.local
/tmp
/cache
Empty file added .dvc/config
Empty file.
3 changes: 3 additions & 0 deletions .dvcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add patterns of files dvc should ignore, which could improve
# the performance. Learn more at
# https://dvc.org/doc/user-guide/dvcignore
36 changes: 36 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Format Check

on:
push:
branches: ["master", "dev", "format"]
pull_request:
branches: ["master", "dev"]
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.9.3]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}

- uses: actions/checkout@v1
- name: Install JuliaFormatter and format
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
julia -e 'using JuliaFormatter; format(".", verbose=true)'
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# File generated by Pkg, the package manager, based on a corresponding Project.toml
# It records a fixed state of all packages used by the project. As such, it should not be
# committed for packages, but should be committed for applications that require a static
# environment.
Manifest.toml
sd_input_data.json
19 changes: 19 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "SD4SOLPS"
uuid = "d8db6f1b-e564-4c04-bba3-ef399f78c070"
authors = ["David Eldon <eldond@fusion.gat.com>"]
version = "0.1.0"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Contour = "d38c429a-6771-53c6-b99e-75d170b6e991"
EFIT = "cda752c5-6b03-55a3-9e33-132a441b0c17"
GGDUtils = "b7b5e640-9b39-4803-84eb-376048795def"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
OMAS = "91cfaa06-6526-4804-8666-b540b3feef2f"
PhysicalConstants = "5ad8b20f-a522-5ce9-bfc9-ddf1d5bda6ab"
PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SOLPS2IMAS = "09becab6-0636-4c23-a92a-2b3723265c31"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
45 changes: 45 additions & 0 deletions config/simple_gas_valve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Configuration for simple gas valve model
# This is a sample file. It is not tuned for SPARC.
# p1 and p2 are taken from DIII-D GASB calibrations where available, and made up
# when not available. Delay and tau are made up but based (loosely) on experience
# with the DIII-D gas valve system.
H2:
p1: 6.5268e21 # electrons / s; valve calibration constant
p2: 0.61 # V^-1; valve calibration constant
delay: 0.0024 # s; time before flow into the VV starts responding to a command
tau: 0.071 # s; timescale for flow to catch up to new steady state flow
D2:
p1: 3.325e21 # electrons / s; valve calibration constant
p2: 0.78 # V^-1; valve calibration constant
delay: 0.0025 # s; time before flow into the VV starts responding to a command
tau: 0.072 # s; timescale for flow to catch up to new steady state flow
N2:
p1: 2.628e20
p2: 3.41
delay: 0.0026
tau: 0.073
CD4:
p1: 6.311e20
p2: 0.91
delay: 0.0025
tau: 0.074
Ne:
p1: 1.95e21
p2: 0.66
delay: 0.0028
tau: 0.098
Ar:
p1: 3.992e20
p2: 1.0
delay: 0.003
tau: 0.081
Kr:
p1: 8.75e20
p2: 0.825
delay: 0.0072
tau: 0.121
Xe:
p1: 1.29e20
p2: 0.067
delay: 0.0103
tau: 0.137
1 change: 1 addition & 0 deletions sample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ITER_Lore_2296_00000
13 changes: 13 additions & 0 deletions sample/ITER_Lore_2296_00000.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
md5: d368931510a40042e40cbe3ba5cab034
frozen: true
deps:
- path: ITER_Lore_2296_00000
repo:
url: git@github.com:ProjectTorreyPines/SOLPSTestSamples.git
rev_lock: df499f1275428ec06175c48dc4af6ecbd5ec6117
outs:
- md5: 48af1b920caaa6bc1788af8a36512638.dir
size: 322802293
nfiles: 42
hash: md5
path: ITER_Lore_2296_00000
Loading

0 comments on commit e4f7f37

Please sign in to comment.