|
[Sponsors] |
June 18, 2012, 08:32 |
Moving Laser Beam
|
#1 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
I want to simulate the thermal effect of a laser beam(which is moving) on a multiphase surface.
I would appreciate if anyone has ideas about the way(s) i can simulate the moving laser beam.(In Star-CCM+ and/or Ansys and/or OpenFOAM) Thank you in advance. Last edited by fshak92; June 19, 2012 at 09:45. |
|
June 25, 2012, 05:46 |
|
#2 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
I've tried to do a sample Solid case,by defining a table with the moving heat flux according to time.
a) Im not sure it will be the correct way to set a defined heat flux to the fixed coordinates in multiphase case. b) Making a table to simulate the moving heat flux, somehow is time consuming.Because i should change the heat flux in each coordinates and each time step.(Below is a sample version of table i've used) x y z t(1s) t(2s) t(3s) ... 1 0 0 500 0 0 2 0 0 0 500 0 3 0 0 0 0 500 . . . Do you have any idea or suggestion about 'a' and 'b' ? Thank you in advance. |
|
June 29, 2012, 06:02 |
|
#3 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
Nobody has any idea?
|
|
July 3, 2012, 05:07 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
I am currently busy with quite a similar project. In my case, it is not a multiphase problem.
I am using Ansys fluent for the simulations, since the definition of the transient boundary condition is quite simple there. If you want to switch to fluent, maybe we could join forces. Last edited by flotus1; July 3, 2012 at 11:51. |
|
July 3, 2012, 11:50 |
|
#5 | |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
Quote:
Yes i can access to Ansys fluent,Would you please tell me how you did it?or please tell me some keywords about the way ,then i can find more explanation in user guide... |
||
July 3, 2012, 12:09 |
|
#6 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
If your boundary condition is just a heat flux, then set the BoCo to "wall" and apply a User Defined Function (UDF) as the thermal condition.
A UDF is a text file wit a .c extension which can be interpreted by fluent directly. For a simplified 2-dimensional case with the laser beam moving in x-direction and having a rectangular intensity distribution, the UDF might look like this: Code:
#include "udf.h" DEFINE_PROFILE(laser_beam,t,i) //Randbedingung für den Energiefluss durch den Laser { real x[ND_ND]; //Ortsvektor; ND liest aus ob 2D oder 3D-Fall real X; //Ortskoordinate real x_0=0.05; //starting point real v=0.05; //velocity of the laser beam real b=0.005; //width of the laser beam real I_0=50000000; //Intensity real time=RP_Get_Real("flow-time"); //der Variable time wird die Simulationszeit zugewiesen face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); //liest Koordinate aus X=x[0]; if(X>=x_0+time*v-b/2 && X<=x_0+time*v+b/2) //Laser bewegt sich entlang X F_PROFILE(f,t,i) = I_0; else F_PROFILE(f,t,i) = 0; } end_f_loop(f,t); } In Fluent, go to "define" - "user defined" - "functions" - "interpreted" and choose the file. Click on "Interpret". Now when setting up the heat flux for the boundary condition, the drop down menu which reads "constant" should allow picking the "laser_beam" profile defined in the UDF. Since I want to simulate melting of the material by the laser, I am no longer using a heat flux as a boundary condition. Instead, I am trying to use the Discrete Ordinates radiation model to simulate the laser beam. But if you just want to heat up the material, a heat flux BoCo should be sufficient. |
|
July 3, 2012, 12:14 |
|
#7 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
Many Many Thanks to you indeed:-)
Wish you the best. |
|
July 3, 2012, 13:00 |
|
#8 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Since I was able to help you I would really appreciate if you could take a few minutes to look at my problem:
http://www.cfd-online.com/Forums/fluent/104124-problems-radiation-discrete-ordinates-model.html cheerio |
|
July 25, 2012, 04:16 |
|
#9 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
Hi
I set the udf to the boundary condition of the line(the line in the picture below) as 'heat flux' and 'temperature' ,but non of them changed any thing in my 'temperature contour' after running for some seconds. The simulation is 3d but the coordinates of line is changing just in Y ,therefore i replaced all the 'X' , to 'Y'. Is there any hint that should be considered? Thank you again. |
|
July 25, 2012, 04:35 |
|
#10 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
The names of the Variables have nothing to do with the ordinates.
The array x[ND_ND] holds the position vector, but could easily be called position[ND_ND] or thisisabitconfusing[ND_ND] x[0] -> x-position x[1] -> y-position x[2] -> z-position (if the case is 3D) |
|
December 11, 2012, 02:52 |
|
#11 | |
New Member
hanna rose
Join Date: Dec 2012
Posts: 1
Rep Power: 0 |
Quote:
hye. i will be doing a modeling of laser cutting. the parameters are cutting speed, laser power, focal length. how can i do the modeling using ansys? i want to get the thermal distribution and kerf width.tq |
||
December 11, 2012, 05:10 |
|
#12 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP - Moving car simulation in fluent | Brad Wells | FLUENT | 7 | January 4, 2018 20:55 |
[snappyHexMesh] jagged, ragged edges... | ziemowitzima | OpenFOAM Meshing & Mesh Conversion | 138 | July 24, 2012 00:41 |
Moving mesh in Fluent | fivos | FLUENT | 0 | April 2, 2010 10:45 |
help on radiation model for a moving laser beam | nazeem | FLUENT | 1 | April 20, 2009 11:34 |
Effect of fire on a steel beam | Amanda Fry | FLUENT | 1 | January 20, 2004 14:59 |