24 January 2020 0 4K Report

I am currently running welding process simulations in Ansys Workbench. I have been doing the Simulation Set Up manually and that takes me a long time. For example: in the attached file, there is the simulation of a steel plate of only 0.25 mt in length, on which i generate 108 heat inputs (using "Heat flow") that turn on and off, according to the progress of the electric arc .The results obtained are similar to the experimental results and that is good for me; however, I must train an Artificial Neural Network and for this i need to run many simulations, which would take a long time. I know that i can use APDL commands in Ansys Workbench and automate the simulation set up, and i have found a "script" with the necessary APDL script to do it; but I don't know how to modify the script and adapt it, to the simulations that i must run (I enclose the APDL script).

I would greatly appreciate the help you can give me with this problem.

APDL script for Ansys Workbench:

! Commands inserted into this file will be executed just prior to the ANSYS SOLVE command.

! These commands may supersede command settings set by Workbench.

! Active UNIT system in Workbench when this object was created: Metric (m, kg, N, s, V, A)

! NOTE: Any data that requires units (such as mass) is assumed to be in the consistent solver unit system.

! See Solving Units in the help system for more information.

! ! /INPUT,HFLUX_func,,,1

*DIM,HEAT_FLX1,TABLE,6,22,1,,,,0

! The last number corresponds to the ID number for the coordinate system

! ! Begin of equation: Q(x,y,t)=A*exp(B*(({X}-C)^2+({Y}-D*{TIME}-E)^2)/F^2)

! *SET,HEAT_FLX1(0,0,1), 0.0, -999

*SET,HEAT_FLX1(2,0,1), 0.0

*SET,HEAT_FLX1(3,0,1), 0.0

*SET,HEAT_FLX1(4,0,1), 0.0

*SET,HEAT_FLX1(5,0,1), 0.0

*SET,HEAT_FLX1(6,0,1), 0.0

*SET,HEAT_FLX1(0,1,1), 1.0, -1, 0, 0.05, 0, 0, 2 ! "C" goes here 4te Zahl von Rechts *SET,HEAT_FLX1(0,2,1), 0.0, -2, 0, 1, 2, 2, -1

*SET,HEAT_FLX1(0,3,1), 0, -1, 0, 2, 0, 0, -2

*SET,HEAT_FLX1(0,4,1), 0.0, -3, 0, 1, -2, 17, -1

*SET,HEAT_FLX1(0,5,1), 0.0, -1, 0, 0.01, 0, 0, 1 ! "D" goes here 4te Zahl von Rechts *SET,HEAT_FLX1(0,6,1), 0.0, -2, 0, 1, -1, 3, 1

*SET,HEAT_FLX1(0,7,1), 0.0, -1, 0, 1, 3, 2, -2

*SET,HEAT_FLX1(0,8,1), 0.0, -2, 0, 0, 0, 0, -1 ! "E" goes here 4te Zahl von Rechts

*SET,HEAT_FLX1(0,9,1), 0.0, -4, 0, 1, -1, 2, -2

*SET,HEAT_FLX1(0,10,1), 0.0, -1, 0, 2, 0, 0, -4

*SET,HEAT_FLX1(0,11,1), 0.0, -2, 0, 1, -4, 17, -1

*SET,HEAT_FLX1(0,12,1), 0.0, -1, 0, 1, -3, 1, -2

*SET,HEAT_FLX1(0,13,1), 0.0, -2, 0, -3, 0, 0, -1 ! "B" goes here 4te Zahl von Rechts *SET,HEAT_FLX1(0,14,1), 0.0, -3, 0, 1, -2, 3, -1

*SET,HEAT_FLX1(0,15,1), 0.0, -1, 0, 0.005, 0, 0, 0 ! "F" goes here 4te Zahl von Rechts

*SET,HEAT_FLX1(0,16,1), 0.0, -2, 0, 2, 0, 0, -1

*SET,HEAT_FLX1(0,17,1), 0.0, -4, 0, 1, -1, 17, -2

*SET,HEAT_FLX1(0,18,1), 0.0, -1, 0, 1, -3, 4, -4

*SET,HEAT_FLX1(0,19,1), 0.0, -1, 7, 1, -1, 0, 0

*SET,HEAT_FLX1(0,20,1), 0.0, -2, 0, 6e7, 0, 0, -1 ! "A" goes here 4te Zahl von Rechts

*SET,HEAT_FLX1(0,21,1), 0.0, -3, 0, 1, -2, 3, -1

*SET,HEAT_FLX1(0,22,1), 0.0, 99, 0, 1, -3, 0, 0

! ! End of equation: Q(x,y,t)=A*exp(B*(({X}-C)^2+({Y}-D*{TIME}-E)^2)/F^2)

!-->

sf,a1,hflux,%HEAT_FLX1% ! Replace a1 with a named selection

More Jorge Freja's questions See All
Similar questions and discussions