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

Need UDF for determination ofpressures in hydrodynamic journal bearing

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2012, 05:22
Default Need UDF for determination ofpressures in hydrodynamic journal bearing
  #1
New Member
 
Dinesh
Join Date: Nov 2009
Location: India
Posts: 24
Rep Power: 14
Dinesh_Dhande is on a distinguished road
Hi Friends,
I want to simulate the pressures generated in hydrodynamic journal bearing. Can anyone help me? I need either tutorial or the ready made UDF for the same or the link where i will get help.
Also i want to convert fortran program on bearing in UDF. How to do that? Kindly help.
Thanks in advance.
Dinesh_Dhande is offline   Reply With Quote

Old   September 25, 2018, 13:14
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,549
Blog Entries: 6
Rep Power: 51
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
There are two udfs which can help you.

First is about pressure control at the end of each iteration etc

Code:
#include "udf.h"

DEFINE_EXECUTE_AT_END(RBC)
{

Domain *d;
Thread *t;
cell_t c;
face_t f;


d = Get_Domain(1); 

thread_loop_c(t,d)
{
begin_c_loop (c,t)
	{
		if (C_P(c,t)<=0.0) 
			C_P(c,t)=0.0;
	}
end_c_loop (c,t)
}


thread_loop_f(t,d)
{
begin_f_loop(c,t)
	{
		if (C_P(c,t)<=0.0) 
			C_P(c,t)=0.0;
	}
end_f_loop(c,t)
}


}
Second will model viscosity as function of temperature


Code:
/*	**********************************************************	*/
/*                                                            	*/
/* User-Defined Functions for temperature-dependent viscosity 	*/
/* FLUENT 16.0                                                 	*/
/*                                                            	*/
/* Author: FARCFD  farcfd@gmail.com                    			*/
/* Date: August 16, 2015                                      	*/
/*                                                            	*/
/* ************************************************************ */



#include "udf.h"

DEFINE_PROPERTY(cell_viscosity, c, t)


{
	
real mu_laminar, temp, pres; 

temp = C_T(c, t);

pres = C_P(c, t); 

mu_laminar = 0.0127*exp(0.000000213345*(pres-101345))*exp(0.029*(temp-293));

return mu_laminar;


}
Far is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulation of a radial hydrodynamic bearing in ANSYS CFX Jalen ANSYS 1 October 4, 2013 11:40
Help with journal bearing simulations elcino FLUENT 6 May 11, 2012 00:26
simulation of a journal bearing in Comsol Pac Main CFD Forum 0 July 6, 2011 11:59
Help with associating a UDF in a journal file EphemeralMemory FLUENT 0 February 14, 2011 22:07
Journal Bearing hunny_winky STAR-CCM+ 0 April 9, 2010 18:26


All times are GMT -4. The time now is 05:14.