Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

UMAT: open and read an external file

Status
Not open for further replies.

RGX124

Mechanical
Joined
Apr 5, 2005
Messages
75
Location
FR
Hello,

I'd like to know if it is possible to put this kind of command in a UMAT subroutine:
open (unit=400,file='coeff.txt',status='old')
do i = 1, nbeElt-1
read ( 400 , * ) nel(i)
read ( 400 , * ) ak1(i)
read ( 400 , * ) amu1(i)
end do

I would like to read data from an external file called coeff.txt. It consists of 2000 data that I cannot define as props.
Please let me know.
Thanks for your help

Rgx124
 
Yes you can do that. Read the manual for Fortran unit numbers you can/can't use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top