Previous in Forum: Simulating kicking a ball.   Next in Forum: cleaning 27 yr. old chilled water coils
Close
Close
Close
6 comments
Rate Comments: Nested
Associate

Join Date: Jan 2009
Location: Bangalore, India
Posts: 51

How to do flow linearization?

09/26/2009 2:46 PM

I need to develop a batch controller that will take a non-scaled output from a flow meter and do flow linearization using a few K factor points. I know what this does in theory (meaning the K factor changes with the actual flow rate) but sort of at a loss how to do it in real life. Is it some time of sample-time based calculation? Meaning sample the flow and then apply the K factor from a lookup table (based on the graph?). But actually, if the flow rate is changing, how do I know the K factor in the first place?

Thanks for your help on this!

__________________
Znago
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#1

Re: How to do flow linearization?

09/26/2009 11:26 PM

Hi Znago,

You mean you want to make your own controller?

What make and model is the flowmeter?

What type of output does it have (4-20mA, 0-10V, -10V to +10V)?

I would think that most flowmeters nowadays will output a linearized flow anyway. If it is not linearized, you must take measurements over the range that the flowmeter is likely to encounter to determine the transfer function. Once you have the data, you can fit the data to a curve and determine your coefficients. From there, simply use the math functions in your programming language.

Mike

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Associate

Join Date: Jan 2009
Location: Bangalore, India
Posts: 51
#2
In reply to #1

Re: How to do flow linearization?

09/27/2009 12:11 AM

Hi Mike,

Yes, I need to make my own controller. The meter we were thinking of using is from Liquid Controls. 0-12v output of two pulse channels.

I don't think that one would need to actually do measurements since the graph should/would be provided by the meter manufacturer.

What I am trying to understand is, at what time intervals to determine the flow rate and how to make the corrections. I mean, you can't determine flow rate at every pulse and adjust the K factor for every pulse, right? So, is it that you take a fixed time duration (say 5 seconds?) and determine the flow rate for that and then adjust the flow rate for the next sample?

Hope this clarifies my doubt.

Thanks

__________________
Znago
Register to Reply
Guru
Canada - Member - Specialized in power electronics

Join Date: Feb 2008
Location: Montreal, Canada.
Posts: 1372
Good Answers: 80
#3
In reply to #2

Re: How to do flow linearization?

09/27/2009 10:41 AM

Znago,

There isn't any single answer for this question. It depends on the conditions and the precision you are looking for.

If the flow changes very slowly, the correction period will be long and vice versa.

You basically want to minimize the reading error. Try to split your curve into piecewise linear section with specific slopes and offset and change set when your raw flow cross a boundary. The more boundaries you choose, the smaller the error but higher processing capability will be needed.

__________________
Experienced is earned, common sense is taught, both are rare essentials of life.
Register to Reply
Associate

Join Date: Jan 2009
Location: Bangalore, India
Posts: 51
#4
In reply to #3

Re: How to do flow linearization?

09/27/2009 2:15 PM

OK, I understand. And I have also seen such a graph that takes the meter curve and divides it in to a number of linear sections. Now the graph is a graph of the K-Factor (on Y axis) vs. the Frequency of the meter pulser (on the X axis).So as the frequency changes, different K-Factors are applicable.

My question is, with respect to how fast or slow one must calculate/apply these changes, is it enough to sample the pulses for one second and then get the frequency? Is that too slow?

The way I understand the algorithem needs to work is as follows:

  • Count the pulses (for a given sample time of.....?) and derive the frequency
  • Find the appropriate K-Factor for that frequency
  • Apply that K-Factor to the sample (i.e. sampled number of pulses) and derive the volume
  • Log the volume (i.e. increment the totalizer) and process next sample of pulses

Would this be correct?

__________________
Znago
Register to Reply
Guru
Canada - Member - Specialized in power electronics

Join Date: Feb 2008
Location: Montreal, Canada.
Posts: 1372
Good Answers: 80
#5
In reply to #4

Re: How to do flow linearization?

09/28/2009 10:11 AM

It depends on what you are doing with the info. If it is a process feedback, make sure that it is updated much faster than your loop response time. If it is only shown to an operator, it can be refreshed every seconds.

It also depends on the pulse rate. If you get a pulse per second, you might want to switch to a period measurement instead of a pulse counting method. But 1 Hz pulse counting it might be OK if you only need a daily report.

__________________
Experienced is earned, common sense is taught, both are rare essentials of life.
Register to Reply
Associate

Join Date: Jan 2009
Location: Bangalore, India
Posts: 51
#6
In reply to #5

Re: How to do flow linearization?

09/28/2009 10:15 AM

Actually, the typical pulser which is connected to a flow meter will output at several kilohertz.

__________________
Znago
Register to Reply
Register to Reply 6 comments
Copy to Clipboard

Users who posted comments:

marcot (2); Mikerho (1); Znago (3)

Previous in Forum: Simulating kicking a ball.   Next in Forum: cleaning 27 yr. old chilled water coils

Advertisement