CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

how to comliled UDF on one of two fluid cell zones

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2017, 20:41
Default how to comliled UDF on one of two fluid cell zones
  #1
New Member
 
sennaiu
Join Date: Dec 2017
Posts: 2
Rep Power: 0
lshwanbb is on a distinguished road
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)
lshwanbb is offline   Reply With Quote

Reply

Tags
udmi;usd; two cell zone;


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 20:45.