|
[Sponsors] |
October 1, 2003, 10:31 |
first time with UDMI
|
#1 |
Guest
Posts: n/a
|
I am trying to use UDM for the first time. I have written the part of the code shown below, where eta(f) is a function in another part of the code. I would have assumed the same value that is printed for over_pot in the printf line would be the value that appeared in my xy plots in fluent. When I make the xy plot I only get a value of 0.00000. Any reason why this is occuring?
DEFINE_PROFILE(tile_conc_spec, thread_sol, i) { face_t f; begin_f_loop(f, thread_sol) { real over_pot = eta(f); F_UDMI(f, thread_sol, 0) = over_pot; printf ("\nover_pot = %g, at face %d", over_pot, f); F_PROFILE(f, thread_sol, i) = c_bulk*concvar(f)/(concvar(f)+1); } end_f_loop(f, thread_sol) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 06:55 |
Time step size and max iterations per time step | pUl| | FLUENT | 33 | October 23, 2020 22:50 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 04:35 |
Problems with simulating TurbFOAM | barath.ezhilan | OpenFOAM | 13 | July 16, 2009 05:55 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 00:36 |