Determine the Rate of Change of Pressure Across a Valve

In summary, the conversation is about a software engineer seeking help to find the rate of change in pressure across a valve for a project. The engineer has some background knowledge but is struggling to find the necessary information. They discuss utilizing empirical data, optimization methods, and valve data from the manufacturer. They also consider using a flow element for pressure measurement and a flow control valve for flow control.
  • #1
Purple_Dan
47
4
Hello, I am Primarily a Software Engineer, but have some background knowledge from my A-Level and Uni days.
However, I have the following problem.

I'd like to find out the rate of change in pressure across a valve.
Here are the things I know about the system:

Cv at 100% open = 0.004 (I believe it's the US coefficient)
Pressure drop across valve can be made up as this is variable within the system, let's assume 500psi for this example.
Assuming it's pure water at 25°C with a specific gravity of 1 (because I don't want to get into all that mess).

Also, am I right in thinking that if the Cv is 0.004 at 100%, then the Cv at 50% will be 0.002?

Any help would be greatly appreciated.

Thanks,
Dan
 
Engineering news on Phys.org
  • #2
Empirical data is your best option, especially for something transient like this. Why do you need the transient data?
 
  • #3
HuskyNamedNala said:
Empirical data is your best option, especially for something transient like this. Why do you need the transient data?

I agree, empirical data would be a great commodity to have. Unfortunately, I'm writing the code to control the valve in an office in the West Midlands and the site is in Aberdeen.

I need to control the valve to maintain a constant psi/sec drop. I was going to do a simple, "if drop is too big, close valve a bit, else open valve a bit" logic. But I thought it would be nicer to try and do it properly.
 
  • #4
Hmm. sounds like a cool problem. Maybe write a basic predictor-corrector method to estimate the derivative? If the derivative exceeds some value, then reduce flow to XX, re estimate derivative, repeat?

