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

UDF Code for energy source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2012, 15:42
Default UDF Code for energy source
  #1
Member
 
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14
dreamchaser is on a distinguished road
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!!
dreamchaser is offline   Reply With Quote

Old   July 19, 2012, 07:51
Default UDF Code for energy source
  #2
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
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
mvee is offline   Reply With Quote

Old   July 19, 2012, 13:13
Default
  #3
Member
 
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14
dreamchaser is on a distinguished road
Quote:
Originally Posted by mvee View Post
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

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
dreamchaser is offline   Reply With Quote

Old   July 20, 2012, 01:10
Default UDF Code for energy source
  #4
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Can you describe you problem in detail?
For source UDF search the word define_source. You will get this in UDF manual.

Regards
Mvee
mvee is offline   Reply With Quote

Old   July 20, 2012, 03:45
Default
  #5
Member
 
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 14
dreamchaser is on a distinguished road
Quote:
Originally Posted by mvee View Post
Can you describe you problem in detail?
For source UDF search the word define_source. You will get this in UDF manual.

Regards
Mvee
Hey,

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
dreamchaser is offline   Reply With Quote

Old   July 25, 2012, 02:22
Default UDF Code for energy source
  #6
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
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
mvee is offline   Reply With Quote

Old   July 25, 2012, 05:15
Default
  #7
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
flotus1 is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 05:19.