Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Oct 23, 2006
18
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
 
Replies continue below

Recommended for you

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