[APDL][THERM] Simulating Laser Remelting (Single Track)

AV
Aditya V Nair
Wed, Aug 13, 2025 10:48 AM

Respected members,

I am Aditya V Nair, an undergraduate in my senior year of the Bachelor's of
Technology programme at NIT Karnataka, India. I am presently working
towards implementing a transient thermal analysis for laser remelting of a
plate along a single track via v2022R1 Mechanical.

In the script that I have written, the heat flux is not being applied
around the local coordinate defined for loadstep 1 and loadstep 2 however,
the heat flux is read for loadstep 3 owing to which my simulation is
unsatisfactory. I ran each of the loadsteps manually by utilizing the
'Solve Current Loadstep' feature and noticed that the results seem to be
computed at the last LCS defined in loadstep file 3 only.

The relevant snippet of script:
DO,I,1,3,1
!

PARSAV,ALL
CSYS,11            ! Switch
NSEL,S,LOC,X,-0.0003,0.0003
NSEL,R,LOC,Y,0,0
NSEL,R,LOC,Z,-0.0003,0.0003
SFDELE,ALL,HFLUX
CSYS,0              ! Go back to global CS
CSDELE,11,0,1,
LOCAL,11,0,(SOFFST+0.3e-3+((I-1)0.6e-3)),SH,(ZS1+ZS2)/2, , , ,1,1,
!

CSYS,11        ! Switch
NSEL,S,LOC,X,-0.0003,0.0003
NSEL,R,LOC,Y,0,0
NSEL,R,LOC,Z,-0.0003,0.0003
SF,ALL,HFLUX,%GAUSS%
CSYS,0              ! Go back to global CS
!*
!Set loadstep opts
TIME,I*tstep
AUTOTS,1
NSUBST,20,200,20,0
LNSRCH,1
KBC,1
!KBC1 is for stepped load
OUTRES,ALL,ALL
ALLSEL,ALL
/STATUS,SOLU
LSWRITE,I
allsel,all
*ENDDO

I hope I have abided by the requisite netiquette. I can provide the entire
script as well, if necessary.

Thanking you,

Regards,
Aditya V Nair
Undergraduate student,
Mechanical Engineering Department,
NIT Karnataka, India.

Respected members, I am Aditya V Nair, an undergraduate in my senior year of the Bachelor's of Technology programme at NIT Karnataka, India. I am presently working towards implementing a transient thermal analysis for laser remelting of a plate along a single track via v2022R1 Mechanical. In the script that I have written, the heat flux is not being applied around the local coordinate defined for loadstep 1 and loadstep 2 however, the heat flux is read for loadstep 3 owing to which my simulation is unsatisfactory. I ran each of the loadsteps manually by utilizing the 'Solve Current Loadstep' feature and noticed that the results seem to be computed at the last LCS defined in loadstep file 3 only. The relevant snippet of script: *DO,I,1,3,1 !* PARSAV,ALL CSYS,11 ! Switch NSEL,S,LOC,X,-0.0003,0.0003 NSEL,R,LOC,Y,0,0 NSEL,R,LOC,Z,-0.0003,0.0003 SFDELE,ALL,HFLUX CSYS,0 ! Go back to global CS CSDELE,11,0,1, LOCAL,11,0,(SOFFST+0.3e-3+((I-1)*0.6e-3)),SH,(ZS1+ZS2)/2, , , ,1,1, !* CSYS,11 ! Switch NSEL,S,LOC,X,-0.0003,0.0003 NSEL,R,LOC,Y,0,0 NSEL,R,LOC,Z,-0.0003,0.0003 SF,ALL,HFLUX,%GAUSS% CSYS,0 ! Go back to global CS !* !Set loadstep opts TIME,I*tstep AUTOTS,1 NSUBST,20,200,20,0 LNSRCH,1 KBC,1 !KBC1 is for stepped load OUTRES,ALL,ALL ALLSEL,ALL /STATUS,SOLU LSWRITE,I allsel,all *ENDDO I hope I have abided by the requisite netiquette. I can provide the entire script as well, if necessary. Thanking you, Regards, Aditya V Nair Undergraduate student, Mechanical Engineering Department, NIT Karnataka, India.
DG
David Gross
Wed, Aug 13, 2025 1:05 PM

Aditya,

I think you want to use the TIME and SOLVE commands rather than LSWRITE.

Regards,

David


David J. Gross, P.E., ASME Fellow | Dominion Engineering, Inc.
Director, Federal Services
12100 Sunrise Valley Drive, Suite 220 | Reston, VA 20191
office 703.657.7300 | desk 703.657.7311 | mobile 301.580.3066
dgross@domeng.com mailto:dgross@domeng.com | domeng.com http://www.domeng.com/

[cid:image001.png@01DC0C31.64F0DD70]

-----Original Message-----
From: Aditya V Nair via Xansys xansys-temp@list.xansys.org
Sent: Wednesday, August 13, 2025 6:48 AM
To: xansys-temp@list.xansys.org
Cc: Aditya V Nair adityavnair.221me104@nitk.edu.in
Subject: [Xansys] [APDL][THERM] Simulating Laser Remelting (Single Track)

*** WARNING: This email originated from outside of the organization. Exercise caution when viewing attachments, clicking links, or responding to requests. ***

Respected members,

I am Aditya V Nair, an undergraduate in my senior year of the Bachelor's of Technology programme at NIT Karnataka, India. I am presently working towards implementing a transient thermal analysis for laser remelting of a plate along a single track via v2022R1 Mechanical.

