CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Calculate pressure force in multiphase problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 18, 2015, 14:09
Default Calculate pressure force in multiphase problem
New Member
Join Date: Jan 2015
Posts: 2
Rep Power: 0
hoangtugugu is on a distinguished road
I have an issue on computing pressure force in multiphase (2 phases) problem. The result which is compute by my udf doesn't match with the FLUENT Reports. It's smaller and i don't know why? This is my UDF:

#include "udf.h"

double NV_VEC(A);
double NV_VEC(pressure), NV_VEC(total_pressure);
double Area = 0.0, ftp;

Domain *d = Get_Domain(1);
Thread *f_th;
face_t f;
int ID = 18;


d = Get_Domain(1);
f_th = Lookup_Thread(d,ID);

Area += NV_MAG(A)*2*M_PI;


pressure[0] = 2*M_PI*pressure[0];
pressure[1] = 0.0;


ftp = total_pressure[0];

Message("\nTotal Area = %.7e (m2)\n",Area);
Message("Pressure_force = %.9f (N)\n",ftp);

Thanks for viewing and replying!
hoangtugugu is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 35 December 14, 2016 05:34
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 29 November 3, 2015 06:33
Problem with SIMPLEC-like finite volume channel flow boundary conditions ghobold Main CFD Forum 3 June 15, 2015 11:14
Calculating lift force of a wind turbine blade problem LittleBart CFX 4 June 29, 2011 02:33
how does Fluent calculate the pressure and viscous force ? e30.lsb FLUENT 7 June 27, 2011 21:31

All times are GMT -4. The time now is 04:35.