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

Calculate pressure force in multiphase problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2015, 13:09
Default Calculate pressure force in multiphase problem
  #1
New Member
 
Tom
Join Date: Jan 2015
Posts: 3
Rep Power: 11
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"

DEFINE_EXECUTE_AT_END(force_calculation)
{
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;

NV_S(total_pressure,=,0.0);

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

begin_f_loop(f,f_th)
{
F_AREA(A,f,f_th);
Area += NV_MAG(A)*2*M_PI;

NV_VS(pressure,=,A,*,F_P(f,f_th));

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

NV_V(total_pressure,+=,pressure);
}
end_f_loop(f,f_th)

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

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
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
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 05:29.