Skip to content

Commit f88c2f3

Browse files
authored
Merge pull request #21 from streeve/input_docs
Add input docs
2 parents 4e80a36 + d614f39 commit f88c2f3

File tree

2 files changed

+102
-2
lines changed

2 files changed

+102
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,19 @@ make -j install
6262

6363
## Run Finch
6464

65-
The main Finch examples can be run with the scripts provided in `examples/`.
65+
The main Finch examples can be run with the scripts provided in `examples/`. Inputs are described in more detail in the [`examples/README`](examples/README.md).
6666

67-
This includes generating a scan path (`create_scan_path/`) and simulating the heat transfer for a simple path (`single_line/`).
67+
This includes generating a scan path (the provided script defines path to the executable and inputs for the example):
68+
```
69+
cd examples/create_scan_path
70+
./run_example.sh
71+
```
72+
73+
and simulating the heat transfer for a simple path:
74+
```
75+
cd examples/single_line
76+
./run_example.sh
77+
```
6878

6979
## Citing
7080

examples/README.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Finch examples
2+
3+
Examples included in Finch are scan path creation and various versions of a single line additive case.
4+
5+
6+
# Finch inputs
7+
8+
All inputs are passed to Finch in a JSON format.
9+
10+
## Temporal parameters (`time`)
11+
12+
- `start_time`: Simulation start time
13+
- units: `s`
14+
- `end_time`: Simulation end time
15+
- units: `s`
16+
- `Co`: Courant number
17+
- units: unitless
18+
- `total_output_steps`: Frequency to output simulation data (across the full grid)
19+
- units: unitless
20+
- `total_monitor_steps`: Frequency to output timing information
21+
- units: unitless
22+
23+
## Spatial parameters (`space`)
24+
25+
- `initial_temperature`: Initial temperature at all grid points
26+
- units: `K`
27+
- `cell_size`: Grid cell size
28+
- units: `m`
29+
- `global_low_corner`: Bottom corner of the physical domain
30+
- units: `m`
31+
- `global_high_corner`: Top corner of the physical domain
32+
- units: `m`
33+
- `ranks_per_dim`: MPI ranks per dimension (replaced if incompatible with resource set)
34+
- units: unitless
35+
- optional (defaults to MPI-determined cartesian domain decomposition)
36+
37+
## Material properties (`properties`)
38+
39+
- `density`: Material density
40+
- units: `kg/m^3`
41+
- `specific_heat`: Specific heat capacity
42+
- units: `J/g/K`
43+
- `thermal_conductivity`: Thermal conductivity
44+
- units: `W/m/K`
45+
- `latent_heat`: Latent heat of fusion
46+
- units: `J/kg`
47+
- `solidus`: Solidus temperature
48+
- units: `K`
49+
- `liquidus`: Liquidus temperature
50+
- units: `K`
51+
52+
## Laser source parameters (`source`)
53+
- `absorption`: Laser absorption
54+
- units: unitless
55+
- `two_sigma`: Laser beam radius (half D4_sigma beam diameter)
56+
- units: `m`
57+
- `scan_path_file`: File containing laser path information
58+
59+
60+
61+
## Output sampling (`sampling`)
62+
This entire section is optional.
63+
64+
- `type`: Type of sampling
65+
- options: `solidification_data` (outputs sampled solidification data with spatial position x, y, z; melting time tm; solidification start time (time at which the location goes below the liquidus temperature) ts; solidification rate R; and (optionally) temperature gradients Gx, Gy, Gz)
66+
- `format`: Output format
67+
- options: `default` (output sampled solidification data) and `exaca` (output only sampled solidification data relevant to ExaCA microstructure prediction: does not output Gx, Gy, Gz)
68+
- `directory_name`: Path to save output
69+
- optional (defaults to "solidification/", within the current directory)
70+
71+
72+
# Scan path creation inputs
73+
74+
- `min_point`: Lower corner of scan path region
75+
- units: `m`
76+
- `max_point`: Upper corner of scan path region
77+
- units: `m`
78+
- `hatch`: Hatch spacing
79+
- units: `m`
80+
- `angle`: Scan angle
81+
- units: `degrees`
82+
- `power`: Laser power
83+
- units: `W`
84+
- `speed`: Laser scan speed
85+
- units: `m/s`
86+
- `dwell_time`: Dwell time
87+
- units: `degrees`
88+
- `bi_direction`: If true, reverse the scan direction for every line
89+
- boolean
90+
- optional (defaults to true)

0 commit comments

Comments
 (0)