# Atmospheric Wind Profile - Inlet Subroutine

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

 December 11, 2002, 20:38 Atmospheric Wind Profile - Inlet Subroutine #1 Roger Guest   Posts: n/a Hi looking for some help on the above topic. Has anyone created a user subroutine to model the variation of velocity for an inlet based on the ashrae standard for a typical atmospheric wind profile, typically of the form: Uh=Umet(Omet/Hmet)^Amet * (H/O)^A where A = Exponent in power law wind speed profile for local building terrain Amet = Exponent for the meteorological station H = Height from ground level (m) Hmet = Height at which meteorological wind speed was measured (normally at 10 m above ground) (m) Uh = Approach wind speed at upwind wall height (m/s) Umet = Hourly meteorological wind speed, measured at height (m/s) O = Fully developed strong wind atmospheric boundary layer thickness (m) Omet = Atmospheric boundary thickness at the meteorological station (m) i.e. wind speed for the inlet varies with height up to a maximum of 10m. Any help appreciated regards -roger

 December 12, 2002, 05:43 Re: Atmospheric Wind Profile - Inlet Subroutine #2 raymond Guest   Posts: n/a I have done much simulation about environment study, with the user subroutine inlet boundary condition. The equation is just the same as you described. It's the function of elevation and quite easy to be applied in the subroutine. I don't know what's the problem of you? The parameters or others?

 December 12, 2002, 05:49 Re: Atmospheric Wind Profile - Inlet Subroutine #3 Roger Guest   Posts: n/a Not sure how to apply a subroutine in StarCD - unfortunately not very good with fortran code. I believe I have to make one up, or is there a subroutine to pick in the software itself?? thankyou -roger

 December 12, 2002, 10:00 Re: Atmospheric Wind Profile - Inlet Subroutine #4 CJ Tune Guest   Posts: n/a Try using the BCDEFI.F subroutine. To use it, set your inlet b/c options=user and click on 'define coding'. There will be a new folder called 'ufile' in your working directory with the file BCDEFI.F in it. Open with your favourite text/Fortran editor. Follow the example script and make use of the X,Y, and/or Z variables to program your inlet velocity as a function of boundary position. Take a peek in the nom.inc file that is also there.