In the script that I have written, the heat flux is not being applied around the local coordinate defined for loadstep 1 and loadstep 2 however, the heat flux is read for loadstep 3 owing to which my simulation is unsatisfactory. I ran each of the loadsteps manually by utilizing the 'Solve Current Loadstep' feature and noticed that the results seem to be computed at the last LCS defined in loadstep file 3 only.

The relevant snippet of script:

*DO,I,1,3,1

!*

PARSAV,ALL

CSYS,11            ! Switch

NSEL,S,LOC,X,-0.0003,0.0003

NSEL,R,LOC,Y,0,0

NSEL,R,LOC,Z,-0.0003,0.0003

SFDELE,ALL,HFLUX

CSYS,0              ! Go back to global CS

CSDELE,11,0,1,

LOCAL,11,0,(SOFFST+0.3e-3+((I-1)*0.6e-3)),SH,(ZS1+ZS2)/2, , , ,1,1,

!*

CSYS,11        ! Switch

NSEL,S,LOC,X,-0.0003,0.0003

NSEL,R,LOC,Y,0,0

NSEL,R,LOC,Z,-0.0003,0.0003

SF,ALL,HFLUX,%GAUSS%

CSYS,0              ! Go back to global CS

!*

!Set loadstep opts

TIME,I*tstep

AUTOTS,1

NSUBST,20,200,20,0

LNSRCH,1

KBC,1

!KBC1 is for stepped load

OUTRES,ALL,ALL

ALLSEL,ALL

/STATUS,SOLU

LSWRITE,I

allsel,all

*ENDDO

I hope I have abided by the requisite netiquette. I can provide the entire script as well, if necessary.

Thanking you,

Regards,

Aditya V Nair

Undergraduate student,

Mechanical Engineering Department,

NIT Karnataka, India.


Xansys mailing list -- xansys-temp@list.xansys.orgmailto:xansys-temp@list.xansys.org To unsubscribe send an email to xansys-temp-leave@list.xansys.orgmailto:xansys-temp-leave@list.xansys.org If you are receiving too many emails from XANSYS please consider changing account settings to Digest mode which will send a single email per day.

Please send administrative requests such as deletion from XANSYS to xansys-mod@tynecomp.co.ukmailto:xansys-mod@tynecomp.co.uk and not to the list

Aditya, I think you want to use the TIME and SOLVE commands rather than LSWRITE. Regards, David ________________________________ David J. Gross, P.E., ASME Fellow | Dominion Engineering, Inc. Director, Federal Services 12100 Sunrise Valley Drive, Suite 220 | Reston, VA 20191 office 703.657.7300 | desk 703.657.7311 | mobile 301.580.3066 dgross@domeng.com <mailto:dgross@domeng.com> | domeng.com <http://www.domeng.com/> [cid:image001.png@01DC0C31.64F0DD70] -----Original Message----- From: Aditya V Nair via Xansys <xansys-temp@list.xansys.org> Sent: Wednesday, August 13, 2025 6:48 AM To: xansys-temp@list.xansys.org Cc: Aditya V Nair <adityavnair.221me104@nitk.edu.in> Subject: [Xansys] [APDL][THERM] Simulating Laser Remelting (Single Track) *** WARNING: This email originated from outside of the organization. Exercise caution when viewing attachments, clicking links, or responding to requests. *** Respected members, I am Aditya V Nair, an undergraduate in my senior year of the Bachelor's of Technology programme at NIT Karnataka, India. I am presently working towards implementing a transient thermal analysis for laser remelting of a plate along a single track via v2022R1 Mechanical. In the script that I have written, the heat flux is not being applied around the local coordinate defined for loadstep 1 and loadstep 2 however, the heat flux is read for loadstep 3 owing to which my simulation is unsatisfactory. I ran each of the loadsteps manually by utilizing the 'Solve Current Loadstep' feature and noticed that the results seem to be computed at the last LCS defined in loadstep file 3 only. The relevant snippet of script: *DO,I,1,3,1 !* PARSAV,ALL CSYS,11 ! Switch NSEL,S,LOC,X,-0.0003,0.0003 NSEL,R,LOC,Y,0,0 NSEL,R,LOC,Z,-0.0003,0.0003 SFDELE,ALL,HFLUX CSYS,0 ! Go back to global CS CSDELE,11,0,1, LOCAL,11,0,(SOFFST+0.3e-3+((I-1)*0.6e-3)),SH,(ZS1+ZS2)/2, , , ,1,1, !* CSYS,11 ! Switch NSEL,S,LOC,X,-0.0003,0.0003 NSEL,R,LOC,Y,0,0 NSEL,R,LOC,Z,-0.0003,0.0003 SF,ALL,HFLUX,%GAUSS% CSYS,0 ! Go back to global CS !* !Set loadstep opts TIME,I*tstep AUTOTS,1 NSUBST,20,200,20,0 LNSRCH,1 KBC,1 !KBC1 is for stepped load OUTRES,ALL,ALL ALLSEL,ALL /STATUS,SOLU LSWRITE,I allsel,all *ENDDO I hope I have abided by the requisite netiquette. I can provide the entire script as well, if necessary. Thanking you, Regards, Aditya V Nair Undergraduate student, Mechanical Engineering Department, NIT Karnataka, India. _______________________________________________ Xansys mailing list -- xansys-temp@list.xansys.org<mailto:xansys-temp@list.xansys.org> To unsubscribe send an email to xansys-temp-leave@list.xansys.org<mailto:xansys-temp-leave@list.xansys.org> If you are receiving too many emails from XANSYS please consider changing account settings to Digest mode which will send a single email per day. Please send administrative requests such as deletion from XANSYS to xansys-mod@tynecomp.co.uk<mailto:xansys-mod@tynecomp.co.uk> and not to the list