×
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

DFLUX SUBROUTINE

DFLUX SUBROUTINE

DFLUX SUBROUTINE

(OP)
Dear all
I have written a user subroutine in Fortran for Double Ellipsoidal heat input.The purpose is to to do welding analysis in Abaqus for a 3D rectangular plate.But after running the code it is showing Problem during compilation.Any please pointout what is the error in the code.

SUBROUTINE DFLUX(FLUX,SOL,KSTEP,KINC,TIME,NOEL,NPT,COORDS,
1 JLTYP,TEMP,PRESS,SNAME)
INCLUDE 'ABA_PARAM.INC'

DIMENSION FLUX(2),TIME(2),COORDS(3)
CHARACTER*80 SNAME
a=0.003
b=0.003
cf=0.001
c=0.003
pi=3.1415
eff=0.8
V=24
v=0.00166
I=100
x0=0
y0=0
z0=0
d=v*TIME(2)
t=TIME(2)
x1=COORDS(1)-x0
y1=COORDS(2)-y0
z1=COORDS(3)-(z0+d)

Q=((eff*V*I)/(v*.001))
A=-3*x1**2/a**2
B=-3*y1**2/b**2
C=-3*z1**2/c**2
D=6*Q*cf*1.732/(a*b*c*pi*sqrt(pi))
IF(KSTEP.EQ.1) then

H=D*EXP(A+B+C)

FLUX(1)=H
else
FLUX(1)=0
end if
return
end

RE: DFLUX SUBROUTINE

I'm not a Fortran expert, but isn't there an END IF missing?

Are variables in Fortran case sensitive?

RE: DFLUX SUBROUTINE

(OP)
Thank you Mustaine3

It was missing.I have corrected the code with END IF.Also change to capital letters.It is running successfully now.But after running the code I am not getting any change in temperature.Only it is showing the ambient temperature of 25 degree.Also it seems like it is not reading any heat input

RE: DFLUX SUBROUTINE

Just for the record: Problems in compilation are usually written in the .log-file.

On topic: You could add something like "write(6,*) FLUX(1)" to your subroutine. By doing that, the value of FLUX(1) for each increment will be written into the .dat-file. If the values there are zero, you know that something is wrong with your subroutine.

However, I suggest to test any subroutine with a very simple model, so you can get an idea on how (or if) it behaves.

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! Already a Member? Login


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close