Mechanical Systems ေတာ္ေတာ္မ်ားမ်ား မွာ ေရပိုက္ေတြ ပါဝင္ပါတယ္။ ဒါေၾကာင့္ ပိုက္အရြယ္အစား ေရြးခ်ယ္ရတဲ့ Pipe Sizing က Mechanical Engineer ေတြ လႊဲေရွာင္လို႔ မရတဲ့ Task တစ္ခု ျဖစ္ပါတယ္။ ဒီတစ္ပါတ္ေတာ့ Water Pipe Sizing အေၾကာင္း ကုိ ျပန္လည္ တင္ျပ ေပးမွာျဖစ္ပါတယ္။
DRAFT အၾကမ္းေရးလက္စ 1.A. Pipe Flow Application
1.B. Pressurized Flow in Mechanical Systems
1.C. No-Pressure Gravity Flow
2.A. Water Properties
S.I : 1.0 kg/liter ( 1,000 kg/m³ )
I.P: 8.34 lbm/us-gal (62.42 lbm/ft³)
Standard Atmospheric pressure (atm) နဲ႔ ယွဥ္ၾကည့္မယ္ ဆိုရင္။
1 atm = 14.696 psia = 101,325 Pa = 33.91 ft of water= 10.33 m H2O
Specific Heat Capacity (Cp): 1 BTU/#.ºF
Latent Heat of Fusion (water-to-ice) at 32ºF : 144 BTU/#
Latent Heat of Vaporization (water-to-vapor) at 212ºF : 970 BTU/#
Latent Heat of Vaporization (water-to-vapor) at 95ºF : 1,040 BTU/#
ေရရဲ့ သဘာဝ ကို အၾကမ္းအားျဖင့္ တြက္ၾကည့္ရင္ ေအာက္က Formula ကို ရပါတယ္။
RT = gpm x ΔT / 24
gpm (gal/min) x ΔT (ºF)x 60 (min/h) x 8.34 (#/gal) x 1 (BTU/#.ºF) = 500 x gpm x ΔT (BTU/h)
Specific Heat Capacity (Cp): 4.187 kJ/kg.K [ 1 kcal/kg.ºC ]
Latent Heat of Fusion (water-to-ice) at 0ºC : 334 kJ/kg
Latent Heat of Vaporization (water-to-vapor) at 100ºC : 2,256 kJ/kg
Latent Heat of Vaporization (water-to-vapor) at 35ºC : 2,420 kJ/kg
2.B. Pipe Material / Standard
2.C. Pipe Sizing Considerations
2.D. Basic Calculations
Pipe Area တြက္တာကေတာ့ ရိုးရိုးစက္ဝိုင္း ဧရိယာ ရွာတဲ့ ပံုေသနည္း ကို ပဲ သံုးတာပါ။
A= 0.25 x π x d²
သတိထားရန္။ ။ d က Internal Diameter ျဖစ္ရပါမယ္။ Pipe Standard ေပၚမူတည္ ၿပီး ကြာျခားမႈ ရွိပါတယ္။
Basic Unit ေတြ ကို အတူတူ သံုးထားမယ္ ဆိုရင္ေတာ့ ရိုးရွင္းတဲ့ Flowrate = Area x Velocity (or) Q = A x V လို႔ေတြ႕ရမွာ ျဖစ္ပါတယ္။ မဟုတ္ရင္ေတာ့ Unit ေတြ ကိုပါ ညွိေပးရပါမယ္။ ပိုက္ အ႐ြယ္အစား အလြယ္ တြက္ခ်က္ ႏိုင္မဲ့ ပံုေသနည္း အခ်ိဳ႕ ကို ဆက္လက္ ေဖာ္ျပ ေပးပါမယ္။
Q = 2.45 x d² x V
where Q (US gpm), d (in) and V (ft/s)..
[ 0.25 x π x d² (in²) x V (ft/s) x { 60 (s/min)} x { 12 (in/ft) } x { (1 / 231)(U.S gal / in³)} ]
Q = 0.0471 x d² x V
where Q (l/min), d (mm) and V (m/s)...
[ 0.25 x π x d² (mm²) x V (m/s) x { 60 (s/min)} x { (1/1000)² (m/mm)²} x { 1,000 (l/m³)} ]
Total Pressure Loss = Static Pressure Loss + Total Friction Loss + Velocity Pressure
Total Friction Loss = Pipe Friction Loss + Fitting Pressure Loss
Series R = R1 + R2 + R3 + …
Parallel R = 1 / [ (1/R1) + (1/R2) + (1/R3) + …]
အမ်ားအားျဖင့္ေတာ့ Pressure Loss အမ်ားႏိုင္ဆံုး Path တစ္ခု ကိုေရြးၿပီး Series တြက္တာပါ။
W = 0.3404 x d²
where W (lbm/ft) and d (in)...
[0.25 x π x d² (in²) x { 1/144 (ft²/in²) } x 1 (ft/ft) x { 62.42 (lbm / ft³)}]
W = d² / 1,273
where W (kg/m) and d (mm)...
[0.25 x π x d² (mm²) x { (1/1000)² (m/mm)²} x 1 (m/m) { 1,000 (kg/m³)}]
3.A. Flowrate
3.B. Flow Velocity & Pressure LossService Velocity Range S.I (m/s) I.P (fps) Pump Discharge 2.4 to 3 8 to 12 Pump Suction 1.2 to 2 4 to 7 Drain Line 1.2 to 2 4 to 7 Header 1.2 to 4.5 4 to 15 Riser 1 to 3 3 to 10 General Service 1 to 3 5 to 10 City Water 1 to 2 3 to 7
Normal Annual
Operating HoursMaximum Recommended
Water VelocityI.P (fps) S.I (m/s) 1,500 12 3.6 2,000 11.5 3.5 3,000 11 3.3 4,000 10 3 5,000 9 2.7 8,000 8 2.4
3.C. Quick Pipe Sizing
ΔP* - (mm Aq/m) or (ft.wg/1000 ft)Service ΔP* Velocity (m/s) ( ft/s ) Chilled Water < 40 < 2.4 < 8.0 Condenser Water < 50 < 2 < 6.6
Velocity ကိုဒီထက္ ပိုတိုးခ်င္ရင္ အထက္မွာ ေပးထားတဲ့ Recommended Maximum Velocities Criteria ေတြနဲ႔ ျပန္ၿပီး ႏိႈင္းယွဥ္ Justify လုပ္ႏိုင္ပါတယ္။ စာေရးသူ အျမင္အရ အေပၚက ေပးထားတဲ့ Recommended Sizing Criteria: Velocity ေတြနဲ႔ ေရြးတာက သူ႔ထက္ Velocity ပိုယူၿပီး ပိုက္အရြယ္အစား ေသးလိုက္တာထက္ စာရင္ Friction Loss (and Pump Power) ပိုနည္း တာမို႔ Energy Efficient ျဖစ္ပါတယ္။
Chilled Water က Total Closed Loop ျဖစ္ၿပီး Condenser Water ထက္စာရင္ Chemical Concentration အတက္အက် နည္းၿပီး Corrosion လည္း ပိုနည္းပါတယ္။ ဒါေၾကာင့္ သူ႕ရဲ့ Flow Velocity ကို အနည္းငယ္ ပိုယူႏိုင္ပါတယ္။ အျခားတစ္ဘက္ မွာေတာ့ Condenser Water Pipe ရဲ့ Friction Loss Factor ကို Chilled Water Pipe ထက္ ပိုယူႏို္င္ပါတယ္။ ေအာက္က ဇယားႏွစ္ခု မွာ ယွဥ္ၾကည့္ႏိုင္ပါတယ္။ Pipe Size PipeSch. Internal
Diameter SI Units IP (USCS) (USRT)
@
ΔT=10ºF Flowrate Vel. ΔP Flowrate Vel. ΔP ( in) ( mm) ( in) ( l/min) ( m/s) ( mm/m) ( gpm) ( ft/s) (ft/100') 3/4" 20 40 0.824 15 0.7 40 4 2.4 4.0 1.7 1" 25 40 1.049 27 0.8 40 7 2.6 4.0 2.9 1-1/4" 32 40 1.38 56 1.0 40 15 3.2 4.0 6.3 1-1/2" 40 40 1.61 84 1.1 40 22 3.5 4.0 9.2 2" 50 40 2.067 160 1.2 40 42 4.0 4.0 17.5 2-1/2" 65 40 2.469 260 1.4 40 69 4.6 4.0 28.8 3" 80 40 3.068 460 1.6 40 120 5.2 4.0 50 3-1/2" 90 40 3.548 675 1.8 40 180 5.8 4.0 75 4" 100 40 4.026 940 1.9 40 250 6.3 4.0 104 5" 125 40 5.047 1,700 2.2 40 450 7.2 4.0 188 6" 150 40 6.065 2,700 2.4 38 710 7.9 3.8 296 8" 200 30 8.071 4,800 2.4 28 1,260 7.9 2.8 525 10" 250 30 10.136 7,590 2.4 21 2,000 7.9 2.1 833 12" 300 30 12.09 10,800 2.4 17 2,850 8.0 1.7 1,188 14" 350 30 13.25 12,970 2.4 15 3,420 8.0 1.5 1,425 16" 400 30 15.25 17,180 2.4 13 4,540 8.0 1.3 1,892 18" 450 ST 17.25 22,000 2.4 11 5,800 8.0 1.1 2,417 20" 500 ST 19.25 27,370 2.4 10 7,230 8.0 1.0 3,013 22" 550 ST 21.25 33,360 2.4 9 8,800 8.0 0.9 3,667 24" 600 ST 23.25 40,000 2.4 8 10,550 8.0 0.8 4,396
*STD: USRT for Chiller with Vapor Compression Cycle at ARI:550 Standard Condition Pipe Size PipeSch. Internal
Diameter SI Units IP (USCS) (USRT)
@
*STD Flowrate Vel. ΔP Flowrate Vel. ΔP ( in) ( mm) ( in) ( l/min) ( m/s) ( mm/m) ( gpm) ( ft/s) (ft/100') 3/4" 20 40 0.824 16 0.8 50 4 2.5 5.0 1.4 1" 25 40 1.049 30 0.9 50 8 2.9 5.0 2.6 1-1/4" 32 40 1.38 63 1.1 50 17 3.6 5.0 5.5 1-1/2" 40 40 1.61 95 1.2 50 25 4.0 5.0 8.4 2" 50 40 2.067 180 1.4 50 48 4.5 5.0 15.9 2-1/2" 65 40 2.469 290 1.6 50 77 5.1 5.0 25.5 3" 80 40 3.068 520 1.8 50 137 6.0 5.0 45.8 3-1/2" 90 40 3.548 760 2.0 50 201 6.5 5.0 66.9 4" 100 40 4.026 980 2.0 43 259 6.5 4.3 86.3 5" 125 40 5.047 1,550 2.0 33 410 6.5 3.3 137 6" 150 40 6.065 2,230 2.0 27 589 6.5 2.7 196 8" 200 30 8.071 3,960 2.0 19 1,046 6.5 1.9 349 10" 250 30 10.136 6,250 2.0 15 1,651 6.5 1.5 550 12" 300 30 12.09 8,880 2.0 12 2,346 6.6 1.2 782 14" 350 30 13.25 10,675 2.0 11 2,820 6.6 1.1 940 16" 400 30 15.25 14,140 2.0 9 3,736 6.6 0.9 1,245 18" 450 ST 17.25 18,100 2.0 8 4,782 6.6 0.8 1,594 20" 500 ST 19.25 22,500 2.0 7 5,945 6.5 0.7 1,982 22" 550 ST 21.25 27,450 2.0 6 7,252 6.6 0.6 2,417 24" 600 ST 23.25 32,860 2.0 6 8,682 6.6 0.6 2,894
Refer To -
http://chawlwin.blogspot.com/2008/11/domesticwater01.html
Refer To
http://chawlwin.blogspot.com/2008/10/sanitary01.html
Showing posts with label MEP Design. Show all posts
Showing posts with label MEP Design. Show all posts
Tuesday, July 6, 2010
Water Pipes Sizing
Monday, June 21, 2010
Self-Study Guide for Revit MEP 2010 - 2011
- Building Services Design မွာ ေရပန္းစားစ ျပဳလာတာ ကေတာ့ BIM (Building Information Modeling) ပါ။ Architectural + Structural + MEP Systems ေတြ အားလံုး ကို စုေပါင္းၿပီး Integrated Model တစ္ခု အေနနဲ႔ ျပလို႔ ရႏိုင္ လို႔ျဖစ္ပါတယ္။
- BIM နဲ႔ ပါတ္သက္လို႔ အရင္တုန္းက ၾကားခဲ့ ဘူးတာ ကေတာ့ Microstation Platform သံုးထားတဲ့ Plant Space ျဖစ္ပါတယ္။ စကာၤပူ ႏိုင္ငံ Changi Water Reclamation Plant (CWRP) ေဆာက္လုပ္ခဲ့တုန္း က သက္ဆိုင္ရာ Project အခြဲ အလိုက္ Consultant, Client နဲ႔ Contractors အားလံုး က Engineers ေတြ အဲဒီ Project အတြက္ သက္ဆိုင္ရာ 3d Model တစ္ခုထဲ မွာပဲ ဝိုင္း အလုပ္လုပ္ခဲ့ ၾကတယ္လို႔ ဆိုပါတယ္။ Model ထဲမွာ Walk through လုပ္ရင္း ေတြ႕တဲ့ Fittings (ဥပမာ။ ။ valve) ရဲ့ Model, Spec ေတြ ကို လည္း ၾကည့္လို႔ လည္း ရပါတယ္။Design, Walk Through, Material Take-Off, Coordination, Automatic Section Cutting စတာေတြ အားလံုးလိုလို ကို Model တစ္ခုထဲ ကေန ပဲ ထုတ္ယူ ၾကတယ္လို႔ သိရပါတယ္။
- Autodesk က ေန Actively Promote လုပ္ေနတာ ကေတာ့ Autodesk Revit ပါ။ သူ႔မွာ Architecture, Structure နဲ႔ MEP ဆိုၿပီး ရွိပါတယ္။ MEP Engineer ေတြ အတြက္ အသံုးဝင္ မွာ ကေတာ့ Revit MEP ျဖစ္ပါတယ္။ Design Decisions ခ်တဲ့ အခါ ပိုမို လြယ္ကူ ေစမွာ ျဖစ္ၿပီး အမွားလည္း နည္းေစလိမ့္ မယ္ လို႔ Autodesk က ဆိုပါတယ္။ ဒီ Post မွာ အဓိက တင္ျပေပးမွာ ကလည္း Revit MEP အေၾကာင္းပဲ ျဖစ္ပါတယ္။
- Self-Study= Free of Charge : Revit MEP ကို အားလပ္တဲ့ အခ်ိန္မွာ Self-Study လုပ္ႏိုင္ပါတယ္။ လိုအပ္တဲ့ System Requirements ျပည့္မွီတဲ့ ကြန္ျပဴတာ တစ္လံုး နဲ႔ Internet ရွိရင္ အျခားလိုအပ္မဲ့ Trial Software နဲ႔ Study Materials အားလံုး က အခေၾကးေငြ မကုန္က်ပဲ ရႏိုင္ပါတယ္။
- ပိုၿပီး နားလည္တတ္ကြ်မ္း ခ်င္လို႔ AutoDesk Authorized Training Center ေတြ မွာ အခေၾကးေငြ ေပးၿပီး သင္တန္းတက္လို ကလည္း တက္ႏိုင္ ပါေသးတယ္။
- Trial Software: Getting and Installation
- Trial Software ကို ဘယ္လို ရယူႏိုင္မလဲ။
- Trial Software ကို ရႏိုင္တဲ့ နည္း ႏွစ္နည္း ကေတာ့။
- Trial DVDs from Local Autodesk's Authorized Distributers or Training Centers
- Download from Autodesk Revit MEP Website
- Autodesk's Authorized Distributers or Training Centers ေတြ ကေန အခမဲ့ ရယူ ႏိုင္ မဲ႔ AutoDesk MEP Suite 2010 DVDs ေတြ မွာ AutoCAD MEP နဲ႔ Revit MEP 2010 ေတြ ပါဝင္ပါတယ္။ AutoCAD MEP က ပံုဆြဲတဲ့ သူေတြ အတြက္ ရည္ရြယ္တာ ျဖစ္ၿပီး Revit MEP ကေတာ့ Engineer ေတြ အတြက္ Design Decision ခ်ဘို႔ Model ျဖစ္ပါတယ္။
- Software က Full access trail – 30 days နဲ႔ ရက္ ၃၀ ေနာက္ပိုင္းမွာ Evaluation/Training အေနနဲ႔ ဆက္ေလ့က်င့္ နိုင္ပါတယ္။ ကန္႔သတ္ခ်က္ က ေတာ့ Model တစ္ခု ကို ျပင္ၿပီးရင္ Print out ထုတ္လို႔ မရတာ နဲ႔ Save / Save as လုပ္လို႔ မရတာပဲ ရွိပါတယ္။ Edit မလုပ္ရင္ေတာ့ Viewer သေဘာမ်ိဳး မို႔ Print out ထုတ္လို႔ရပါတယ္။
- စကာၤပူ အတြက္ Authorised Training Centre ေတြ ကို ေအာက္ က လိပ္စာ မွာ ေတြ႕ႏိုင္ပါတယ္။
http://south-apac.autodesk.com/adsk/servlet/index?siteID=1157326&id=3863016 - အဲဒီ အထဲ က IMAGINiT Technologies (S) Pte Ltd နဲ႔ Innocom Technologies Pte Ltd ေတြ မွာ သင္တန္းေတြ ရွိသလို သူတို႔ ဆီက ေန (သင္တန္းတက္သည္ ျဖစ္ေစ၊ မတက္သည္ ျဖစ္ေစ၊ ) Trial DVDs ေတြ ရႏိုင္ ဘို႔ အခြင့္အေရး မ်ားပါတယ္။ ေနာက္လူေတြ ေတာင္းယူလို႔ မရ၊ ဒုကၡ ေရာက္ရေလေအာင္ သူတို႔ကို အေႏွာင့္အယွက္ ေပးသလို မျဖစ္ဘို႔ ေတာ့ သတိထားပါ။
" Please request professionally, be responsible, don’t upset them for trial dvds and next people will suffer." - Online download link ကို ေအာက္က Link ေပးထားတဲ့ Autodesk website မွာ ရွာႏိုင္ပါတယ္။
Autodesk Revit MEP Website [ http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=6861034 ]
- Trial Software ကို ရႏိုင္တဲ့ နည္း ႏွစ္နည္း ကေတာ့။
- Installations
- သတိထားရမဲ့ အခ်က္ ႏွစ္ခုကေတာ့
- System Requirements ေတြ ကို စစ္ပါ။
- Installation Keys ေတြ ကို သတိထားပါ။
- ပထမဆံုး System Requirements ေတြ ကို အရင္စစ္ပါ။ 3d model ေတြ မို႔ Memory လိုအပ္ခ်က္ နဲ႔ System Requirements ေတြ က ျမင့္ပါတယ္။ အေသးစိတ္ ကို ေတာ့ Autodesk Revit MEP Website မွာ ေတြ႕ႏိုင္ပါတယ္။ အၾကမ္းအားျဖင့္။
- Microsoft® Windows Vista® (SP2 or later), Windows® XP (SP2 or later), Microsoft® Windows® 7
- Intel® Pentium® 4 or AMD Athlon™ dual core, 1.6 GHz (XP) or 3.0 GHz (Vista/Windows 7) or higher
- 3 GB RAM
- 5 GB free disk space
- 1,280 x 1,024 monitor and display adapter with true color
- Microsoft® Internet Explorer® 7.0 (or later)
- Microsoft Mouse-compliant pointing device
- Download or installation from DVD
- သတိထားရန္ ။ ။ Installation လုပ္တဲ့ အခါ Installation key ေတြ ရိုက္ထည့္ရမဲ့ ေနရာေရာက္ ရင္ Trial အတြက္ ဘာ keys ေတြ ရိုက္ထည့္ ရမလဲ ဆိုတာ ကို အဲဒီ Installation Dialogue ထဲက Instruction မွာ ေဖာ္ျပ ေပးထား ပါလိမ့္မယ္။ ဒီအဆင့္ မမွန္ရင္ Installation successful ျဖစ္မွာ မဟုတ္ပါဘူး။
- သတိထားရမဲ့ အခ်က္ ႏွစ္ခုကေတာ့
- Trial Software ကို ဘယ္လို ရယူႏိုင္မလဲ။
- Practicing Tutorials
- Tutorials ေတြ ကို Autodesk Revit MEP Services & Support Website [ http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=13081672&linkID=9243140 ] ကေန Download လုပ္ၿပီး ရယူႏိုင္ပါတယ္။
- သတိထားရန္ ။ ။ Installation လုပ္ထားတဲ့ Region အလိုက္ သင့္ေတာ္ရာ Unit ကိုေရြးခ်ယ္ ရပါမယ္။
- IP-unit (Imperial Unit)
- SI-unit (Metric Unit)
- သတိထားရန္ ။ ။ သံုးစြဲမဲ့ SI (သို႔) IP ယူနစ္ေအာက္ က Tutorial documents ေတြ နဲ႔ dataset files အားလံုး ကို download လုပ္ ေနာက္ Organize လုပ္ၿပီး မွ Tutorials ေတြ ကို စသင့္ပါတယ္။ မဟုတ္ရင္ Links ေတြ ေပ်ာက္ေနႏိုင္ပါတယ္။ ဒီ Post ေရးေနတဲ့ အခ်ိန္မွာ rme_tutorial_documents_i.zip တစ္ဖိုင္ နဲ႔ rme_tutorial_datasets_01_i.zip ကေန rme_tutorial_datasets_08_i.zip အထိ ရွစ္ဖိုင္၊ စုစုေပါင္း 9-files ရွိပါတယ္။
- rme_tutorial_documents_i.zip ကို unzip လုပ္လိုက္ရင္ ရလာမဲ့ Tutorialxxxx.pdf file ထဲ မွာ ေလ့က်င့္ရမဲ့ Tutorial Lessons ေတြ ကို ေဖာ္ျပေပး ထားပါတယ္။
- rme_tutorial_datasets_01_i.zip ကေန rme_tutorial_datasets_08_i.zip ထဲမွာ ကေတာ့ Tutorials ေတြ အတြက္ သံုးရမဲ့ Practice Files ေတြ ပါဝင္ပါတယ္။ သူတို႕ကို unzip လုပ္လိုက္ရင္ Folders ငါးခု ေတြ႕ရမွာ ျဖစ္ပါတယ္။
- 02_Mechanical Systems
- 03_Electrical Systems
- 04_Plumbing Systems
- 05_Fire Protection Systems
- Arch_Struct Link Files
- သတိထားရန္ ။ ။ Tutorial File ေတြ ကို ဖြင့္တဲ့ အခါ သက္ဆိုင္ရာ Arch Link File ေပ်ာက္ ေနတတ္ပါတယ္။ ဒီအခါ error ေတြ ပါ တက္လာ တတ္ပါ ေသးတယ္။Arch Link Model.rvt ကို အျခား Folder ေတြထဲ ကူးထည့္ထားပါ။ ဒါမွ မရရရင္ေတာ့ ကေန Revit link model ကို reload လုပ္ယူရမွာ ျဖစ္ပါတယ္။
- ဒီ Tutorials ေတြ ကို အစီအစဥ္ အတိုင္း ေလ့က်င့္ ေစခ်င္ပါတယ္။ Services အလိုက္ ေနာက္ သင္ခန္းစာ ကေရွ႕က ေလ့က်င့္ခန္း ကေန ဆက္သြားရတာ မို႔ပါ။ ေလ့က်င့္ခန္း ကို Download လုပ္ထားတဲ့ မူရင္း File ေတြ ကို သံုးၿပီး ေလ့က်င့္ပါ။ File ေတြ လိုေနရင္ ေပးထားတဲ့ Link ကေန Download လုပ္ပါ။ Trial Period မွာ ေလ့က်င့္ခန္း တစ္ခုၿပီးတဲ့ အခါ File ကို Save လုပ္လို႔ရေပမဲ့ မလုပ္ပါနဲ႔။
- အၾကံေပးခ်က္ ။ ။ Tutorial Exercise ေတြ လုပ္တဲ့အခါ မလုပ္ခင္ ရွင္းျပခ်က္ နဲ႔ အဆံုးသတ္ မွာ ကိုယ္ဘာေတြ လုပ္ခဲ့တာလဲ ဆိုတာ ရွင္းျပ ထားပါတယ္။ ဒါေတြ က အေရးၾကီးပါတယ္။ ေလ့က်င့္ခန္း တစ္ခု ၿပီးတိုင္း ဒီမွတ္စု ႏွစ္ခု ကို ၾကည့္ၿပီး ဘာေၾကာင့္ဘာလုပ္ရတာ လဲ ျပန္ဆန္းစစ္ပါ။ ဒါမွ ေသခ်ာ နားလည္မွာ ျဖစ္ပါတယ္။ မဟုတ္ရင္ ဘာအတြက္ ဘာေတြ ဘာေၾကာင့္ လုပ္ရတာလဲ မသိ၊ ေလ့က်င့္ခန္း ေတြ သာၿပီးသြားတယ္ ဘာမွ နားမလည္ ျဖစ္ေနပါလိမ့္မယ္။
- ေနာက္ Presentation Media Files ေတြ ကို လည္း Revit MEP Media Files ကေန ရရွိႏိုင္ပါတယ္။ Salesman Talk ေတြ ျဖစ္တာမို႔ ညႊန္းလြန္းတာ ေတာ့ သတိျပဳပါ။
- Tutorials ေတြ ကို Autodesk Revit MEP Services & Support Website [ http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=13081672&linkID=9243140 ] ကေန Download လုပ္ၿပီး ရယူႏိုင္ပါတယ္။
- Discussions
- Revit MEP မွာ ပံုဆြဲတယ္ဆိုတာ ထက္ model design လုပ္တယ္ဆိုတာ က ပိုသင့္ေတာ္ပါတယ္။ Database ပံုစံနဲ႔ Model Analysis ေတြ ပါတြဲသံုး ထားတာမို႔ပါ။
- သံုးရမဲ့ Architecture Link Model က အျဖစ္၊ Archi အျမင္ရယံု သက္သက္ မဟုတ္ပဲ အခ်က္အလက္ ျပည့္စံုတဲ့ အမွန္တကယ္ Architecture Model ေကာင္း ျဖစ္ေနဘို႔ လည္းလိုအပ္ပါတယ္။ Architects ေတြ က အျမင္ရယံု ၿပီးစလြယ္ လုပ္ထားရင္ Revit MEP သံုးတဲ့သူ ခ်ာလပတ္ရမ္း သြားႏိုင္ပါတယ္။ ဒီျပႆနာ က ေတာ့ ေတာ္ရံု နဲ႔ ရွင္းရမယ္ မထင္ပါဘူး။
- ေနာက္ MEP Equipments ေတြ ရဲ့ Model ေတြ ကို Library မွာ အမ်ားႀကီး အဆင္သင့္ ထည့္သြင္း ေပးထားတယ္ ဆိုေပမဲ့ လည္း Still very limited ပါ။ ဥပမာ Pumps/ Equipments အမ်ိဳးမ်ိဳး က Type နဲ႔ Manufacturer ေပၚ မူတည္ ပါမယ္။ ဒီ Model ေတြ မွာ သင့္ေတာ္တဲ့ အရြယ္အစား အျပင္ MEP connection sizes ေတြ၊ Types ေတြ လည္း ပါရမွာ ျဖစ္ပါတယ္။ ဥပမာ 2" Chilled water inlet, 2" Chilled water outlet, 9"x12" Air Supply, ဆိုတာမ်ိဳးေတြ ပါဝင္ရမွာ ျဖစ္ပါတယ္။ ဒါေတြ ကို ကိုယ့္ဖာသာ လိုက္ၿပီး Create လုပ္ေနရမယ္ ဆိုရင္ လည္း သိပ္ခရီးတြင္ မွာ မဟုတ္ပါဘူး။
- Building Services Design အေျခခံ ေတြ နဲ႔ ဒီဇိုင္းလုပ္ႏိုင္ တဲ့ Engineering Knowledge / Skills ေတြ ကေတာ့ လိုအပ္ ပါလိမ့္မယ္။ Software က သိပ္ Advanced ျဖစ္ၿပီး သံုးလို႔လြယ္ကူ လာေပမဲ့ အေျခခံ Design/Engineering Knowledge ရွိမွ အမွားအမွန္ ခြဲျခားစစ္ေဆးႏိုင္မွာ ျဖစ္ၿပီး အမွားနည္းေစႏိုင္မွာ မို႔ပါ။ Proper Input မထည့္ႏိုင္ရင္ Reliable Output မရႏိုင္ပါဘူး။ စာေရးသူ အျမင္အရ အသံုးခ်မဲ့ သူအတြက္ မရွိမျဖစ္ လိုအပ္ခ်က္ ေတြ ကေတာ့
- Knowledge to Understand All Building System Drawings (Architectural, Structural, MEP Systems)
- MEP Service Basic Design Knowledge
- Basic MEP Systems Coordination
- ဒါ့အျပင္ Construction (Site) Experiences ရွိခဲ့ရင္ လည္း ဒီ Software ကို အသံုးခ်တဲ့ အခါ ပိုၿပီး ျမင္လြယ္ ေစႏိုင္ ပါတယ္။ AutoCAD နဲ႔ ပံုစံ မတူေပမဲ့ Autodesk Environment ပဲမို႔ AutoCAD Experiences ရွိခဲ့ရင္လည္း အတိုင္းအတာ တစ္ခုအထိ ေတာ့ အသံုးက် ပါလိမ့္မယ္။
- ဒီဇိုင္း အေျခခံ ရွိရမယ္ လို႔ ဘာလို႔ ေျပာရလဲ တာ ကို နမူနာ ေျပာရရင္ အခန္းတစ္ခန္း အတြက္ Autodesk Revit ကို သံုးၿပီး HVAC Ducting System တစ္ခု လုပ္ေတာ့မယ္ ဆိုရင္ လုပ္ရမဲ့ အဆင့္ေတြ က
- ဒီအခန္း က ဘာအခန္း လဲ၊ ဘာအတြက္ သံုးမွာလဲ။ Archi-Model က (အခင္း၊ အမိုး၊ အကာ) ျပည့္စံုရဲ့လား။
- ဘယ္လို Diffuser Type ကို သံုးမလဲ၊ Air Flow က ဘယ္ေလာက္ စီလဲ။
- Supply Air Diffuser ဘယ္ႏွလံုး ဘယ္ေနရာ မွာ ခ်ထားမွာလဲ။ Return Grill ကေရာ ဘယ္လိုလဲ။
- Ceiling မရွိရင္ ဘယ္အျမင့္ မွာ ဆင္သင့္တာလဲ။
- BIM ကို သံုးၿပီး Cooling/Heating Load တြက္ခ်က္ ႏိုင္ဘို႔ အတြက္ Basic Cooling Load Calculation Knowledge ရွိရပါမယ္။ (ဥပမာ။ ။ ventilation rate, occupant density, lighting load, power load, schedule, etc.)
- Cooling/Heating Load တြက္ခ်က္မႈ အရ Air Flow ဘယ္ေလာက္ လိုမွာလဲ။ ဒါေရာ ကိုက္ရဲ့လား။
- Terminal Equipment က ဘာအမ်ိဳးအစား လဲ။ Capacity ကဘယ္ေလာက္လဲ။
- Ducting / Fittings အမ်ိဳးအစား (Round / Rectangle) နဲ႔ သံုးမဲ့ Sizing Method
- Duct Pressure Loss / Velocity Limit Constraints
- Elevation to Locate the Duct (i.e. How high from the floor)
- Duct Size Constraint (i.e. Maxiumum Duct Height, etc.)
- ဒါေတြ ကို မွန္မွန္ကန္ကန္ ထည့္သြင္းၿပီးမွသာ Duct Sizes ေတြ ကို Software အကူအညီ နဲ႔ တြက္ထုတ္ႏိုင္မွာ ျဖစ္ပါတယ္။
- တစ္ၿပိဳင္တည္း မွာပဲ သက္ဆိုင္ရာ Ducting Layout နဲ႔ အတူ Database ေတြကေန Schedule/Quantities ေတြကို Update လုပ္ၿပီးသားမို႔ သင့္ေတာ္သလို Extract လုပ္သံုးႏိုင္ပါတယ္။
- ဒါ့အျပင္ MEP Systems ေတြ ကို ဘယ္လို အုပ္စု ဖြဲ႔မယ္။ ဘာနဲ႔ ဘာနဲ႔ ဆက္သြယ္ခ်က္ ရွိတယ္။ သက္ဆိုင္တဲ့ Architectural Drawing က Floor Plan ေတြ Ceiling နဲ႔ Ceiling Plenum ေတြ ကို ဘယ္လိုယူ သံုးမယ္။ အခန္းဖြဲ႕ထားတာ ေတြ ကို ဘယ္လို zone လုပ္မယ္ စတာေတြ က Design Knowledge ရွိမွ သံုးလို႔ သက္ေတာင့္သက္သာ ရွိမွာျဖစ္ပါတယ္။
- References & Web-Links
- Autodesk Revit MEP Website
[ http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=6861034 ] - Autodesk Revit MEP Services & Support Website
[ http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=13081672&linkID=9243140 ] - Revit MEP Media Files
[ http://www.buildings-media-center.com/search.php?solution=all&product=revit-mep ] - Singapore: Autodesk Authorised Training Centres
[ http://south-apac.autodesk.com/adsk/servlet/index?siteID=1157326&id=3863016 ]
- Autodesk Revit MEP Website
Tuesday, June 23, 2009
VBA for MEP Calculations
- Application ေတြထဲ မွာ Programming အမ်ိဳးမ်ိဳး သံုးလို႔ ရပါတယ္။ ဒီအထဲ မွာ သံုးတတ္ရင္ အခ်ိန္ကုန္ သက္သာေစတဲ့ VBA (Visual Basics for Application) ကိုသံုးၿပီး Engineering Formula Functions ေတြ ေရးတာ ကို မိတ္ဆက္ေပး ဘို႔ ရည္ရြယ္ထားပါတယ္။
- အဓိက သံုးမဲ့ ေနရာ က ေတာ့ spread sheet (Microsoft Excel) အတြက္ ပါ။ တကယ္ေတာ့ VBA က MS Offices ေတြ၊ Web Script ေတြ အတြက္ သာ မက AutoCad ® မွာလည္း အသံုးျပဳလို႔ ေကာင္းတဲ့ programming တစ္ခုပါ။ AutoCad ® ကိုသံုးတဲ့ သူေတြ အတြက္ AutoLisp, vBA, Diesel, Script စတဲ့ programming အခ်ိဳ႕ကို နားလည္ရင္ ထပ္တလဲလဲ လုပ္ရတဲ့ process ေတြ ကို အခ်ိန္ကုန္ သက္သာစြာ နဲ႔ လုပ္ေဆာင္ ႏိုင္ပါတယ္။ ရႈတ္ရႈတ္ေထြးေထြး တြက္ခ်က္ဘို႔ လိုအပ္တာေတြ၊ Trial and error Loop နဲ႔တြက္ရတာေတြ အတြက္လည္း တစ္ႀကိမ္ စနစ္တက် ေခါင္းရႈတ္ခံ လိုက္ရင္ ေနာက္တစ္ခါ သံုးဘို႔ အဆင္သင့္ ျဖစ္ေစပါမယ္။
- Contents
- Basic of Programming
- VBA for Excel
- Developing Programming Flowcharts for HVAC Air-Side Circular Duct Sizing Calculations (SI Units)
- VBA Codes for Air Duct (SI Units)
- Screenshots: Adding VBA Codes in Excel
- Screenshots: Use of VBA Functions in Excel Worksheet
- Html Color Coding by VBA
- References
- Basic of Programming
- Programming Languages အလိုက္ Detail အမ်ိဳးမ်ိဳး ျဖစ္ႏိုင္ေပမဲ့ basic instructions အခ်ိဳ႕ ကေတာ့ Languages တိုင္းလိုလို မွာပါဝင္ေနတာ ေတြ႕ရပါမယ္။
- input: Get data from the keyboard, a file, or some other device.
- output: Display data on the screen or send data to a file or other device.
- Math / Operation : Perform basic mathematical operations like addition and multiplication.
- conditional execution: Check for certain conditions and execute the appropriate sequence of statements.
- repetition: Perform some action repeatedly, usually with some variation.
- ဒါေတြရဲ့ အေျခခံ ေတြ ကို Algorithm (or) Pseudocode and Program Flow Chart ေတြနဲ႔ ျပလို႔ ရပါတယ္။ Modular programming လို႔ေခၚတဲ့ Program အေသးေလး ေတြ အပိုင္းလိုက္ အကန္႔လိုက္ အစိတ္စိတ္ သီးျခားခြဲ ေရးၿပီး မွ ေပါင္းစပ္ သံုးတဲ့ အခါ ေရးရတာေရာ၊ debug လုပ္ရတာေရာ လြယ္ကူလာပါတယ္။
- Program ေရးတဲ့ အခါ စနစ္ တက် Planning လုပ္ထားခဲ့ဘို႔ လိုအပ္ပါတယ္။ မဟုတ္ရင္ အမွားရွာရ ျပင္ရ စတဲ့ Debugging လုပ္ရတာ က ေရးရတာထက္ အဆေပါင္း မ်ားစြာ ပိုခက္ေစရံု သာမက Crush ျဖစ္တဲ့ ျပႆနာ ေတြကိုပါ ထပ္ရွင္း ေနရပါလိမ့္ အံုးမယ္။
- Programming Flowchart နဲ႔ ပတ္သက္ၿပီး http://www.nos.org/htm/basic2.htm မွာ သြား ေရာက္ ေလ့လာ ႏိုင္ပါတယ္။ အဓိက သိသင့္တာ ကေတာ့
- Start / End : အစ နဲ႔ အဆံုး (Programming တိုင္းမွာ အစ (Start) နဲ႔ အဆံုး (End) ပါဝင္ရပါမယ္။) သူ႕ရဲ့ ပံုက ေထာင့္ကို လံုးထားတဲ့ စတုဂံ ပံုပါ။
- Process : Computational steps or processing function of a program၊ ပံုက ရိုးရိုး စတုဂံပံုပါ။
- Decision Making and Branching၊ ႐ြမ္းဗတ္ ပံု။
...Back to Top .... - Programming Languages အလိုက္ Detail အမ်ိဳးမ်ိဳး ျဖစ္ႏိုင္ေပမဲ့ basic instructions အခ်ိဳ႕ ကေတာ့ Languages တိုင္းလိုလို မွာပါဝင္ေနတာ ေတြ႕ရပါမယ္။
- VBA for Excel
Excel အတြက္ VBA Application ကိုေလ့လာတဲ့ အခါ သိသင့္တာေတြ ကေတာ့၊- VB for Application
- VB for Excel Application
- Files (personal.xls or add-in ".xla", Newer version ".xlsx")
- Excel VBA Object Model: Excel, Word, AutoCad ® သာမက VBA သံုးႏိုင္တဲ့ Applications ေတြ မွာ Object Model ေတြရွိပါတယ္။ ဒါမွ VBA ကေန လုပ္ေဆာင္ရမဲ့၊ လုပ္ေဆာင္ႏိုင္တဲ့ နည္းလမ္းေတြ ကို ရွာေဖြ ႏိုင္ဘို႔ပါ။
- Macro Security
- Function and Sub: Sub ဆိုတာ ကေတာ့ macro အေနနဲ႔ တိုက္ရိုက္ run လို႔ရတဲ့ processes ေတြပါ။ ပါဝင္တဲ့ နည္းလမ္း အခ်ိဳ႕ ကို modify လုပ္ဘို႔ လိုတဲ့ အခါ macro record လုပ္ၿပီး မီွျငမ္းေလ့လာႏိုင္ပါတယ္။ Form ေတြပါ ဒီဇိုင္းလုပ္ၿပီး Graphical User Interface နဲ႔ သံုးစြဲႏိုင္ပါတယ္။ အခုတင္ျပမွာ ကေတာ့ ဒီ Sub အေၾကာင္း မဟုတ္ပါဘူး။ Excel Spread Sheet ထဲမွာ Function အေနနဲ႔ တိုက္ရိုက္ Insert လုပ္ သံုးႏိုင္မဲ့ Function ေတြအေၾကာင္းပါ။
...Back to Top .... - Developing Programming Flowcharts for HVAC Air-Side Circular Duct Sizing Calculations (SI Units)
- Cold Air Standard အတြက္ သံုးရမဲ့ Duct အရြယ္အစား ေရြးခ်ယ္တဲ့ နည္းပါ။ ဒီနည္း နဲ႔ Pressure Loss ကို တြက္ထုတ္ ရင္ ရမဲ့ Duct Pressure Loss အေျဖက ± 5% အတြင္းမွာ ရွိပါတယ္။ သူ႕ကို သံုးႏိုင္တဲ့ Conditions ေတြကေတာ့။
- Temperature: 5 to 35 °C
- Elevation: 0 to 500m
- Duct Pressure: -5 to 5 kPa relative to ambient pressure
- Temperature: 5 to 35 °C
- ဒီ အေျခအေန ေတြ က ပံုမွန္ HVAC အတြက္ လံုေလာက္ပါတယ္။
- အမ်ားအားျဖင့္ Constraints ႏွစ္ခုရွိပါတယ္။ Velocity နဲ႔ Friction Loss ပါ။ ဒါေၾကာင့္ Duct Size လုပ္တဲ့ အခါ Velocity ကိုပဲ သံုးရင္ မွားတတ္ပါတယ္။
- Velocity Limits ေတြ နဲ႔ပတ္သက္ၿပီး Basic Duct Sizing Consideration ေတြကုိ M&E Basics: Pipe & Duct Sizing မွာေလ့လာပါ။ (မွတ္ခ်က္၊ ၊ Ducting နဲ႔ Piping ကို သီးသန္႔ျပန္ခြဲ ဘို႔ စီစဥ္ေနပါတယ္။)
- ပထမဆံုး Circular Duct Size ကို တြက္ဘို႔ Function ကိုေရးရပါမယ္။
- အသံုးျပဳမဲ့ Calculation Formulae ေတြကို ေတာ့ ASHRAE Handbook: Fundamental ထဲကေန မွီျငမ္းထားပါတယ္။
- တြက္နည္း အဆင့္ဆင့္ ကေတာ့၊
- သတ္မွတ္ထားတဲ့ Velocity အတြင္းဝင္တဲ့ Duct Size ကိုတြက္မယ္။
- ဒီ Duct Size နဲ႔ တြက္ရင္ ရမဲ့ Pressure Loss ကိုတြက္ၿပီး သတ္မွတ္ထားတဲ့ Limit အတြင္းရွိမရွိ ၾကည့္မယ္။ ဝင္ေနတယ္ ဆိုရင္ အေျဖရပါၿပီ။
- Limit အတြင္း မဟုတ္ေသး ရင္ေတာ့ သတ္မွတ္ထားတဲ့ Pressure Loss Limit အတြင္း မဝင္မခ်င္း Duct Size ကိုျပန္ေရြး၊ ျပန္တြက္ လုပ္ရပါမယ္။
- ဒီ Function ကိုေရးတဲ့ အခါ တြက္ရ ပုိၿပီးလြယ္ ကူေအာင္ အကူ Functions ခြဲႏွစ္ခု ပါ ထည့္ေရးထားပါတယ္။ ဒီ Functions သံုးခု ေပါင္းမွ အလုပ္ လုပ္ပါလိမ့္မယ္။
- DuctSize_Cir_mm : Circular Duct Size ကို တြက္ထုတ္ဘို႔ပါ။
- DuctFrictionLoss_Pa: Circular Duct Frictioin Loss ကို တြက္ထုတ္ဘို႔ပါ။
- f_Colebrook: Colebrook's Friction Factor ကို တြက္ထုတ္ဘို႔ပါ။
- Flowcharts ေတြ ကို ေရးမယ္ဆိုရင္ ဒီလိုေတြ႕ရပါမယ္။
- Circular Duct မဟုတ္တဲ့ အျခား Duct ေတြ ကို သံုးတဲ့ အခါ အသင့္ေတာ္ဆံုး ကေတာ့ Equivalent Circular Duct ကိုရွာၿပီး တြက္တဲ့ နည္းပါ။
- HVAC Air-Side မွာသံုးေလ့ ရွိတဲ့ Air Duct အမ်ိဳးအစား သံုးခု နဲ႔ သက္ဆိုင္တဲ့ Conversion Formula ေတြ ကို ေအာက္မွာ ေဖာ္ျပထားပါတယ္။
- ဒီ Conversion Formula ေတြ ကို အသံုးခ်ထားတဲ့ VBA Code ေတြကိုပါ ထည့္သြင္း ေဖာ္ျပေပးမွာ ျဖစ္ပါတယ္။
- ဒီ တြက္နည္း ေတြ ကို Numerical Programming နဲ႔တြက္ဘို႔ VBA Code ကို ေရးရပါတယ္။ Excel ထဲက Visual Basic Editor ေအာက္မွာပါ။ သီးသန္႔ ".xla" အျဖစ္နဲ႔ ထားၿပီး Excel အစမွာ တက္ဘို႔ ထားထားတဲ့ XLStart ဆိုတဲ့ Folder ကိုရွာၿပီး ထည့္ခ်င္ထည့္၊ “personal.xls” ဆိုတဲ့ File ထဲမွာပဲ ျဖစ္ျဖစ္ ထားလို႔ရပါတယ္။
- VBA က Macro Security Level ေပၚမူတည္ ၿပီး အလုပ္လုပ္ခြင့္ ေပးရပါတယ္။ Powerful Operation ေတြမို႔ Macro Security အေၾကာင္းကို ေသေသခ်ာခ်ာ ေလ့လာ သိရွိထားဘို႔ လိုအပ္ပါတယ္။
- "personal.xls" ဆိုတာ မရွိေသးရင္ေတာ့ ပထမ Record New Macro လုပ္၊ စာတစ္လံုး ႏွစ္လံုးရိုက္၊ ဟုိႏွိပ္ဒီႏွိပ္ လုပ္ၿပီး Stop Macro ကိုႏွိပ္၊ ၿပီးလို႔ Visual Basic Editor ကို ဖြင့္လိုက္ရင္ "personal.xls" တက္လာတာ ေတြ႕ရပါလိမ့္မယ္။
- ေအာက္ဆံုး ပိုင္း မွာ Excel 2003 နဲ႔ Excel 2007 က Screenshots အခ်ိဳ႕ကို ထည့္သြင္း ေပးထားပါတယ္။
...Back to Top .... - Cold Air Standard အတြက္ သံုးရမဲ့ Duct အရြယ္အစား ေရြးခ်ယ္တဲ့ နည္းပါ။ ဒီနည္း နဲ႔ Pressure Loss ကို တြက္ထုတ္ ရင္ ရမဲ့ Duct Pressure Loss အေျဖက ± 5% အတြင္းမွာ ရွိပါတယ္။ သူ႕ကို သံုးႏိုင္တဲ့ Conditions ေတြကေတာ့။
- VBA Codes for Air Duct (SI Units)
- Air Duct Sizing တြက္ခ်က္ရမွာ သံုးနိုင္ဘို႔ အတြက္ VBA Functions ေတြ ကို ေရးထား ေပးပါတယ္။ ေရးထားတဲ့ Functions ေတြ ကေတာ့။
- DuctSize_Cir_mm(Air_cmh, Optional dP_Pa = 1, Optional V_mps = 8, Optional e_mm = 0.09)
Circular Duct Size ကို တြက္ထုတ္ဘို႔ပါ။ - DuctFrictionLoss_Pa(Air_cmh, DuctDia_mm, Optional e_mm = 0.09)
Circular Duct Frictioin Loss ကို တြက္ထုတ္ဘို႔ပါ။ - f_Colebrook(e_by_D, Re)
Colebrook's Friction Factor ကို တြက္ထုတ္ဘို႔ပါ။ - DuctR2C(dH, dW)
Rectangular Duct ရဲ့ Equivalent Circular Duct Diameter ကို ရွာေပးမဲ့ Function ျဖစ္ပါတယ္။ - DuctO2C(dH, dW)
Oval Duct ရဲ့ Equivalent Circular Duct Diameter ကို ရွာေပးမဲ့ Function ျဖစ္ပါတယ္။ - DuctC2R(dD, Optional dH = 0)
Circular Duct တစ္ခု ရဲ့ Equivalent Rectangular Duct Dimension ကို ရွာေပးမဲ့ Function ျဖစ္ပါတယ္။ dH=0 ထားရင္ Square Duct ကို ရွာေပးပါလိမ့္မယ္။ - DuctC2O_Width(dD, Optional dH = 0)
Circular Duct တစ္ခု ရဲ့ Equivalent Oval Duct Dimension ကို ရွာေပးမဲ့ Function ျဖစ္ပါတယ္။ dH=0 ထားရင္ေတာ့ Square duct ကို round Duct ရံထားတဲ့ အရြယ္အစား ကို ရရွိပါမယ္။ ( ie, a = 2 * b ) - Function DuctAirFlow_Cir_cmh(dD_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Circular Duct တစ္ခုရဲ့ Allowable Air Flow (cmh) ကို တြက္ထုတ္ဘို႔ ျဖစ္ပါတယ္။ - DuctAirFlow_Rec_cmh(dW_mm, dH_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Rectangular Duct တစ္ခုရဲ့ Allowable Air Flow (cmh) ကို တြက္ထုတ္ဘို႔ ျဖစ္ပါတယ္။ - DuctAirFlow_Oval_cmh(dW_mm, dH_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Oval Duct တစ္ခုရဲ့ Allowable Air Flow (cmh) ကို တြက္ထုတ္ဘို႔ ျဖစ္ပါတယ္။
- DuctSize_Cir_mm(Air_cmh, Optional dP_Pa = 1, Optional V_mps = 8, Optional e_mm = 0.09)
- Visual Basic Editor ကိုဖြင့္ၿပီးတဲ့ အခါ VBAProject(PERSONAL.XLS) ေအာက္မွာ Module တစ္ခု ကို ထည့္သြင္းၿပီး ကိုယ္ႏွစ္သက္သလို နာမည္ေပး ရပါမယ္။ e.g. AirDuct ၿပီးရင္ Code ေနရာမွာ ေအာက္က VBA Codes ေတြကို Copy & Paste လုပ္ဘို႔ပါ။ (Screenshots: No.2 ကို မွီျငမ္း ၾကည့္ပါ။)
'General Section Declaration
Option Base 0 'array base
Option Compare Text
Private Const atm As Double = 101.325 ' Atmospheric pressure in kPA
Public Const pi As Double = 3.14159265358979
'Function No. 01: to calculate Circular Duct Size
Function DuctSize_Cir_mm(Air_cmh, Optional dP_Pa = 1, Optional V_mps = 8, Optional e_mm = 0.09)
'Calculate Circular Duct Size, Default for 1Pa/m, 8 m/s and Medium Surface Roughness 0.09mm
Dim dV As Double, dD As Double, dA As Double
Dim dP As Double
'calc Area which satisfy the velocity limits
dV = V_mps
dA = Air_cmh / (3600# * dV)
dD = (4 * dA / pi) ^ 0.5 * 1000
'call function for Friction Loss
dP = DuctFrictionLoss_Pa(Air_cmh, dD, e_mm)
If dP > dP_Pa Then
Do
'Use Power rule estimation for iteration
dD = dD * (dP / dP_Pa) ^ 0.25
dP = DuctFrictionLoss_Pa(Air_cmh, dD, e_mm)
'exit error 1%
If Abs((dP - dP_Pa) / dP_Pa) < 0.01 Then Exit Do
Loop
End If
DuctSize_Cir_mm = dD
End Function
'Function No. 02: to calculate duct friction loss
Function DuctFrictionLoss_Pa(Air_cmh, DuctDia_mm, Optional e_mm = 0.09)
'Calculate Friction Loss
Dim dQ As Double, dD As Double 'flowrate (m3/s), diameter(mm)
Dim dV As Double, dF As Double 'velocity (m/s), friction factor
Dim dM As Double, dE As Double 'density (kg/m3), surface roughness
Dim Re As Double, dA As Double
'For Cold Air Standard at density=1.2kg/m3
If Air_cmh * DuctDia_mm > 0 Then
dQ = Air_cmh / 3600# 'convert air flowrate to m3/s
dD = DuctDia_mm
dM = 1.2 'kg/m3 for cold air std
dA = 0.25 * pi * (dD / 1000#) ^ 2
dV = dQ / dA 'v=Q/A
Re = 66.4 * dD * dV 'Ref ASHRAE: or use Re = V * d / nu
dF = f_Colebrook(e_mm / dD, Re)
DuctFrictionLoss_Pa = 500 * dF * dM * dV * dV / dD
Else
DuctFrictionLoss_Pa = 0
End If
End Function
'Function No. 03: to calculate Colebrook Friction Factor
Function f_Colebrook(e_by_D, Re) 'e_by_D Relative roughness; Dh: Hydraulic Dia, Re: Reynold number
'Calculate Colebrook friction Factor
Dim f As Double, root_f As Double, root_f1 As Double
'Start with Tsal's estimation
f = 0.11 * (e_by_D + 68 / Re) ^ 0.25
If f < 0.018 Then
f = 0.85 * f + 0.0028
End If
root_f = f ^ 0.5
Do
root_f1 = -0.5 * Log(10) / Log(e_by_D / 3.7 + 2.51 / (root_f * Re))
'check if error is less than 0.5%
If Abs((root_f1 - root_f) / root_f) < 0.005 Then Exit Do
root_f = 0.5 * (root_f + root_f1) 'Use binary approach iteration
Loop
f_Colebrook = root_f ^ 2
End Function
'Function No. 04: Equivalent Circular Duct Size of a Rectangular Duct
Function DuctR2C(dH, dW) As Double
'Rectangular Duct to Circular Duct
If dW * dH > 0 Then
DuctR2C = 1.3 * ((dH * dW) ^ 0.625) / ((dH + dW) ^ 0.25)
Else
DuctR2C = 0
End If
End Function
'Function No. 05: Equivalent Circular Duct Size of an Oval Duct
Function DuctO2C(dH, dW) As Double
'Oval Duct to Circular Duct
Dim dA As Double, P As Double
If dW * dH > 0 Then
dA = (pi * dH ^ 2 / 4) + dH * (dW - dH)
P = pi * dH + 2 * (dW - dH)
DuctO2C = 1.55 * (dA ^ 0.625) / (P ^ 0.25)
Else
DuctO2C = 0
End If
End Function
'Function No. 06: Equivalent Rectangular Duct Dimension of a Circular Duct
Function DuctC2R(dD, Optional dH = 0) As Double
'Circular Duct to Rectangular Duct
'if Dimension (dH) is zero, square duct
'dH could be either dimension: "Width" or "Height"
Dim dW As Double, dW1 As Double
Dim dD1 As Double
If dH > 0 Then
'Estimate dH
dW = 0.25 * pi * dD * dD / dH
Do
dD1 = 1.3 * ((dH * dW) ^ 0.625) / ((dH + dW) ^ 0.25)
dW = dW * (dD / dD1) ^ 2
If Abs((dD1 - dD) / dD) < 0.005 Then Exit Do
Loop
Else
dW = dD * 0.9148
End If
DuctC2R = dW
End Function
'Function No. 07: Equivalent Oval Duct Dimension of a Circular Duct
Function DuctC2O_Width(dD, Optional dH = 0) As Double
'Circular Duct to Rectangular Duct
'if Dimension (dH) is zero, square duct + round, ie, a = 2 * b
'dH is dimension b for "Height", dW is dimension a for "Width"
'As nature, dH < dD
Dim dW As Double, dW1 As Double
Dim dD1 As Double
Dim dA As Double, P As Double
If dH > 0 Then
'Estimate dH
dW = 0.25 * pi * (dD * dD - dH * dH) / dH
Do
dA = (pi * dH ^ 2 / 4) + dH * (dW - dH)
P = pi * dH + 2 * (dW - dH)
dD1 = 1.55 * (dA ^ 0.625) / (P ^ 0.25)
dW = dW * (dD / dD1) ^ 2
If Abs((dD1 - dD) / dD) < 0.005 Then Exit Do
Loop
Else
dW = dD / 1.5234
End If
DuctC2O_Width = dW
End Function
'Function No. 08: To Calculate Allowable Air Flow from a Circular Duct.
Function DuctAirFlow_Cir_cmh(dD_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Dim cmh As Double, dP As Double
Dim dD As Double, dV As Double
dV = dV_mps
dD = dD_mm
cmh = 0.0009 * pi * dD * dD * dV '0.0009 <- 0.25*3600/1000000
dP = DuctFrictionLoss_Pa(cmh, dD, e_mm)
If dP > dP_Pa Then
Do
dV = dV * (dP_Pa / dP) ^ 0.5
cmh = 0.0009 * pi * dD * dD * dV
dP = DuctFrictionLoss_Pa(cmh, dD, e_mm)
If Abs(dP - dP_Pa) / dP_Pa < 0.01 Then Exit Do
Loop
End If
DuctAirFlow_Cir_cmh = cmh
End Function
'Function No. 09: To Calculate Allowable Air Flow from a Rectangular Duct.
Function DuctAirFlow_Rec_cmh(dW_mm, dH_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Dim dD As Double, dV As Double
dV = dV_mps
dD = DuctR2C(dW_mm, dH_mm)
DuctAirFlow_Rec_cmh = DuctAirFlow_Cir_cmh(dD, dP_Pa, dV_mps, e_mm)
End Function
'Function No. 10: To Calculate Allowable Air Flow from an Oval Duct.
Function DuctAirFlow_Oval_cmh(dW_mm, dH_mm, Optional dP_Pa = 1, Optional dV_mps = 9, Optional e_mm = 0.09)
Dim dD As Double, dV As Double
dV = dV_mps
dD = DuctO2C(dW_mm, dH_mm)
DuctAirFlow_Oval_cmh = DuctAirFlow_Cir_cmh(dD, dP_Pa, dV_mps, e_mm)
End Function
...Back to Top .... - Air Duct Sizing တြက္ခ်က္ရမွာ သံုးနိုင္ဘို႔ အတြက္ VBA Functions ေတြ ကို ေရးထား ေပးပါတယ္။ ေရးထားတဲ့ Functions ေတြ ကေတာ့။
- Screenshots: Adding VBA Codes in Excel
Excel 2002-2003 (or Earlier)- Screenshot No. 1: နမူနာ အေနနဲ႔ Microsoft Excel 2002-2003 မွာဆိုရင္ေတာ့ ဒီလိုေတြ႕ရပါလိမ့္မယ္။
- Screenshot No. 2: Visual Basic Editor ဆိုတာ ကို ႏွိပ္လိုက္ရင္ ေအာက္က ပံုစံ ေပၚလာပါလိမ့္မယ္။ အထဲမွာ VBA Code ေတြ ကို ကူးယူၿပီးရင္ ဒီလို ေတြ႔ႏိုင္ပါတယ္။
Excel 2007- Screenshot No. 3: 2007 အထက္ ဆိုရင္ေတာ့ Tools အစား Developer Tab အေနနဲ႔ ဝင္လာပါတယ္။
- Screenshot No. 4: တစ္ခါတစ္ရံ Developer Tab ကို ေဖ်ာက္ ထားတတ္ပါေသးတယ္။ ဒါဆိုရင္ ေတာ့ excel option ေအာက္ကေန သြားရွာ ရပါလိမ့္မယ္။ (မေသခ်ာ ရင္ Help မွာ ရွာၾကည့္ပါ။)
Screenshot No. 5: - အထက္မွာ ေျပာခဲ့တဲ့ အတိုင္း VBA က Macro Security Level ေပၚမူတည္ ၿပီး အလုပ္လုပ္ခြင့္ ေပးရပါတယ္။ Powerful Operation ေတြမို႔ Macro Security အေၾကာင္းကို ေသေသခ်ာခ်ာ ေလ့လာ သိရွိထားဘို႔ လိုအပ္ပါတယ္။ Screenshot No. 6:
- Screenshot No. 7:Developer Tab ေအာက္ က Code ေနရာ မွာ လည္း Macro Security ဆိုတာ ရွိပါတယ္။ ထြက္လာမဲ့ Screen ကေတာ့။
...Back to Top .... - Screenshot No. 1: နမူနာ အေနနဲ႔ Microsoft Excel 2002-2003 မွာဆိုရင္ေတာ့ ဒီလိုေတြ႕ရပါလိမ့္မယ္။
- Screenshots: Use of VBA Functions in Excel Worksheet
- ၿပီးရင္ေတာ့ ဒီ Function ေတြကို Excel Spreadsheet မွာ အသင့္သံုးႏိုင္ပါၿပီ။
- ပထမ Insert function ကိုသြားၿပီး select a category မွာ User Defined ကိုေရြးလိုက္ရင္ ဒီ Function ေတြ ေပၚလာပါလိမ့္မယ္။
- ၿပီးရင္ေတာ့ Excel Formula သံုးေနက် အတိုင္းသံုးရံုပါပဲ။
ဒီအထဲ မွာ Air_cmh ဆိုတဲ့ ကြက္လပ္ကိုေတာ့ ျဖည့္ကို ျဖည့္ရပါမယ္။ အျခား ကြက္လပ္ေတြ ကို Function မွာထဲ က Optional အေနနဲ႔ ေရြးၿပီး Assign လုပ္ထားတာမို႔ မျဖည့္လည္း ရပါတယ္။ Assigned လုပ္ခဲ့တဲ့ value ေတြကေတာ့ အသံုးမ်ားတဲ့- dP_Pa = 1
- V_mps = 8
- E_mm = 0.09
- ၿပီး Excel Style: Drag-Coppy လုပ္လိုက္ရင္ ရမဲ့ အေျဖကေတာ့၊
- ဒီကရတဲ့ အေျဖက Chart ကေနၾကည့္လို႔ ရတဲ့ အေျဖနဲ႔ အတူတူေလာက္ပါပဲ။ တကယ္ အေသးစိတ္ တြက္လို႔ ရမဲ့ အေျဖရဲ့ ± 1% အတြင္းမွာ ရွိတာမို႔ safety factor ထည့္ယူေလ့ရွိတဲ့ အင္ဂ်င္နီယာ ေတြအတြက္ လံုေလာက္ပါတယ္။
မွတ္ခ်က္။ ။ Excel Calculation Sheet File ေတြ ကို အျခားသူေတြ ဆီ ပို႔ေပးရတဲ့ အခါမွာေတာ့ ဒီ Function VBA Codes ေတြ အဲဒီ file ထဲမွာ မပါရင္ အလုပ္လုပ္ မွာ မဟုတ္ပါဘူး။ အရွင္းဆံုး နည္းလမ္းကေတာ့ Function VBA Codes ေတြ ထည့္မေပး ပဲ Function ေတြ နဲ႔တြက္ ၿပီး ရလာတဲ့ အေျဖ ရွိတဲ့ Cell ေတြက အေျဖ ကို Copy ကူး၊ ၿပီး Paste Special မွာ values ကို ေရြးၿပီး ျပန္ထည့္လိုက္ပါ။ Chart ၾကည့္ၿပီး Manually ရိုက္ထည့္ ထားသလို မ်ိဳးေပါ့။
...Back to Top .... - ၿပီးရင္ေတာ့ ဒီ Function ေတြကို Excel Spreadsheet မွာ အသင့္သံုးႏိုင္ပါၿပီ။
- Html Color Coding by VBA
- အေပၚက VBA code ေတြမွာ အေရာင္ေတြ ခြဲေပးထားတာ က လည္း VBA ကို သံုးၿပီး html format ကို ေပးထားလို႔ပါ။ ဒါကိုေတာ့ MS Word ေအာက္မွာ ေရးၿပီးသံုးပါတယ္။ အပို သိပ္မပါပဲ ရွင္းရွင္းလင္းလင္း ျမင္ရေအာင္ format လုပ္ဘို႔က html မွာ သိပ္ မလြယ္ကူ လွပါဘူး။ အခ်ိန္လည္း အရမ္းကုန္ပါတယ္။ သူ႕ရဲ့ VBA Code ကိုေတာ့ ရႈတ္ေထြးတာ မို႔ မေဖာ္ျပေတာ့ပါဘူး။
...Back to Top .... - References
- "Duct Design", Chapter 21, ASHRAE Handbook: Fundamentals, 2009.
- Visual Basic for Applications
- Using Flow Chart - Flowcharting[ http://www.nos.org/htm/basic2.htm ]
- HVAC Duct Sizing[ http://chawlwin.blogspot.com/2009/07/hvac-duct-sizing.html ]
- "Duct Design", Chapter 21, ASHRAE Handbook: Fundamentals, 2009.
Disclaimer
- Programming နဲ႔ သံုးလို႔ရတယ္ ဆိုတာ ကို မိတ္ဆက္ ေပးခ်င္ လို႔ပါ။ ၿပီးေတာ့ အခ်ိန္ကုန္ သက္သာ ေစခ်င္တာလည္း ပါပါတယ္။
- အတတ္ႏိုင္ဆံုး ႀကိဳးစားထားေပမဲ့ အမွား လံုးဝကင္းပါတယ္ လို႔ အာမ မခံႏိုင္ပါဘူး။ စာဖတ္သူ ကိုယ္တုိုင္ သံုးစြဲၿပီး ၾကည့္ၿပီး အေျဖမွန္ ေပးႏိုင္ေၾကာင္း ေသခ်ာမွ သံုးစြဲပါလို႔ အသိေပး လိုပါတယ္။
...Back to Top ....
Subscribe to:
Posts (Atom)