Tagged: ansys-cfx, Atmospheric boundary layer
-
-
June 6, 2022 at 8:32 amFAQParticipant
The atmospheric boundary layer (ABL) is the lowest part of the atmosphere and its behavior is directly influenced by its contact with a planetary surface. Sometimes for simulations at different boundaries we need to account effect of ABL. The CCL below can be used to set an atmospheric boundary layer wind or pressure profile on an inlet, outlet or opening.
# Explanation of expressions
# ==========================
#
# Glossary of names
# —————–
#
# —————–
# wind profile section # —————– # ReferenceHeight = reference height above ground # ReferenceSpeed = velocity at reference height # groundRougness = ground aerodynamic roughness # example values # open sea 0.005 [m] # open terrain 0.05 [m] # forest or suberbs 0.5 [m]
# city centre 2 [m]
# ak = Von Karmen constant
# uStar = friction velocity
# zgrnd = height of the ground
# zprof = height above ground
# speed = wind speed as a function of height
# windAngle = wind angle (measured from the x axis) # uWind = x component of wind speed # vWind = y component of wind speed # wWind = z component of wind speed # cmu = k-epsilon turbulence model constant # teWind = wind turbulent kinetic energy # edWind = wind turbulent eddy dissipation
# sandGrainRoughness = sand grain roughness height of the ground
# —————–
# buoyancy section
# —————–
# Wair – molecular weight of air
# tamb – ambient temperature
# refP – reference pressure
# denref – reference density
# —————–
# pressure profile section
# —————–
# Pground – absoulte pressure at the ground
# zRefBuoy – buoyancy reference height
# the buoyancy reference location should be set consistently on the domain models form
# isoScaleHeight – atmospheric scale height
# Patmos – vertical profile of absolute pressure
# Popening – The pressure to set on a vertical opening
#
LIBRARY:
CEL:
EXPRESSIONS:
ReferenceHeight = 10.0 [m]
ReferenceSpeed = 5.0 [m s^-1] groundRougness = 2 [m] ak = 0.41 cmu = 0.09 zgrnd = 0 [m] windAngle = 60 [deg] uStar = ak*ReferenceSpeed/loge(ReferenceHeight/groundRougness) zprof = max(groundRougness,z-zgrnd) speed = uStar*loge(zprof/groundRougness)/ak uWind = speed*cos(windAngle)
vWind = speed*sin(windAngle)
wWind = 0.0 [m/s]
teWind = (uStar^2)/sqrt(cmu)
edWind = (uStar^3)/(ak*zprof)
sandGrainRoughness = groundRougness*exp(8.48*ak)
Wair = 28.96 [kg/kmol]
denref = Wair * refP/(R*tamb)
refP = 1 [atm]
tamb = 25 [C]
zGround = zgrnd
Pground = refP
zRefBuoy = zgrnd
isoScaleHeight = R*tamb/(Wair*g)
Patmos = Pground*exp(-(z-zGround)/isoScaleHeight)
Popening = Patmos-refP+denref*g*(z-zRefBuoy)
END
END
END
#
# Example to set the rougness on the ground
#
#FLOW: Flow Analysis 1
# DOMAIN: Domain 1
#
# BOUNDARY: Ground
# Boundary Type = WALL
# Location = ground
# BOUNDARY CONDITIONS:
# HEAT TRANSFER:
# Option = Adiabatic
# END
# MASS AND MOMENTUM:
# Option = No Slip Wall
# END
# WALL ROUGHNESS:
# Option = Rough Wall
# Sand Grain Roughness Height = sandGrainRoughness
# END
# END
# END
#
# END
#END
#
# Example settings for downtream opening boundaries and upstream wind inlets
# Could also set the windinlet on all sides for cylindrical domains – may be an a good idea to leave the top as an opening pressure boundary to help with mass conservation
#
#
#FLOW: Flow Analysis 1
# DOMAIN: Domain 1
#
# BOUNDARY: WindInlet
# Boundary Type = INLET
# Location = south,west
# BOUNDARY CONDITIONS:
# FLOW REGIME:
# Option = Subsonic
# END
# HEAT TRANSFER:
# Option = Static Temperature
# Static Temperature = tamb
# END
# MASS AND MOMENTUM:
# Option = Cartesian Velocity Components
# U = uWind
# V = vWind
# W = wWind
# END
# TURBULENCE:
# Epsilon = edWind
# Option = k and Epsilon
# k = teWind
# END
# END
# END
#
# BOUNDARY: DownstreamOpening
# Boundary Type = OPENING
# Location = north,east
# BOUNDARY CONDITIONS:
# FLOW DIRECTION:
# Option = Normal to Boundary Condition
# END
# FLOW REGIME:
# Option = Subsonic
# END
# HEAT TRANSFER:
# Opening Temperature = tamb
# Option = Opening Temperature
# END
# MASS AND MOMENTUM:
# Option = Opening Pressure and Direction
# Relative Pressure = Popening
# END
# TURBULENCE:
# Option = Medium Intensity and Eddy Viscosity Ratio
# END
# END
# END
# # END
#END
-
Introducing Ansys Electronics Desktop on Ansys Cloud
The Watch & Learn video article provides an overview of cloud computing from Electronics Desktop and details the product licenses and subscriptions to ANSYS Cloud Service that are...
How to Create a Reflector for a Center High-Mounted Stop Lamp (CHMSL)
This video article demonstrates how to create a reflector for a center high-mounted stop lamp. Optical Part design in Ansys SPEOS enables the design and validation of multiple...
Introducing the GEKO Turbulence Model in Ansys Fluent
The GEKO (GEneralized K-Omega) turbulence model offers a flexible, robust, general-purpose approach to RANS turbulence modeling. Introducing 2 videos: Part 1Â provides background information on the model and a...
Postprocessing on Ansys EnSight
This video demonstrates exporting data from Fluent in EnSight Case Gold format, and it reviews the basic postprocessing capabilities of EnSight.
- How to overcome the model information incompatible with incoming mesh error?
- How to create and execute a FLUENT journal file?
- What are the requirements for an axisymmetric analysis?
- How can I Export and import boxes / Systems from one Workbench Project to another?
- How can I select interior faces and other entities that are inside the model?
- What is a .wbpz file and how can I use it?
- Skewness in ANSYS Meshing
- Left-handed faces troubleshooting
- Error: Update failed for the Mesh component in Fluid Flow (Fluent). Error updating cell Mesh in system Fluid Flow (Fluent). View the messages in the Meshing editor for more details.
- Running Python Script from Workbench
© 2024 Copyright ANSYS, Inc. All rights reserved.