# file: num2str.tcl
# num2str in tcl/tk
# get float number "foo" from ansys
# output string "strfoo" in certain format
proc num2str_ {} {
set foo [ans_getvalue parm, foo ,value]
ans_sendcommand [format "strfoo='%8.6f'" $foo]
}
num2str_ansys command line 中运行
~eui, 'source num2str.tcl'
GMT+8, 2024-12-25 21:13 , Processed in 0.062026 second(s), 15 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.