如何在workbench中使用/config指令? 20
我需要通过APDL在workbench里杀死超出某一应力的单元。程序如下。
*get,myncmls,active,,solu,ncmls ! cumulative number of load steps
*if,myncmls,gt,0,then ! if this is after the first
cmsel,s,sec! ELEMENT component to be checked
nsle ! nodes on these elements
SELTOL,1.0e-12 ! stay within range below
nsel,r,s,eqv,230,2000000 ! re-select nodes with results above a value <<<
SELTOL ! selection tolerance back to default
*get,numnode,node,,count ! how many nodes with result above?
*if,numnode,gt,0,then
esln ! elements with any node selected
*get,numelem,elem,,count
*if,numelem,gt,0,then
ekill,all
*endif
*endif
allsel
*else
! if first load step, have result written to in-memory database
fini
/config,noeldb,0 ! write results into the database
/solu ! continue with solution
*endif
但是结果是它把所有单元都杀了
仔细一看Solution Information,里面显示The requested S data is not available. The NSEL command is ignored.,后来再仔细一看之前又写了一句The /CONFIG,NOELDB command is not valid in a Distributed ANSYS solution. Command is ignored.
请问如何使/config,noeldb指令有效呢??
帮助文件里关于 /config 的内容中有一段话,是关于分布计算的:
Distributed ANSYS uses the default FSPLIT value, and sets NOELDB = 1 and NORSTGM = 1. The FSPLIT, NOELDB, and NORSTGM options cannot be changed when using Distributed ANSYS.
将 /config 改为 save, , , , all 试试,因为这一 save 命令也会把结果数据存盘的。