Translating Engineering Problems into Software Solutions
Engineering Problem Formulation for Computing
Engineering Problem Formulation for Computing turns a practical request into a precise task that software can carry out. A request such as “determine whether this tank can be filled in time” leaves several decisions unstated: what information is available, what the output means, and which physical effects matter. Your first job is to make those decisions explicit. A program can calculate its equations correctly while still answering the wrong engineering question.
Define the required result
A problem specification states what information the computation receives, what it returns, and what conditions an acceptable result satisfies. Begin with the engineering decision. Do you need a predicted temperature, a required operating time, or a decision about whether a design meets a limit? These are different outputs, even when they use related information.
Separate the quantities by their roles:
Role | Meaning | Tank example |
|---|---|---|
Input | Information supplied for a particular case | Initial volume and inlet flow rate |
Fixed parameter | A value held fixed for the intended application | Tank capacity |
Unknown or output | A quantity the software must determine | Time to reach the target volume |
Constraint | A condition an acceptable result must satisfy | Completion within the available operating time |
These roles depend on the question. Tank capacity could be a fixed parameter in an operating tool or an unknown in a design tool. Record a symbol, meaning, unit, and valid range for every numerical quantity. Also specify when time begins and whether a stated power, rate, or load is instantaneous, average, or constant.
State the model and its limits
A model assumption is an explicit simplification used to relate the engineering quantities. For a tank, you might assume constant inlet and outlet rates, no leakage, and a known initial volume. With these assumptions, volume conservation gives
Here, V(t) is the volume at elapsed time t, V0 is the initial volume, and qin and qout are volumetric flow rates. With volumes in cubic metres and rates in cubic metres per second, time is in seconds. Litres are also convenient for tank operation, provided all volumes and rates use compatible units.
For a target above the initial volume and a positive net inflow,
For example, an initial volume of 90 L, a target of 180 L, and constant rates of 12 L/min entering and 3 L/min leaving give a target time of (180−90)/(12−3)=10 min. This prediction applies while the stated flow assumptions remain valid.
A negative calculated time is not automatically a useful physical answer. It may indicate that the requested future event does not occur under the assumed operating conditions. Describe such cases in the specification instead of letting an algebraic expression decide their meaning.
Make the result checkable
Distinguish valid input from a feasible engineering outcome. A target volume above tank capacity can be numerically well formed, yet physically unacceptable. Likewise, valid positive flow rates may be insufficient to meet a deadline.
Specify checks for ordinary cases and relevant boundaries. If the tank already contains the target volume, the time to reach that volume is zero. If the target is higher and net inflow is zero, there is no finite filling time under the model. A larger positive net inflow should reduce the predicted filling time when the required volume increase stays fixed.
What to remember:
- Define the engineering decision and the required output first.
- Give each quantity a role, unit, and valid range.
- State the physical relationship and its assumptions.
- Specify feasibility limits, exceptional cases, and checks before implementation.
Example: Formulating a tank-filling decision
An operator wants software to determine whether a storage tank can reach 700 L within an available operating time of 650 s. Initially, the tank contains 160 L. Water enters at 1.20 L/s and leaves at 0.450 L/s. Tank capacity is 800 L. Assume constant rates, no other flows, and negligible startup and shutdown delays. Time begins when these flows start.
a) Define the inputs, outputs, governing relationship, and operational acceptance conditions.
The supplied inputs are initial volume V0=160 L, target volume Vtarget=700 L, inlet rate qin=1.20 L/s, outlet rate qout=0.450 L/s, capacity Vmax=800 L, and available time tmax=650 s.
The outputs are the predicted target time in seconds and a decision about whether the operation meets the stated limits. Volume conservation gives
For this rising-volume case, the target time follows from
Acceptable operation requires reaching the target within 650 s while keeping volume between 0 and 800 L. The target exceeds the initial volume, so a positive net inflow is also needed for a finite future target time under this model.
b) Calculate the predicted target time, assuming the stated flows could continue long enough.
First calculate net inflow. The units already match, and the outlet removes water from storage:
The required volume increase is
Divide the required increase by the net accumulation rate:
The model predicts a target time of 720 s. This is a prediction under continued flow, not yet a statement that the available operating window is sufficient.
c) Determine whether the operation meets the requirements, and calculate the volume at the end of the available operating time.
Compare the predicted target time with the available time using the same units:
The operation misses the deadline by
The volume at the end of the available time is
Because volume increases continuously from 160 L to 647.5 L during the available window, it remains within the 800 L capacity. Nevertheless, the final volume is 700−647.5=52.5 L below the target. The software should report that the operation is infeasible within 650 s under the stated assumptions.
A recycling station receives material at a constant rate of 18.0 kg/min. A separate removal stream carries material away at 0.200 kg/s. Software must calculate the net mass accumulated during 2.00 min. Assume no other mass enters or leaves. Which expression correctly formulates the required mass in kilograms?
A software tool must predict the time required to heat 2.40 kg of water from 18.0 ∘C to 53.0 ∘C. The heater draws a constant electrical power of 900 W, and a constant fraction η=0.800 of that power heats the water. Use c=4.18×103 J/(kg⋅K) and E=mc(Tf−Ti). Assume uniform water temperature, constant specific heat capacity, and no additional energy requirements or losses beyond the stated efficiency. Calculate the heating time in seconds, to one decimal place.