DataBank Command
- Substance.DataBank.SAVEDMATERIALNAME(Tag)
This command is used for defining the substances using predefined data.
Argument
Type
Description
Tag
int
Unique integer value that will be used for referring to the defined elements or objects.
Note
DataBank command has saved materials in its self. To call one of the saved materials, by putting a “.” sign after DataBank command, list of the predefined materials will be appear (Some editors may not show). Then user should enter the tag number of the selected material in parenthesis just after the selected material.
After selecting the material, it is also possible to define or modify some properties of selected material. This case is also shown in the following example part. List of existing materials in the DataBank are mentioned in the following list.
List of existing materials in DataBank
Name
Butene
Dimethylhydrazine
propane
Octane
n_hexane
Gasoline
LPG_Liquefied_Petroleum_Gas
Example:
Define some materials using DataBank command:
Python Code
import opensrane as opr opr.Substance.DataBank.Butene(1) opr.Substance.DataBank.Dimethylhydrazine(2)
Define a material using DataBank and modify or add some properties to it:
Python Code
import opensrane as opr
Code Developed by: Bijan Sayyafzadeh