×
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

Why will Abaqus sun-routine MAIN.f not execute when trying to read in variables from a text file?

Why will Abaqus sun-routine MAIN.f not execute when trying to read in variables from a text file?

Why will Abaqus sun-routine MAIN.f not execute when trying to read in variables from a text file?

(OP)
Hi,
Can anyone help me get the abaqus subrutine to read in variables from a .txt file?

I am trying to get the Abaqus subroutine "main.f" to read variables from a text file. If i state the variables in the directly in the subroutine it runs, if i try to get it to read them from a .txt file it fails with the below message:

Abaqus Error: The executable /opt/abaqus/64bit/6.11-2/exec/standard.exe
aborted with system error "Abnormal termination signal" (signal 6).
Please check the .dat, .msg, and .sta files for error messages if the files
exist. If there are no error messages and you cannot resolve the problem,
please run the command "abaqus job=support information=support" to report and
save your system information. Use the same command to run Abaqus that you
used when the problem occurred. Please contact your local Abaqus support
office and send them the input file, the file support.log which you just
created, the executable name, and the error code.
Abaqus/Analysis exited with errors


I beleive that the code to read the data in is ok. Is there something within the abaqus software which stops the subroutine reading in these values. These values will not change during the simulation. I just want to have a single file where i specify all my variables and then the various sub routines read them from there.

I am using abaqus


My code to read the data is below:

REAL T_SPRUE_BREAKAWAY, CASTING_FILL_T, CASTING_MIN_H
REAL CASTING_MAX_H, COMPVALUE
C
INTEGER MIN_NODE, MAX_NODE
C
C
OPEN (UNIT=17, FILE='cycle_sub_variables.def', STATUS='old')
READ (17, 31) COMPVALUE ! NOT USED IN THIS SUB ROUTINE
READ (17, 32) MIN_NODE,MAX_NODE ! NOT USED IN THIS SUB ROUTINE
READ (17, 31) CASTING_MAX_H ! Height of top of casting (m)
READ (17, 31) CASTING_MIN_H ! Height of bottom of casting (bottom of down sprue) (m)
READ (17, 31) CASTING_FILL_T ! Casting fill time (s)
READ (17, 31) T_SPRUE_BREAKAWAY ! Time Sprue breaks away from casting (s)
CLOSE (UNIT=17)
C
31 FORMAT (F5.3)
32 FORMAT (I10,I10)


The contents of the text file is below:

1
9000,70328
0.5
0.0
25.0
160.0

#Line 1 is the required value difference between starting and ending temperature within one cycle (Delta T).
#Line 2 die nodes starting and ending number. Makes sure the wheel nodes are not includes in this
range as they will never reach steady state. Put the casting nodes as the first or the last of the
node number range when meshing so that they can be excluded.
#Line 3 is the height of top of casting (m)
#Line 4 is the height of bottom of casting (bottom of down sprue) (m)
#Line 5 is the casting fill time (s)
#Line 6 is the time at which the sprue breaks away from casting (s)


If i state the variables as below it works fine:

CASTING_MAX_H = 0.D0 ! Height of top of casting (m)
CASTING_MIN_H = -0.225D0 ! Height of bottom of casting (bottom of down sprue) (m)
CASTING_FILL_T = 25.D0 ! Casting fill time (s)
T_SPRUE_BREAKAWAY = 160.D0 ! Time Sprue breaks away from casting (s)


RE: Why will Abaqus sun-routine MAIN.f not execute when trying to read in variables from a text file?

Hi,

Two points from my side.

1. Use full path to your external file.
Instead

Quote:

"FILE='cycle_sub_variables.def'"
use

Quote:

"FILE='c:/Temp/cycle_sub_variables.def'"

The point here is that the subroutine is not compile in directory where you run your job.
Check error lines above the error message you showed.
If I am right you should find there information "file not found" and directory where the compilator
is looking the file.

2. In first line of your file you have integer value 1 and you try to read it as real value.
You should change "1" into "1.0".

With this two modification I was able to run your code with success.

Please let me know is it working also for you.

Regards,
Bartosz

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