How do you determine the diameter and length of the tail pipe?

How do you determine the diameter and length of the combustion chamber?

How do you determine the area of the air intake valve system?

How do you determine the burn rate of the fuel?

How do you determine the over all length and design of the engine?