# Problems using a formula to determine inlet velocity

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 6, 2013, 17:25 Problems using a formula to determine inlet velocity #1 New Member   Ash Join Date: Oct 2013 Posts: 3 Rep Power: 5 Sponsored Links Hi all, first post! I'm modelling a square duct with a 90 degree bend. With a uniform inlet velocity of 10m/s everything solves fine. However when I introduce the condition of the inlet velocity being based around a formula (2*Ub*(1-(x^2+y^2)/(0.5*D)^2), with Ub and D defined in expressions, the solver crashes with "Return code 1" & "Non-zero error code 2". The inlet is centered around the origin with the z axis pointing into the inlet. Any ideas as to what is wrong? Cheers Ash

 October 7, 2013, 00:08 #2 Senior Member   Ashwani Join Date: Sep 2013 Location: Hyderabad Posts: 111 Rep Power: 5 Which solver are you using? And the OS. It can be problem of compiler. Like we use gcc, g++ compiler and it crashes mostly with segmentation violation.

 October 7, 2013, 20:37 #3 New Member   Ash Join Date: Oct 2013 Posts: 3 Rep Power: 5 Thanks for the reply AshwaniAssam. I was using ANSYS CFX. The problem turned out to be something glitchy in the geometry as when I loaded a Solidworks IGES version of the geometry into the analysis it worked. I'm still unsure why the ANSYS geometry solved with a uniform inlet velocity and not with a profiled velocity but it's working now.

 October 7, 2013, 23:23 Reply #4 Senior Member   Ashwani Join Date: Sep 2013 Location: Hyderabad Posts: 111 Rep Power: 5 You can see the following thread. In general these error codes will have some information somewhere on net. http://www.cfd-online.com/Forums/cfx...-code-1-a.html

 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 anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 05:35 Zhe Liu CFX 0 July 31, 2008 06:56 Antech Main CFD Forum 0 April 25, 2006 02:15 Jongdae Kim FLUENT 0 June 15, 2004 11:21 Ronak Shah FLUENT 0 June 4, 2003 09:44