
[Sponsors] 
March 2, 2007, 09:17 
How to set the function to get f_p(f,t)

#1 
Guest
Posts: n/a

Hi. Now I wannt get the sum pressures on two walls then use the sum as a pressure boundary condition applied on one inlet. My problem is how to get the wall ID and how to get pressures. Thank you very much.


March 2, 2007, 13:31 
Re: How to set the function to get f_p(f,t)

#2 
Guest
Posts: n/a

You can get the zone id of wall through boundary condiitons panel; then use Lookup_Thread to get the thread for the wall and get the pressure using F_P(c,t)


March 3, 2007, 05:29 
Re: How to set the function to get f_p(f,t)

#3 
Guest
Posts: n/a

thank you for your hint. I can't set the domain value in the Lookup_Thread function. ...


March 3, 2007, 16:02 
Re: How to set the function to get f_p(f,t)

#4 
Guest
Posts: n/a

You have to get the domain through Domain *d= Get_Domain(domain_id), where domain_id will be 1 for single phase problems and multiphase problem 1 for mixture domain and for each phase you can get the domain id from the phases panel.


March 4, 2007, 21:05 
Re: How to set the function to get f_p(f,t)

#5 
Guest
Posts: n/a

Hi,
I am Ravi doing chemical engineering B.Tech. at IIT Kharagpur. In my case, there is simultaneous Mass Transfer and fluid trasfer. I want to give velocity profile at a boundary but the concentration of a species also depends on that velocity by a function. so,i have written a udf which works for both velocity and mass fraction at that boundary, can you please tell me how should i call velocity variable and mass fraction variable in the define_profile macro... since mass fraction is a scaler so how can i give it within the face thread, is F_V(f,t)for velocity and F_YI(f,t,i) for concentration correct or do i need to define cell thread for mass fraction. Kindly reply as soon as possible as my work is stuck up because of this only. If possible please mail me at ravii.iitkgp@gmail.com. Thanks. 

March 5, 2007, 16:41 
Re: How to set the function to get f_p(f,t)

#6 
Guest
Posts: n/a

for velocities F_U(f,t), F_V(f,t), F_W(c,t) can be used, But for some boundaries these values not stored(eg symmetry), there u may have to use the nearby cell value
F_YI(f,t,i) is correct for species mass fraction, it will work on face too. 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Compile problem  ivanyao  OpenFOAM Running, Solving & CFD  1  October 12, 2012 09:31 
channelFoam for a 3D pipe  AlmostSurelyRob  OpenFOAM  3  June 24, 2011 13:06 
how to set a source function  zhaochuangang  ANSYS  0  March 18, 2010 05:31 
latest OpenFOAM1.6.x from git failed to compile  phsieh2005  OpenFOAM Bugs  25  February 9, 2010 05:37 
OpenFoam 14 installation problem  gfcoppola  OpenFOAM Installation  20  November 2, 2007 14:38 