Continue to Site

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!

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

Status
Not open for further replies.

AK1984

Structural
Apr 17, 2012
11
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.
 
Replies continue below

Recommended for you

The previous record key no. 1 provides the element number, integration point etc.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor