Rocket Propulsion Analysis
Home Licensing Downloads Contact

Scripting Utility

Only available in RPA Standard Edition

The scripting language provided is based on the ECMAScript scripting language, as defined in standard ECMA-262.

Scripting utility implements binding to many internal functions of RPA, so that the user can program and run the following tasks:

  • load, manipulate and write configuration files
  • search the thermodynamic database by species name
  • get thermodynamic properties of the species
  • prepare mono- bi- and multipropellant compositions
  • run typical combustion problems (p,H)=const, (p,S)=const, (p,T)=const
  • run typical rocket propulsion problems
  • use in a custom JavaScript program all features listed above

Scripting utility can be started in either an interactive mode or a batch mode.

Built-In Functions

Besides standard ECMA-262 functions, RPA Scripting Utility provides the following built-in functions:

Function Description
load(path_to_script) Load external script defined by it's path.

Example:

load("resources/scripts/config.js");
print(parameter) Print out the parameter in console and log file.

Examples:

print("Starting analysis...");
print("Is_v=" + pr.getNozzleExitSection().getIs_v().toPrecision(7));
exit() or
quit()
Exit from the interactive interpreter.

API Reference

Besides standard ECMA-262 API, RPA Scripting Utility provides the following APIs:

API Description
Configuration API API for loading, manipulation and writing configuration files.
Thermo API API for searching the thermodinamic database, obtaining species properties, preparing mono- bi- and multipropellant compositions.
Reaction API API for running typical combustion problems (p,H)=const, (p,S)=const, (p,T)=const, obtaining thermodinamic properties of the reaction products.
Performance API API for running typical rocket propulsion problems and obtaining performance parameters.

Copyright © 2009-2012 Alexander Ponomarenko  |  Contact  | 
Last modified: May 14, 2011