Question: Task: Determine the optimum ( best ) pipe and tank combination ( Figure 1 ) to supply drinking water to a community. The optimum combination

Task:
Determine the optimum (best) pipe and tank combination (Figure 1) to supply drinking water
to a community. The optimum combination is the lowest combined pipe and storage cost that Step 4: Calculate new Velocity, v2=2**g**D**hfmax**l2
Step 5:
If ,v1v2, Then v1=v2; Repeat Steps 2 to 4
If ,v1=v2 Then Q=v2** Area of pipe, A(m2). End
To calculate Tank volume (m3) :
Tank volume at T2= Tank volume at T1+ Pipe supply during T1- Volume
demanded during T1
ii. Create the worksheet named Optimization and compute the following for each
pipe Diameter (D) :
Pipe unit cost (Rand/m)- Transfer from the Data worksheet
Pipe diameter, D(m),- Transfer from the Data worksheet
Pipe supply, Q(m3s),- Transfer from the Balancing storage calculations
worksheet
Pipe headloss, hf(m),=**l**v22**g**D
Pipe cost (Rand),= Pipe length * Pipe unit cost Rand ?m
Balancing storage (m3),= absolute value of the Highest cumulative surplus
absolute value of the Highest cumulative deficit
Extra storage (m3)= Emergency storage + Fire storage + Bottom storage 12
Total storage (m3),= Balancing storage + Extra Storage ,[12]
Storage cost (Rand)= Total storage * Storage unit cost [12]
Total cost (Rand)= Storage cost + Pipe cost [12]
iii. Highlight the row with the optimum pipe and storage combination. If the optimum
cannot be determined, the code must display the following message: "the
maximum headloss constraint (hfmax) was violated and no optimum pipe and tank
combination can be calculated".
Efficiency of VBA code
Structure and use of comments
VBA CODE SHOULD BE DESIGNED BY YOU AND ENTERED INTO A VBE MODULE(S).
SHOULD YOU USE ACTIVEX 'FORMS' CONTROLS, THE CONTROL MUST FUNCTION
BASED ON THE VBA CODE YOU DEVELOPED AND INPUT INTO THE' FORMS' MODULE.
does not violate anv constraints.
Figure 1. Irunk mans (ppe) to intermealate tank to consumers
a) Project Part A:
Total =5 marks]
Submit the algorithm (hand-sketched or computer generated) for Project Part B on
one A4 or A3 page.
On the page, provide a legend where each variable in the algorithm is described.
b) Project Part B:
[Total=15 marks]
Submit one (1) Excel Macro-Enabled Workbook that contains the provided Data
worksheet with the given input data. Do not rearrange the data.
Place one Optimise button on the Data worksheet. This button is to call the VBA code
that will:
i. Create the worksheet named Balancing storage calculations and compute Pipe
supply, Q(m3s) for each Diameter (D) and Tank volume (m3) at each hour. The
below steps/formulae are to be employed:
To calculate Pipe supply, Q(m3s) :
Step 1: Assume Velocity, v1(ms)=1 and Velocity, v2(ms)=1
Step 2: Calculate Reynolds Number, Re=v1**D? v
Step 3: Calculate pipe headloss coefficient Lambda, using the
Swamee-Jain formula =(1(-2**log10(5.74Re0.9+K3.7**D)))2
 Task: Determine the optimum (best) pipe and tank combination (Figure 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!