Wish I got cool projects like that.
[edit[
It also just occurred to me that you might be able to utilize optimization methods. For constant flow rate you want the derivative to equal 0, so you can set this up as a minimization problem.
 
  • #5
Also, where is the flow rate being measured? This is important so you don't get erroneous readings due to turbulent fluctuations.
 
  • #6
Valve data is typically published by the manufacturer. Different types will vary greatly and most are far from linear.

Do have any other data for your valve?
 
  • Like
Likes Purple_Dan
  • #7
HuskyNamedNala said:
Also, where is the flow rate being measured? This is important so you don't get erroneous readings due to turbulent fluctuations.

I'm not actually measuring the flow rate, I'm measuring the pressure. Thus I can determine the current psi/sec drop. I then need to alter the control valve to maintain a certain drop. I can determine the flow rate from the pressure drop across the valve using the flow coefficient, but I'm having trouble finding the rate of change in pressure from that.

From what I can gather, the flow coefficient is in units of "gallons per minute per psi". If I have the pressure drop across the valve in psi, can I find the pressure drop per minute?
I have a hunch that I'll need the volume of the system, in which case I'll ask them to fill it up and measure how much water comes out. But ideally, I want to make commissioning as quick as possible.

You can probably tell I'm not much for fluids and mechanics. I'm more electronically minded.
 
  • #8
montoyas7940 said:
Valve data is typically published by the manufacturer. Different types will vary greatly and most are far from linear.

Do have any other data for your valve?

Aha! I've found a graph that tells me the flow coefficient at different open levels. It's a 30VRMM valve, if anyone wants a look.

So that answers one question, thanks!
 
  • #9
How you are measuring the pressure will determine the correlation between pressure reading and flow rate. For example, if you use a Pitot static tube you can equate your reading to the dynamic pressure. If you have a sensor at the bottom of the tube, you can say the pressure reading will be the hydrostatic less dynamic. You will need the surface area of the inlet and outlet to determine the flow rate. As montoyas7940 stated, valve curves are usually published to customers.
 
  • #10
Purple_Dan said:
I'm not actually measuring the flow rate, I'm measuring the pressure. Thus I can determine the current psi/sec drop. I then need to alter the control valve to maintain a certain drop. I can determine the flow rate from the pressure drop across the valve using the flow coefficient, but I'm having trouble finding the rate of change in pressure from that.

From what I can gather, the flow coefficient is in units of "gallons per minute per psi". If I have the pressure drop across the valve in psi, can I find the pressure drop per minute?

Rate of flow is proportional to the Sqrt of Dp.

Psi/sec? What do you mean?
Dp across the valve is just Dp across the valve. Do you need to control the rate at which Dp changes as you open or close the valve?
 
  • #11
Purple_Dan said:
I need to control the valve to maintain a constant psi/sec drop. I was going to do a simple, "if drop is too big, close valve a bit, else open valve a bit" logic. But I thought it would be nicer to try and do it properly.

I should read more carefully.
I would suggest a flow element for Dp instead of measuring Dp across the valve. Then use a flow control valve for flow control.
To maintain a constant flow, if Dp is high across the element then close the valve a little.
 
  • #12
HuskyNamedNala said:
How you are measuring the pressure will determine the correlation between pressure reading and flow rate. For example, if you use a Pitot static tube you can equate your reading to the dynamic pressure. If you have a sensor at the bottom of the tube, you can say the pressure reading will be the hydrostatic less dynamic. You will need the surface area of the inlet and outlet to determine the flow rate. As montoyas7940 stated, valve curves are usually published to customers.

The pressure is measured using a 4-20mA sensor, it's a hydrostatic test, no air bubbles or anything. The transmitter located before the control valve, there is no transmitter after the control valve, so I'm assuming it to be 0psi (ignoring atmospheric pressure).
 
  • #13
montoyas7940 said:
Rate of flow is proportional to the Sqrt of Dp.

Psi/sec? What do you mean?
Dp across the valve is just Dp across the valve. Do you need to control the rate at which Dp changes as you open or close the valve?

Yes, I know the change across the valve. I want to know, if I open the valve x%, what will the pressure be after X seconds. That way I can just open the valve to the required %, rather than guessing and inching it open. I'd rather not guess when there could be 23000psi in the system!
 
  • #14
If the transmitter is only before the control valve, how will you regulate the flow? You need at least 1 upstream and downstream of the valve. It may not be feasible, but it would be best to have the downstream sensor 10 diameters from the outlet. Turbulent fluctuations will gives you oscillating readings which will require you to take a time average before any calculations are executed. The best you can do at this is point is estimate the incoming mass flow rate, then correlate that with your valve curve. Keep in mind that valve curve you have is only applicable to the ranges it was tested for. If you have an anomalous event you should not rely on it.
 
  • #15
I am sorry, I keep thinking in terms of mass flow rates, you can equate mass flow to pressure as was discussed earlier. I am used to thinking in those terms, sorry.
 
  • #16
Purple_Dan said:
Yes, I know the change across the valve. I want to know, if I open the valve x%, what will the pressure be after X seconds. That way I can just open the valve to the required %, rather than guessing and inching it open. I'd rather not guess when there could be 23000psi in the system!

You won't find that transient data. Maybe the vendor has a specific test that examined that, but almost always curves are for steady state. Nobody here can tell you how long it will take to equalize. Call the suppler and see if they can help.
 
  • #17
Ok, scratch most of that other stuff. You are measuring static pressure and then controlling the rate of pressure reduction/increase in a hydrostatic test vessel.
 
  • #18
montoyas7940 said:
Ok, scratch most of that other stuff. You are measuring static pressure and then controlling the rate of pressure reduction/increase in a hydrostatic test vessel.
Yes, that probably makes things a lot simpler, that might have been worth mentioning before! :confused:
Sorry everyone!

Although, I will seek your advice should my client ever want to automate Gas testing!
 
  • #19
Purple_Dan said:
I'd like to find out the rate of change in pressure across a valve.

rate of change in pressure vs time or pressure vs valve position?
if versus position ignore remainder of this post.

Purple_Dan said:
Pressure drop across valve can be made up as this is variable within the system, let's assume 500psi for this example.
Assuming it's pure water at 25°C with a specific gravity of 1 (because I don't want to get into all that mess).

Water being incompressible and dense and having inertia
must be accelerated or decelerated as your valve changes its Cv.
In a long straight pipe full of water , the inertia edit: mass of that long column of water has inertia that'll manifest itself as transient pressure opposing the change in flow - just like inductance for us electricals. In control systems it can wreak havoc.

So i think you might need to know something about the system in which your valve resides

Late entry : I see this is a manually adjusted needle valve - probably not an issue.
 
Last edited:
  • #20
I agree with Nala the Husky (my sister also has a dog named Nala).

You don't have enough info about the system. You might ask the test facility to provide empirical data based on their experience.
 
  • Like
Likes HuskyNamedNala
  • #21
montoyas7940 said:
I agree with Nala the Husky (my sister also has a dog named Nala).

You don't have enough info about the system. You might ask the test facility to provide empirical data based on their experience.

I expected as much. Still, it was worth a try. The problem with getting data is that they're installing a new system, I'm just automating it. So I'll just have to run some tests during commissioning.
 
  • #22
What would I need to know about the system? I know the pressure and the flow coefficient of the valve. I also have a temperature sensor in there (we're not really using it for anything at the moment). I know it's just water, which we can make assumptions about. I don't know the volume of the system, but everything else I can think of is accounted for.

Thanks for all your input so far guys!
 
  • #23
The only extra info you need is how much volume changes as pressure changes in the vessel. The volume goes up due to the elastic nature of the vessel. It is like a balloon that does not get much bigger as you inflate it because it is really strong. But it does get a little bigger at high pressures. How much bigger (and at what pressures) is what you need to know. And then it becomes a simple problem. The valve at X position and P' pressure passes V volume/time which changes pressure by P/time. Rinse and repeat as pressure changes.

There are off the shelf controllers available.
 
  • #24
What do you test at 23000 psi ?
 
  • #25
montoyas7940 said:
What do you test at 23000 psi ?

"Christmas Tree Valves" that go into the sea bed to extract oil. I don't want to be stuck up there too long because they can't afford to keep me there with the falling oil prices!
 
  • #26
Running tests will take a life time! Call the manufacturer of the valve, ask if they can procure transient valve curves. I have had to do this for a similar project. Trust me, it is hopeless trying to predict and run tests on these unless you have a lot of time.
 
  • #27
You are determining the pressure drop/flow rate relationship for the valve from the information the manufacturer provided on the valve coefficient. This is step 1. But, to get the time dependence of the pressure drop, you need to consider what is happening in the part of the system upstream of the valve. What does the system look like upstream of the valve?

Chet
 
  • #28
Chestermiller said:
You are determining the pressure drop/flow rate relationship for the valve from the information the manufacturer provided on the valve coefficient. This is step 1. But, to get the time dependence of the pressure drop, you need to consider what is happening in the part of the system upstream of the valve. What does the system look like upstream of the valve?

Chet

Unfortunately, I haven't been on site yet. But I do have a P&ID. I'll upload the part of the P&ID that we're interested in as the test pressure is isolated from the source.
Also, I'm not sure how much of the P&ID I can show before I break the confidentiality agreement!

The pressure to the left of the isolation valve is 0psi at this point. The pressure after the control valve is going to drain, so that's 0psi also. I don't know what the HP outlet looks like, but that goes to the valve that we're testing.
The test transmitter is the pressure sensor.
It's all filled with water as it's a hydrostatic test. Tests can be anywhere between 50-23000psi.
 

Attachments

  • 1424939995293-712217689.jpg
    1424939995293-712217689.jpg
    37.9 KB · Views: 453
  • #29
Sorry. I'm not too good at reading upside down.

Chet
 
  • #30
Chestermiller said:
Sorry. I'm not too good at reading upside down.

Chet
Apologies! Here you go!
2015-02-26 21.31.35.jpg
 
  • #31
You can't find the pressure drop across the valve unless you know the flow rate. So if you are changing the valve position, which changes both the pressure drop and flow rate, you need to know the characteristics of the entire system to find what the new pressure will be at the next increment of valve position.
 
  • #32
russ_watters said:
You can't find the pressure drop across the valve unless you know the flow rate. So if you are changing the valve position, which changes both the pressure drop and flow rate, you need to know the characteristics of the entire system to find what the new pressure will be at the next increment of valve position.
I already know the pressure drop and the flow coefficient, from that I can determine the flow rate, but these are just instantaneous values. I want to know what the pressure drop will be after 1 second while I'm changing the valve position, which changes the flow coefficient. If I can determine that from the flow rate, how would I calculate what the flow rate will be in 1 second? I'm assuming I'll need the volume of the system...

It doesn't even have to be too exact, just a clue as to what a good position to put the valve in would be good. Then I can implement a control system based off that if I need to.
At the moment I am essentially completely blind as to how to implement this.
 
Last edited:
  • #33
Like I told you, you won't find any analytical solution. You need to implement a predictor corrector algorithm, where based on the change in flow rate in the recent past, you estimate the derivative, then adjust the valve, re-measure the flow rate and correct. Repeat until you achieve steady state.
If you haven't taken a numerical methods class, you might be in trouble...

But from your posts, I gather what you are trying to do is use existing data to pre-calculate what the valve will be at steady state, rather than do a real time computation. Simply put, you won't be able to do this. Yes, theoretically there might be an exact solution to your problem, but practically the effort expended in looking for this solution will not yield a good return on your investment... unless you happen to solve the N-S equations, in which case you'll become a millionaire and world famous and won't have to work ever again.

The steady state valve curves will give you an approximate starting point. You will have to compute the derivative of the pressure drop in real time and estimate. This is the best solution I can think of.
 
  • #34
Or... what you could do is open the valve, wait 10-20 seconds for steady state to be achieved, then readjust, repeat, etc. This method is not very elegant and is very slow, but it will work too.
 
  • #35
Are you trying to control the pressure drop at constant flow rate, the flow rate at constant pressure drop, or a combination of the two? If you're trying to control a combination of the two, then you need to quantify the interaction of the valve with the process equipment upstream of the valve (in terms of the fluid mechanics interactions). So far, aside from the control equipment, you haven't told us anything about the process equipment upstream.

Chet
 

Similar threads

  • Mechanical Engineering
Replies
5
Views
2K
Replies
3
Views
1K
  • Mechanical Engineering
Replies
1
Views
1K
  • Mechanical Engineering
Replies
4
Views
2K
  • Mechanical Engineering
Replies
5
Views
964
  • Mechanical Engineering
Replies
3
Views
2K
  • Mechanical Engineering
Replies
11
Views
2K
  • Mechanical Engineering
Replies
10
Views
9K
  • Mechanical Engineering
Replies
5
Views
8K
Replies
4
Views
2K
Back
Top