×
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

Reading S22 stress for a specific element from *.fil file

Reading S22 stress for a specific element from *.fil file

Reading S22 stress for a specific element from *.fil file

(OP)
Hello everyone,

I am using FORTRAN to read the *.fil file and I have this question:

How can I read S22 stress (record 11) for a specific element number

Best Regards,
A.K.

RE: Reading S22 stress for a specific element from *.fil file

The previous record key no. 1 provides the element number, integration point etc.

RE: Reading S22 stress for a specific element from *.fil file

(OP)
Thank you for responding,

So if I am looking for say element no. 333, the code will be like this:


IF (KEY.EQ.1) THEN
'Save the index no. of the element
ElementNo=JRRAY(1,3)
DO i=1,JRRAY(1,2)
IF (ElementNo(i) .EQ. 333) THEN
Index=i
END IF
ENDDO
END IF

'Extract the S22 stress for the element
IF (KEY.EQ.11) THEN
Sarray= JRRAY(1,3)
Stress22=Sarray(Index)
END IF

Is that Correct,
Thank you,
A.K.

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