create
Modifies the PROCESS input file IN.DAT so all the iteration variables are given their values from the output file MFILE.DAT.
feasible_point(filename, position)
Function to check for feasible solution before creating new IN.DAT, or to determine the first or last feasible point in a scan
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
name of MFILE.DAT to read |
required | |
position
|
int
|
feasible position index |
required |
Returns:
| Name | Type | Description |
|---|---|---|
scan_point |
scan number to use when writing new file |
Source code in process/core/io/in_dat/create.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
get_iteration_variables(filename, scan)
Function to get a list of the iteration variables and their values from MFILE.DAT
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
name of MFILE.DAT to read |
required | |
scan
|
scan number to use |
required |
Returns:
| Name | Type | Description |
|---|---|---|
iteration_vars |
dictionary of iteration variables in MFILE and their values. |
Source code in process/core/io/in_dat/create.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
replace_iteration_variables(iteration_vars, in_data)
Function to replace the iteration variables in IN.DAT if the variable is not defined in IN.DAT it will add the variable to the end of the file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
iteration_vars
|
dictionary of iteration variables from MFILE.DAT and their values |
required | |
in_data
|
IN.DAT data object. |
required |
Source code in process/core/io/in_dat/create.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
write_indat(mfile, indat, output, feasible_point_index)
Source code in process/core/io/in_dat/create.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |