# How to set the function to get f_p(f,t)

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

 March 2, 2007, 09:17 How to set the function to get f_p(f,t) #1 arwang 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 Sujith 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 arwang 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 Sujith 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 Ravi Bharihoke 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 Sujith 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 Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31 AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06 zhaochuangang ANSYS 0 March 18, 2010 05:31 phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37 gfcoppola OpenFOAM Installation 20 November 2, 2007 14:38

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