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

what's wrong with it????????

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2006, 07:09
Default what's wrong with it????????
  #1
zhu
Guest
 
Posts: n/a
Hi,everyone! I have writen a UDF,which can be interpreted well. it can run well and have an impact on temperature when i use Non-Iterative Time Advancement as transient controls in solver.But it didn't take a little effect on temperature when i use Frozen Flux Formulation as transient controls in solver.i dont know why. anybody can help me??? I want add a energy source in metal .the sources should be added at position of the free surface of melting metal.I mainly used VOF and solidification&melting model(I'd like to simulate the flow of melting metal under the influence of gravity). IN order to capture the free surface, i use the macro of C_VOF(The free surface cross all the cell where the volume fraction is different from 0 or 1).my UDF as follows. #include "udf.h"

DEFINE_SOURCE(cell_heat_source,cell,mixture_thread ,dS,eqn) {

real source;

int phase_domain_index = 0; /* primary phase index is 0 */

Thread *water_thread = THREAD_SUB_THREAD(mixture_thread,phase_domain_inde x);

if(C_VOF(cell,water_thread)<1&&C_VOF(cell,water_th read)>0)

{

source=25000000;

dS[eqn]=0;

}

else

source=dS[eqn]=0;

return source; }

thank you
  Reply With Quote

Old   August 29, 2006, 09:35
Default Re: what's wrong with it????????
  #2
zhu
Guest
 
Posts: n/a
expect your reply
  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 error srihari FLUENT 1 October 31, 2016 14:18
What's wrong? Non-conform mesh problem!!! Neo FLUENT 1 March 31, 2013 15:00
BuoyantBoussinesqSimpleFoam and axial-symmetric results wrong mass flow Thomas Baumann OpenFOAM 6 December 21, 2009 10:31
Wrong Reynolds stress in channel tutorial zebu83 OpenFOAM 0 September 7, 2009 05:48
Pressure contour seems wrong??? Harry Qiu FLUENT 1 June 29, 2001 05:53


All times are GMT -4. The time now is 23:18.