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

udf problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 20, 2004, 10:10
Default udf problem
  #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

Reply

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 11:06.