# Constant velocity

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

 July 13, 2001, 03:57 Constant velocity #1 Lennart Wern Guest   Posts: n/a Hi everybody, I want to set a fixed velocity in some fluid cells in the middle of my mesh. I have tried to do this in "the subroutine "sormom.f" without success. Does anyone know how to do this? Thanks, Lennart

 July 13, 2001, 05:19 Re: Constant velocity #2 Philip Jones Guest   Posts: n/a Lennart, Hi and greetings again! sormom is the exact right way to do this: C------------------------------------------------------------------------- C This subroutine enables the user to specify the momentum source C term (per unit volume) in linearised form: C C Source in x direction = S1U-S2U*U, (N/m3) C Source in y direction = S1V-S2V*V, (N/m3) C Source in z direction = S1W-S2W*W, (N/m3) C C in an arbitray manner. C C ** Parameters to be returned to STAR: S1U,S2U,S1V,S2V,S1W,S2W, C POROS C C------------------------------------------------------------------------- What may not be obvious is what to set s1u to etc., this is best shown in sorent.f: C----------------------------------------------------------------------- C C This subroutine enables the user to specify a source term (per unit C volume) for enthalpy in linearized form: C C Source = S1P-S2P*T, (W/m3) C C in an arbitrary manner. C C If temperature is to be fixed to a given value T, then the C following may be used: C C S1P=GREAT*T C S2P=GREAT, C C where T can be a constant or an arbitrary function of the C parameters in the parameter list. C C ** Parameters to be returned to STAR: S1P,S2P C C------------------------------------------------------------------------- so combining the two means that if you set SU1 to great*desired velocity and SU2 to great it fixes the velocity. You need to set all three velocity components. Generally, this is done in and IF block based upon cell table (ICTID). This is the info that would be supplied very quickly by an email to support@cd.co.uk regards Philip

 July 13, 2001, 05:34 Re: Constant velocity #3 Lennart Wern Guest   Posts: n/a Thanks alot Philip. It works perfectly. Regards, Lennart

 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 thibault_pringuey OpenFOAM 0 January 9, 2009 06:59 hungryfish CFX 1 December 18, 2008 17:27 Rogerio Fernandes Brito CFX 0 August 17, 2008 10:01 Törnquist CFX 0 September 16, 2003 04:22 Craig B Phoenics 3 October 9, 2001 05:04

All times are GMT -4. The time now is 00:49.