×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

global or local variable?

global or local variable?

global or local variable?

(OP)
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?

RE: global or local variable?

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 --

RE: global or local variable?

(OP)
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

RE: global or local variable?

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
www.ife.subito.cc
Telefon ++49\2642\980409
Dienstleistung in ANSYS
FEM Berechnung numerische Simulation
Digital/virtual Prototyping Outsourcing

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources