|
[Sponsors] |
July 17, 2012, 15:42 |
UDF Code for energy source
|
#1 |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14 |
Hi,
I am trying to do a simulation where I am generating a shockwave underwater. I want to use a point source to generate a shock wave. I need help on finding a UDF Code to generate an energy source to generate a shock wave. I want the shock wave to travel in all directions. I would really appreciate any kind of help or insight you can provide on my problem. thanks!! |
|
July 19, 2012, 07:51 |
UDF Code for energy source
|
#2 |
Senior Member
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17 |
Hi dreamchaser
An UDF to define a source term is readily available. This requires proper modification to define a point energy source. Best wishes, mvee |
|
July 19, 2012, 13:13 |
|
#3 | |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14 |
Quote:
Hello Mvee, where do I find the UDF to define a heat source? I want to define a heat source underwater. I want to use the heat source to create a shockwave underwater. I would appreciate any kind of help you can provide. I am new to fluent and not very good at writing UDF's. thanks |
||
July 20, 2012, 01:10 |
UDF Code for energy source
|
#4 |
Senior Member
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17 |
Can you describe you problem in detail?
For source UDF search the word define_source. You will get this in UDF manual. Regards Mvee |
|
July 20, 2012, 03:45 |
|
#5 | |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14 |
Quote:
I am trying to simulate a shockwave underwater. I have a square mesh that is 1mx1m. It is a closed tank that is filled with water. the theory is the shockwave is created by the rapid expansion of a bubble. Thus, I want to create the bubble with a energy/heat source. I want to create the energy/heat source in the middle of my domain (in the center of the square) The heat source will then create a bubble which will create a shockwave. I want to see how this shockwave behaves with the walls of the tank. My approach- My method is using an if statement in my UDF to specify the location of the heat source. Then I want to define a heat source that is in the form of A*exp(-t). I need help on writing my UDF. I would appreciate any kind of help you can provide. thank you |
||
July 25, 2012, 02:22 |
UDF Code for energy source
|
#6 |
Senior Member
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17 |
Hi
You will have define the CG (center of gravity) or by defining a point which is lying on center and then define energy source at that point. This is very simple. You will have little bit of reading on UDF. With best wishes Mvee |
|
July 25, 2012, 05:15 |
|
#7 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
What you are trying to do is some quite sophisticated stuff.
It features evaporation, free surfaces, a distinct coupling between pressure and velocity... Have you considered starting with simple models that involve only one of the above features to understand them better before using them all in one simulation? I highly recommend this procedure. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF source term | Rajani Kanth.B | Fluent UDF and Scheme Programming | 4 | May 1, 2013 10:31 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
Please help me run UDF code for source | Suga | FLUENT | 1 | February 3, 2006 04:40 |
Fast Polygon Triangulation with source code. | Liang, Wu | Main CFD Forum | 0 | November 2, 2005 20:42 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |