|
[Sponsors] |
August 29, 2006, 08:09 |
what's wrong with it????????
|
#1 |
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 |
|
August 29, 2006, 10:35 |
Re: what's wrong with it????????
|
#2 |
Guest
Posts: n/a
|
expect your reply
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf error | srihari | FLUENT | 1 | October 31, 2016 15:18 |
What's wrong? Non-conform mesh problem!!! | Neo | FLUENT | 1 | March 31, 2013 16: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 06:48 |
Pressure contour seems wrong??? | Harry Qiu | FLUENT | 1 | June 29, 2001 06:53 |