|
[Sponsors] |
how to comliled UDF on one of two fluid cell zones |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
sennaiu
Join Date: Dec 2017
Posts: 2
Rep Power: 0 ![]() |
I have two fluid cell zones in FLUENT_V160, the same fluid materials.
when I complied the UDF codes, inclulding UDS and UDMI one of the two zones as "Source terms", the other zone do not load any terms. The results show that the all UDS and UDMI can not be compiled and no values. (The whole UDF codes are right when run in one fluid domain.) That seems the follwings DEGINE_INTI(inti_UDMI,d) cell_t c; Thread *t if (FLUID_THREAD_P(t)) { begin_c_loop_all(c,t) { C_UDMI(c, t, 0)=0 C_UMDI(c, t, 1)=0 ~~~~~~~~~ } end_c_loop_all(c, t) } DEFINE_ADJUST(dynamic_contect,d) { Thread *t; cell_t c; Cann not recognize two FLUID areas of Cell Zone in software and all UDS and UDMI can not work. Can anyone tell me how to compile UDF on one of two cell zones with same fluid materials, the one cell zone is of source terms and other is nothing. And how to modificate the DEFINE_INTI and DEFINE_ADJUST to recognize one of two FLUID zones (two Cell Zone in software) |
|
![]() |
![]() |
![]() |
Tags |
udmi;usd; two cell zone; |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulating fire in a tunnel | luca1992 | OpenFOAM | 14 | August 16, 2017 13:50 |
how could avoid heat transfer in interface (two fluid cell zones) | oozcan | FLUENT | 3 | November 23, 2016 12:47 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 04:27 |
cell zone creation for degassing udf implementation | shahjehan | Fluent UDF and Scheme Programming | 0 | August 3, 2016 11:30 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 09:11 |