Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
use precinput.asc for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 20, 2020
1 parent f90e500 commit 6e212f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions DATCAR_spectrum.asc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
2 (kiappel, INTEGER)
conttanh.dat input file (initial ionospheric conditions) leave this many spaces separating
conttanh.dat input file (initial ionospheric conditions) leave this many spaces separating
1. time step (seconds) (REAL)
1. number of seconds between fluid code outputs (seconds, REAL)
2013090 date of simulation (YYYYDDD)
1. number of seconds between fluid code outputs (seconds, REAL)
2013090 date of simulation (YYYYDDD)
32419. UT start time for simulation (seconds)
300. duration of run (seconds)
2 jpreci, precipation type (see table below, INTEGER)
65.12,-147.43 location of simulation, geodetic latitude,longitude
65.12,-147.43 location of simulation, geodetic latitude,longitude
0. duration of convection (in seconds) before the reference (<= 0, we do not follow the field lines) (tempsconv_1, REAL)
0. duration of convection (in seconds) before the reference (<= 0, we do not follow the field lines) (tempsconv, REAL)
0 time interval (seconds) between two tubes (step,REAL)
Expand All @@ -22,7 +22,7 @@ conttanh.dat input file (initial ionospheric cond
1. N correction factor (REAL)
1. H correction factor (REAL)
-1.e-4 topside electron heat flux (mW/m^2, REAL)
precinput.dat electron precipitation distribution file (energy (eV) in first column, number flux (cm^-2 s^-1 eV^-1 sr^-1) in second column)
precinput.asc electron precipitation distribution file (energy (eV) in first column, number flux (cm^-2 s^-1 eV^-1 sr^-1) in second column)
1 precint, precipation energy interpolation (see table below, INTEGER)
1 precext, precipation energy extrapolation (see table below, INTEGER)
32460. precipitation start time (seconds from day start)
Expand Down
6 changes: 3 additions & 3 deletions transcar/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
FOK = "finish.status"


PREC = "dir.input/precinput.dat" # NOT based on root, MUST be relative!!
PREC = "dir.input/precinput.asc" # NOT based on root, MUST be relative!!


def cp_parents(files: T.Sequence[Path], target_dir: Path, origin: Path = None) -> None:
Expand Down Expand Up @@ -124,7 +124,7 @@ def setup_dirs(odir: Path, params: T.Dict[str, T.Any]) -> T.Tuple[T.Dict[str, T.

def setup_monoprec(odir: Path, inp: T.Dict[str, T.Any], beam: T.Dict[str, float], flux0: float) -> None:
"""
write dir.input/precinput.dat for monoenergetic beam case
write dir.input/precinput.asc for monoenergetic beam case
"""
ofn = Path(odir).expanduser() / PREC

Expand All @@ -148,7 +148,7 @@ def setup_monoprec(odir: Path, inp: T.Dict[str, T.Any], beam: T.Dict[str, float]

def setup_spectrum_prec(odir: Path, inp: T.Dict[str, T.Any], beam: pandas.DataFrame) -> None:
"""
write dir.input/precinput.dat for beam with shaped differential number flux
write dir.input/precinput.asc for beam with shaped differential number flux
"""
ofn = Path(odir).expanduser() / PREC

Expand Down

0 comments on commit 6e212f9

Please sign in to comment.