Requirement for straight pipe section of electromagnetic flowmeter