Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

global or local variable?

Status
Not open for further replies.

mtlmech

Mechanical
Jun 4, 2003
3
Hello there I am trying to navigate through /SOLU and /POST embed in a *DO,i,1,number loop but it seems that ANSYS forget the value of i when entering /SOLU or /POST...

To do things simple I have tryed only with:
*DO,i,1,ndiv
/SOLU
ANTYPE,,REST
TUNIF,Ta_vector(i)
SOLVE
FINISH
*ENDDO
and still does not work...

Any suggestion?
 
Replies continue below

Recommended for you

Have you dimensioned (*DIM) Ta_vect as an ARRAY parameter? If your input deck is not too big it may be useful to post it up here for a closer look.

-- drej --
 
Hello drej,
thank you for answering but, yes Ta_vector is an array and I am sure there is no problem with this thing because I have been using it perfectly when not using /SOLU in a *DO loop, it is really the fact that the program forget the value for i when it enters the /SOLU resulting on trying to read position 0 of Ta_vector...

mtlmech
 
what about specifying a algebraic equation on the TUNIF instead of refering to the array:

Expressing actual values based on i, by some suitable expression - instead of drawing the values from the array.
If feasible, if the value progression does lent itself towards evaluation via equation

Frank Exius
IFE Bonn Germany
Telefon ++49\2642\980409
Dienstleistung in ANSYS
FEM Berechnung numerische Simulation
Digital/virtual Prototyping Outsourcing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor