anoop_1989
Mechanical
- Feb 11, 2019
- 59
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
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