Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with unknown parameter names

Status
Not open for further replies.

laserablaatio

Mechanical
Joined
Oct 23, 2006
Messages
18
Location
FI
Hi all,
Is there any way to change ansys behaviour with an unknown parameter value? I would like the program to stop batch processing when an unknown parameter value is encountered - now it does not do that, which may lead to hard-to-find errors.

An example in the version I use (9.2)
tmpvar = DINGDONG !(DINGDONG not defined previously)
!output in interactive mode:
!*** WARNING ***
!Unknown parameter name= DINGDONG. A value of 7.888609052E-31 !will be used.
!
!no output in batch mode
 
Hi,

The comand

*get,partype,parm,DINGDONG,type

checks if parameter is defined and if so, it checks what kind of parapater that is.

The you can use the *if comand to stop the run if necessary:

*if,partype,eq,-1,then
/exit
*endif

Regards,
Alex
 
Look at the /NERR command. You can set program to stop at the first warning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top