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

Difficulty in imposing an omega boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2015, 07:46
Default Difficulty in imposing an omega boundary condition
  #1
New Member
 
Syed Aaquib Hazari
Join Date: Apr 2015
Location: Delft
Posts: 16
Rep Power: 11
hazari.aaquib is on a distinguished road
Dear all,

I am using UDFs to impose a constant omega value at the interface as a boundary condition of my two phase stratified channel flow.

I am also using periodic boundary conditions so there is no way to hook a DEFINE_PROFILE UDF.

I have tried using DEFINE_SOURCE it adds a source variable to every grid cell.

Can anyone suggest some way to bypass this.

Below is the UDF SOURCE code

Code:
#include "udf.h"

#define C1 2927

DEFINE_SOURCE(omega_source, c, t, dS, eqn)
{
    real x[ND_ND];
    real y;
    real source;
    real abcd;
    C_CENTROID(x, c, t);
    if (1.5<C_R(c,t)<900)
        source = C1;
    dS[eqn] = 0;
    return source;
}
Attached Images
File Type: jpg Capture.JPG (37.4 KB, 3 views)
hazari.aaquib is offline   Reply With Quote

Reply


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


All times are GMT -4. The time now is 23:09.