|
[Sponsors] |
Expected moving path of laser in y direction in UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2021, 08:58 |
Expected moving path of laser in y direction in UDF
|
#1 |
New Member
Xu Zhao
Join Date: Jun 2021
Posts: 5
Rep Power: 4 |
Hello, I'm currently simulate the oscillation laser welding process. The waveform of oscillation path in y direction is triangle wave (From zero to amplitude value A, then from A to -A, eventually from -A to zero). The cycle duty is 1/f_osc (f_osc is the oscillation frequency). The program of oscillation path in y direction is as below. Simulation results shows the position in y direction at the initial time-step is -A mm, while 0 mm for the expected result. Anyone who encounters the similar problem. Could you give me some advice? Thanks for your help.
Best wishes, Xu Zhao. // The program time=RP_Get_Real("flow-time"); time1=((time*f_osc)-int(time*f_osc))/f_osc; //Time normalization in the interval [0,T] if(time1<1/(4*f_osc)) // As aforementioned, the position in y direction can be regarded as a three- stage linear functions { y=xc[1]-4*A*f_osc*time1; // A is the oscillation amplitude } else if(time1>=1/(4*f_osc)&&time1<3/(4*f_osc)) { y=xc[1]-A+4*A*f_osc*(time1-1/(4*f_osc)); } else { y=xc[1]+A-4*A*f_osc*(time1-3/(4*f_osc)); } |
|
Tags |
oscillation laser, udf, welding path |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving Wall velocity in Negative X direction | mpapon | FLUENT | 1 | July 1, 2016 10:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
Help please UDF flow direction | val17lr | FLUENT | 2 | September 4, 2010 05:30 |
udf with moving heat source | Ryan | FLUENT | 0 | April 10, 2003 19:13 |
udf for moving and deforming mesh | xie haibo | FLUENT | 4 | October 27, 2002 06:45 |