creilly
Mechanical
- Apr 3, 2012
- 13
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)
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)