×
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

Abaqus Subroutine DISP

Abaqus Subroutine DISP

Abaqus Subroutine DISP

(OP)
Hi Everyone,

I have now managed to run the fortran code, but it won't assign the values that I want to assign to the U(1) variable from the TXT file.

In the attached file I have the pressure file that contains the nodes and the corresponding pressure values which I want to assign through DISP Subroutine. The code below

SUBROUTINE DISP(U,KSTEP,KINC,TIME,NODE,NOEL,JDOF,COORDS)

INCLUDE 'ABA_PARAM.INC'


C REAL, DIMENSION(1:304,1:3), ALLOCATABLE :: A
C REAL, DIMENSION(304), ALLOCATABLE :: U
C CHARACTER*80 CNAME


DIMENSION U(1),TIME(2),COORDS(3),NODELOC(1095)

REAL,DIMENSION(1095,3) :: A
INTEGER :: I,J,W

OPEN(UNIT =16 , FILE = "C:\Pr100.txt",STATUS = "OLD")

DO 999, I=1,1095,1
READ(16,*)(A(I,J),J=1,3)
WRITE(6,*) (A(I,J),J=1,3)
999 CONTINUE
CLOSE(UNIT = 16)
JRCD = 0
JTYP = 0
NODEGLOB = 0

DO 99, J=1,1095,1

NODELOC(J) = A(J,1)


CALL GETINTERNAL('PART-1-1',NODELOC(J),JTYPE,NODEGLOB,JRCD)
IF (NODE.EQ.NODEGLOB.AND.JDOF.EQ.1) THEN


U(1) = A(J,2)

RETURN
END IF

99 ENDDO
END IF
RETURN
END

The above code runs successfully but doesn't assign the required values (the values which it reads fro the TXT file) to the variable U(1). Please help me with this and suggest some ideas that could be implemented.



Thanks in advance



Cheers!

Savan

RE: Abaqus Subroutine DISP

Hi,

Do you mind share your *.inp file as well?
What does each column in *.txt files mean?

Regards,
Bartosz

VIM filetype plugin for Abaqus
https://github.com/gradzikb/vim-abaqus

RE: Abaqus Subroutine DISP

Make a small test example and write control output after each important codeline. With that you can see where the value of your variable differs from what you expect.

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