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

Different force result: DEFINE_Source UDF & without UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2017, 14:29
Default Different force result: DEFINE_Source UDF & without UDF
  #1
New Member
 
Join Date: Jun 2017
Posts: 6
Rep Power: 8
A.Rah is on a distinguished road
Hi
I want to see the effect of gravity acceleration. I see different result in these situations:

1.DEFINE_SOURCE UDF
2. Without UDF (by enabling gravity option in FLUENT)


Gravity Force by UDF= 679596.5
Gravity Force without UDF= 658589


Any idea please!



--------------------------------------------------------------
#include "udf.h"
DEFINE_SOURCE(z_mom_source, cell, cell_thread, dS, eqn)
{
real source;

real time=CURRENT_TIME;


source = C_R(cell,cell_thread) *9.81;

dS[eqn] = 0;

return source;
}

--------------------------------------------------------------
A.Rah is offline   Reply With Quote

Old   November 11, 2017, 07:22
Default
  #2
New Member
 
Join Date: Jun 2017
Posts: 6
Rep Power: 8
A.Rah is on a distinguished road
This is strange!
please guide me
A.Rah 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
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 11:12
Udf define a force (harmonic force) rain821024 Fluent UDF and Scheme Programming 0 October 26, 2016 11:48
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 07:26
apply body force udf to just one injection rima_se2003 Fluent UDF and Scheme Programming 0 December 31, 2014 17:00
About body force in UDF Yanlong Li Fluent UDF and Scheme Programming 0 January 15, 2013 05:28


All times are GMT -4. The time now is 17:21.