INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-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!

*Tek-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.

Jobs

Writing an equantion in Compaq Visual fortran 6.1

Writing an equantion in Compaq Visual fortran 6.1

Writing an equantion in Compaq Visual fortran 6.1

(OP)
hi guys , i am in trouble , i am in Phd degree and i need to write this equation in Compaq Visual fortran 6.1 but nothing work
i need your help, please


thank you very much

RE: Writing an equantion in Compaq Visual fortran 6.1

I suggest you do a few things:
- break down the equation into several lines to make it easier to read and make it look as much as possible to the textbook
- leave the "sign(0.8,-0.2)" operation out of the double loop, its value does not change with the indices...it will always be -0.8
- BECAUSE the exponent "(am-1)" turns out to be negative, I would suggest you move everything to the denominator so that you can raise it to a positive power

CODE --> Fortran90

do i = 1, L1
  do j = 1, M1
    A = ( (u(i,j)-u(i-1,j))/xdif(i) )**2 + ( (v(i,j)-v(i,j-1))/ydif(j) )**2
    B = ( (v(i,j)-v(i-1,j))/xdif(i)      +   (u(i,j)-u(i,j-1))/ydif(j) )**2
    
    Viscapp(i,j) = 1.0 / ( ( sqrt( 2*A + B ) )**(1.8) )
  end do
end do 

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 Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

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

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close