Global

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

FormatPath(path) → {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

OccupantButtonOnClick()

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:
  • Object

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:
  • Object

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:
  • Object

ProtocolVehicleJSON

Description:
  • an array of VehicleOccupant-like objects
Source:
Properties:
Name Type Description
occupants Array.<VehicleOccupantJSON>
structures Array.<string>
an array of VehicleOccupant-like objects
Type:
  • Object

TibiaIndexCriticalLoads

Source:
Properties:
Name Type Description
compression number Critical compression (kN)
bending number Critical bending (Nm)
Type:
  • Object

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:
  • Object

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:
  • Object