add quick access for Poisson ratio
This commit is contained in:
@@ -192,10 +192,13 @@ def main():
|
||||
help='list available material information')
|
||||
parser_get.add_argument('-r', '--rho', dest='const_collection',
|
||||
action='append_const', const="rho",
|
||||
help='get density')
|
||||
help='get density rho')
|
||||
parser_get.add_argument('-E', '--E', dest='const_collection',
|
||||
action='append_const', const="E",
|
||||
help='get Young\'s modulus, module of elasticity')
|
||||
help='get Young\'s modulus E, module of elasticity')
|
||||
parser_get.add_argument('-n', '--nu', dest='const_collection',
|
||||
action='append_const', const="nu",
|
||||
help='get Poisson ratio nu')
|
||||
parser_get.add_argument('-R', '--R_p', dest='const_collection',
|
||||
action='append_const', const="R_p",
|
||||
help='get yield strength R_p')
|
||||
@@ -228,6 +231,7 @@ def main():
|
||||
mat_index = {
|
||||
"rho": "Mechanical Properties/rho",
|
||||
"E": "Mechanical Properties/E",
|
||||
"nu": "Mechanical Properties/nu",
|
||||
"R_p": "Mechanical Properties/Yield strength",
|
||||
"R_m": "Mechanical Properties/R_m"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user