# Velocity BC in cyclic 2D domain

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

 July 29, 2010, 10:43 Velocity BC in cyclic 2D domain #1 New Member   Ivo Join Date: Jul 2010 Posts: 5 Rep Power: 8 Hi people, At the moment I'm trying to compare various approaches for generating velocity profiles in OpenFoam against windtunnel data and results obtained with Fluent. I'm now having trouble setting up one of these cases in OpenFoam. Since in windtunnel measurements the velocity is usually only known at a single reference height I wanted to try and generate the velocity profile corresponding to proper BCs at the top and bottom of my domain and a velocity equal to a measured value of 14 m/s at a reference height of 0.48 m. The domain I chose has the inlet and outlet connected by a cyclic BC and as an initial condition I chose the mass flux across the inlet to equal 36 kg/s. I was able to perform this calculation under Fluent, but since I am new to OpenFoam I don't know how to set this up. One of my attempts so far involved using the simpleFoam solver and setting the velocity boundary condition on the inlet/outlet as: inletoutlet { type flowRateInletVelocity; patchType cyclic; flowRate 36; value uniform (0 0 0); } However, this has 2 problems: 1) this boundary condition doesn't work for cyclic patches and 2) I still can't specify my target velocity of 14 m/s at a reference height of 0.48 m since that would involve solving for the mass flux as well. Is there any way around this? Any help would be greatly appreciated!

 July 30, 2010, 11:22 jumpCyclic BC #2 New Member   Ivo Join Date: Jul 2010 Posts: 5 Rep Power: 8 In an attempt to solve the problem I described above I tried, amongst other things, to use a jumpCyclic boundary condition on my velocities in order to keep them from exploding (which is what happens when, on a cyclic grid, flowRateInletVelocity is used as a velocity BC and fixedValue (equal to 0) for p; it seems to me that the specified flow rate is added again on each consecutive pass). This resulted in the following error: --> FOAM FATAL IO ERROR: Unknown patchField type jumpCyclic for patch type cyclic Does anybody know what this means? I'm using OpenFoam version 1.7.x and at least the source files are present. Do I need to compile them somehow or add an extra command in one of my input files before I can use this BC, or I am trying to do something illegal here?

 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 Ozgur_ FLUENT 5 August 25, 2015 04:58 xujjun CFX 9 June 9, 2009 07:59 cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 19:09 Antech Main CFD Forum 0 April 25, 2006 02:15 chong chee nan FLUENT 0 December 29, 2001 06:13

All times are GMT -4. The time now is 20:22.