|
[Sponsors] |
May 20, 2021, 02:59 |
The function of UDSI
|
#1 |
New Member
Join Date: May 2020
Posts: 8
Rep Power: 6 |
Hi, guys,
I met a strange problem. I wrote a udf and used UDSI to store variable C_K and C_DUDX CODE: DEFINE_ADJUST(NNtraining, d) { Thread *t; cell_t c; real k; real epsilon; real C_mu; C_mu=0.09; thread_loop_c(t,d) { begin_c_loop(c,t) { k=C_K(c,t); epsilon=C_D(c,t); C_UDSI(c,t,0)=k; C_UDSI(c,t,1)=C_DUDX(c,t); } end_c_loop(c,t) } } In theory, when I look up contours. The results of Scalar-0 and turbulent kinetic energy should be the same. And the results of Scalar-1 and dX-velocity/dx should be the same. But in fact, they are different. That's why? Could anybody help me? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 11:32 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |