Methods
find_all_json_files(root, file_listopt) → {Array.<string>}
- Description:
- returns an array of JSON files in and below root directory path
- Source:
Parameters:
Name |
Type |
Attributes |
Default |
Description |
root |
string
|
|
|
path to start recursive seach for files |
file_list |
Array.<string>
|
<optional>
|
[]
|
the list of files found so far (iterative call) |
Returns:
-
Type
-
Array.<string>
find_lsdyna_files(dir, job_name, file_type) → (nullable) {string}
- Description:
- Searches a directory for filenames matching either Arup or LSTC filename conventions.
Searches for files in directory of type , possibly containing
, and returns the first match in the priority lists below.
- Source:
Example
let absolute_filename = find_lsdyna_files("C:/my/results/directory", "job_001", "D3PLOT");
Parameters:
Name |
Type |
Description |
dir |
string
|
Directory to search |
job_name |
string
|
Root filename to search for |
file_type |
string
|
File type to search for (can be "PRIMER", "D3PLOT", "T/HIS", "OTF") |
Returns:
-
Type
-
string
- Description:
- format path by changing all backslashes to forward slashes, remove any double slashes and resolve any ../ directories
- Source:
Parameters:
Name |
Type |
Description |
path |
string
|
|
Returns:
formatted_path
-
Type
-
string
- Description:
- update the filters on the occupant window to only allow valid occupants
- Source:
ReadJSON(filename) → {object}
- Description:
- read json string representation (with 4 space indent)
- Source:
Parameters:
Name |
Type |
Description |
filename |
string
|
|
Returns:
-
Type
-
object
WriteJSON(filename, object)
- Description:
- write json string representation (with 4 space indent)
- Source:
Parameters:
Name |
Type |
Description |
filename |
string
|
|
object |
any
|
|
Type Definitions
Filters
- Description:
- The user data object in the workflow file
- Source:
Properties:
Name |
Type |
Description |
suppliers |
Array.<string>
|
list of valid suppliers |
products |
Array.<string>
|
list of valid products |
physiologies |
Array.<string>
|
list of valid physiologies |
The user data object in the workflow file
Type:
NameMeasurement
- Description:
- The NameMeasurement object returned by GetNameAndMeasurements and used in OccupantEntity.FromTagAndType
- Source:
Properties:
Name |
Type |
Description |
name |
string
|
measurement name (appears in gui label) |
measurements |
Array.<Measurement>
|
measurements |
The NameMeasurement object returned by GetNameAndMeasurements and used in OccupantEntity.FromTagAndType
Type:
NIJCriticalLoads
- Source:
Properties:
Name |
Type |
Description |
tension |
number
|
Critical tension (kN) |
compression |
number
|
Critical compression (kN) |
flexion |
number
|
Critical flexion (Nm) |
extension |
number
|
Critical extension (Nm) |
Type:
ProtocolVehicleJSON
- Description:
- an array of VehicleOccupant-like objects
- Source:
Properties:
an array of VehicleOccupant-like objects
Type:
TibiaIndexCriticalLoads
- Source:
Properties:
Name |
Type |
Description |
compression |
number
|
Critical compression (kN) |
bending |
number
|
Critical bending (Nm) |
Type:
VehicleOccupantJSON
- Description:
- VehicleOccupant-like object
- Source:
Properties:
Name |
Type |
Description |
position |
string
|
Occupant position |
product |
string
|
Occupant product type |
physiology |
string
|
Occupant physiology |
VehicleOccupant-like object
Type:
ViscousCriterionConstants
- Source:
Properties:
Name |
Type |
Description |
A |
number
|
Viscous Criterion Constant A (for m/s) |
B |
number
|
Viscous Criterion Constant B (for m/s) |
Type: