|
[Sponsors] |
March 25, 2014, 22:41 |
Setting Initial Conditions Velocity Profile
|
#1 |
New Member
Join Date: Mar 2014
Posts: 12
Rep Power: 12 |
Hi guys,
I am in need of help as i'm completely stuck on this an don't know how else to proceed. I'm modelling atmospheric boundary layer flow over hilly terrain and need to automatically set a logarithmic inlet velocity profile based on reference velocities given by measurements. Since the domain is not flat and the surface elevation varies considerably along the inlet boundary I have a log-law equation modified for elevation Z. The way I was hoping to approach this was to Extract the face centroid positions of the inlet boundary to an internal table, and then use my equation on the 'z' value of each centroid to work out the velocity and then assign it to the coordinate (x,y) of the same centroid. I can't figure out how to apply an equation to the table. Is there another way of doing this? How would i apply a simple logarithmic profile? Additionally how would i do this as a vector? When I input (x,y) constant velocity values the flow remains normal to the face and doesn't change its angle. Also what is the "magnitude" node in the inlet region exactly? I want the magnitude to be based on the vectors that i put into the initial conditions. Any help appreciated! [EDIT]: If I set the initial conditions to an XYZ File table that I populate externally (say matlab) does Star interpolate the data to fit the cell centroids? If that's the case then this is probably the easiest method as i could then set a local cordinate system and simply input the magnitude of the vector as a normal. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 13:52 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
rhoSimplecFoam Mach0.8 no pressure values | CFDnewbie147 | OpenFOAM Running, Solving & CFD | 16 | November 23, 2013 05:58 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 12:50 |