|
[Sponsors] |
December 3, 2012, 07:56 |
time dont effect in heat source in udf
|
#1 |
New Member
reezaa
Join Date: Dec 2012
Posts: 1
Rep Power: 0 |
hi.i am writting below udf.i want that place of heat source in my code changing with time.but dont change.....please help me.....
HTML Code:
/**************************************************************************/ /* UDF for specifying a sinusoidal temperature profile boundary condition */ /**************************************************************************/ # include "udf.h" # define A 113795786.3 # define B 333333.33 # define v 0.003 DEFINE_PROFILE(Heato,thread, position) { real x[ND_ND]; /* this will hold the position vector */ real r; real z; real current_time; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); z=current_time; r = (x[0]-0.03-v*z)*(x[0]-0.03-v*z)+(x[1]-0.05)*(x[1]-0.05); F_PROFILE(f, thread, position) = A*exp(-B*r); } end_f_loop(f, thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
UDF for Heat Exchanger model | francois louw | FLUENT | 2 | July 16, 2010 03:21 |
udf with moving heat source | Ryan | FLUENT | 0 | April 10, 2003 20:13 |