CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Expected moving path of laser in y direction in UDF

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 19, 2021, 08:58
Default Expected moving path of laser in y direction in UDF
  #1
New Member
 
Xu Zhao
Join Date: Jun 2021
Posts: 5
Rep Power: 4
zx145833 is on a distinguished road
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));
}
zx145833 is offline   Reply With Quote

 

Tags
oscillation laser, udf, welding path


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:48.