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

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 11:31
Wrong Reynolds stress in channel tutorial zebu83 OpenFOAM 0 September 7, 2009 05:48
udf error srihari FLUENT 0 February 9, 2009 10:00
Pressure contour seems wrong??? Harry Qiu FLUENT 1 June 29, 2001 05:53


All times are GMT -4. The time now is 03:50.