CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

differential pressure UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2004, 10:13
Default differential pressure UDF
  #1
Phil
Guest
 
Posts: n/a
Hi,

i want to write a udf which defines the motion of a piston. the motion depends on the differential pressure across the piston. I have used the following code previously when the piston has had a planar face and there has been no pressure on the other side of the piston. Can anyone tell me if this will take into account the direction in which the force is acting and do if i use it on the two sides of a piston will it calculate the force from the differential pressure?

#if !RP_NODE force = 0.0; begin_f_loop (f, t)

{

real *AA;

AA = F_AREA_CACHE (f, t);

force += F_P (f, t) * AA[0];

} end_f_loop (f, t)

# if RP_2D if (rp_axi)

force *= 2.0 * M_PI; # endif
  Reply With Quote

Old   August 20, 2004, 11:10
Default sorry wrong forum
  #2
Phil
Guest
 
Posts: n/a
  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
UDF at pressure inlet[pleas help me!!] kokoory FLUENT 2 February 3, 2011 09:40
Differential Pressure Monitoring CFD User FLUENT 0 October 16, 2008 21:53
UDF to monitor minimum pressure on the wall Arvind Jayaprakash FLUENT 0 September 20, 2007 12:53
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
UDF Pressure Velocity kendoo FLUENT 0 June 12, 2003 12:27


All times are GMT -4. The time now is 15:32.