reilleya / openMotor

An open-source internal ballistics simulator for rocket motor experimenters
GNU General Public License v3.0
398 stars 78 forks source link

Deriving Thrust from Pressure data #116

Closed benrussell11 closed 5 years ago

benrussell11 commented 5 years ago

Hi Andrew,

I've built and have been using a pressure data logger, which we have been using with our test stand to derive A&N.

My next step is to fly the pressure logger and log real time flight pressure. I would like to be able to convert the logged pressure to "thrust" and compare flight pressure to simed pressure. I can compare logged pressure vs simed pressure by exporting the simed pressure. Easy...

One way is to have openMotor import the logged pressure data and derive thrust using the motor design file (nozzle, grain geo etc). That would be an enhancement.

Is there a simple formula for determining thrust from the logged pressure? If there is, could you provide me with the formula? I can do the conversion within the data logger or export time and pressure to an Excel compatible CSV file and do the conversion in Excel.

Thanks,

Ben

AstroChuck commented 5 years ago

With the pressure and nozzle geometry it's pretty straightforward to get thrust. The equation using only nozzle parameters is: thrust = A* P_c * sqrt((2gamma**2/(gamma-1)) (2/(gamma+1))**((gamma+1)/(gamma-1))*(1-(P_e/P_c)**(gamma-1/gamma))) + (P_c-P_e)*A_e or rather, image

benrussell11 commented 5 years ago

Hi Charlie,

Thanks a million. Simple… well … is this the same formula openMotor is using?

Terms for the equation below:

What units should I be working in? Pressure is in PSI and would like to have force in Newtons.

Are you and Andrew attending this month’s Potter launch?

Again thanks for all of the help.

Ben

From: Charlie Garcia notifications@github.com Sent: Wednesday, August 14, 2019 7:34 PM To: reilleya/openMotor openMotor@noreply.github.com Cc: benrussell11 ben.russell11@gmail.com; Author author@noreply.github.com Subject: Re: [reilleya/openMotor] Deriving Thrust from Pressure data (#116)

With the pressure and nozzle geometry it's pretty straightforward to get thrust. The equation using only nozzle parameters is: thrust = A P_c sqrt((2gamma2/(gamma-1)) (2/(gamma+1))((gamma+1)/(gamma-1))*(1-(P_e/P_c)*(gamma-1/gamma))) + (P_c-P_e)A_e or rather, https://user-images.githubusercontent.com/4712964/63063380-69403e80-beca-11e9-9e31-125c1aeaaf2b.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/reilleya/openMotor/issues/116?email_source=notifications&email_token=AL4HO6ENBASTXJU3P6OEVGTQESI5JA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4KNAHI#issuecomment-521457693 , or mute the thread https://github.com/notifications/unsubscribe-auth/AL4HO6HSQLMTBVKG6KXP3QLQESI5JANCNFSM4ILY5BBQ . https://github.com/notifications/beacon/AL4HO6C7W44MK47HDORVAJ3QESI5JA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4KNAHI.gif

AstroChuck commented 5 years ago

This wouldn't be how OpenMotor would calculate thrust, to my knowledge, since OM can calculate mass flow directly, and calculates pressure off of KN.

The terms you provided are correct. Gamma (a greekified lower-case 'y') is the specific heat ratio of your propellant, or Cp/Cv. P_e is the exit pressure, the pressure of your exhaust at the exit plane of the nozzle. This is computed from the expansion ratio. A_e is the area of the nozzle at the exit plane (radius of nozzle exit squared times pi) You should be working entirely in metric units. Pa, N, kg, m, etc. I think Andrew and I will be at URRG.

benrussell11 commented 5 years ago

Hi Charlie,

A couple of follow up questions,

I’ve received the 1600 pressure transducers and will be working on data logger software this week.

Thanks for all of your help.

Ben

From: Charlie Garcia notifications@github.com Sent: Thursday, August 15, 2019 9:58 PM To: reilleya/openMotor openMotor@noreply.github.com Cc: benrussell11 ben.russell11@gmail.com; Author author@noreply.github.com Subject: Re: [reilleya/openMotor] Deriving Thrust from Pressure data (#116)

This wouldn't be how OpenMotor would calculate thrust, to my knowledge, since OM can calculate mass flow directly, and calculates pressure off of KN.

The terms you provided are correct. Gamma (a greekified lower-case 'y') is the specific heat ratio of your propellant, or Cp/Cv. P_e is the exit pressure, the pressure of your exhaust at the exit plane of the nozzle. This is computed from the expansion ratio. A_e is the area of the nozzle at the exit plane (radius of nozzle exit squared times pi) You should be working entirely in metric units. Pa, N, kg, m, etc. I think Andrew and I will be at URRG.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/reilleya/openMotor/issues/116?email_source=notifications&email_token=AL4HO6CCUR3JVV23MAQYGS3QEYCSJA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4NONPI#issuecomment-521856701 , or mute the thread https://github.com/notifications/unsubscribe-auth/AL4HO6EGXFHHXIJLEISWZ6TQEYCSJANCNFSM4ILY5BBQ . https://github.com/notifications/beacon/AL4HO6DPJDCTGMZHKJ6Q5BTQEYCSJA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4NONPI.gif

AstroChuck commented 5 years ago

Thrust coefficient is the term in square root with a nozzle area normalization term. Open Motor could calculate Cf. Andrew and I have been discussing improvements to the nozzle modelling and display process, this might be part of that.

The Chamber Cp/Cv is the same thing as specific heat ratio. There is a minor possibility for inaccuracy as the fraction of exhaust products (and therefore specific heat ratio) changes as the gas cools in the nozzle, but it's still mostly accurate.

Expansion ratio is Ae/A* and is typically in the range of 10 to 25 for amateur motors. The expansion ratio calculated by OM is fine to use. To calculate P_e use the equations here: https://www.grc.nasa.gov/WWW/K-12/airplane/rktthsum.html Use Expansion Ratio to get the exit mach. Then use the exit mach number to calculate the exit pressure.

If your nozzle is literally a hole in a flat plate, then A_e=A_t.

reilleya commented 5 years ago

The software already calculates Cf and I planned to display it on the nozzle tab of the results widget once that exists.

benrussell11 commented 5 years ago

If I understand correctly, that should simplify my equation. Will it be included as an option for export?

Any feeling for when it will be added to the nozzle tab?

Ben

From: Andrew Reilley notifications@github.com Sent: Monday, August 19, 2019 11:20 PM To: reilleya/openMotor openMotor@noreply.github.com Cc: benrussell11 ben.russell11@gmail.com; Author author@noreply.github.com Subject: Re: [reilleya/openMotor] Deriving Thrust from Pressure data (#116)

The software already calculates Cf and I planned to display it on the nozzle tab of the results widget once that exists.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/reilleya/openMotor/issues/116?email_source=notifications&email_token=AL4HO6F7U4NBSSPKYWHACCTQFNPEHA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4U5TYI#issuecomment-522836449 , or mute the thread https://github.com/notifications/unsubscribe-auth/AL4HO6HI3OPSSZEA7JDNB53QFNPEHANCNFSM4ILY5BBQ . https://github.com/notifications/beacon/AL4HO6DJECDQHOREVV537YDQFNPEHA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4U5TYI.gif

benrussell11 commented 5 years ago

Will do and thanks.

Ben

From: Charlie Garcia notifications@github.com Sent: Monday, August 19, 2019 10:22 PM To: reilleya/openMotor openMotor@noreply.github.com Cc: benrussell11 ben.russell11@gmail.com; Author author@noreply.github.com Subject: Re: [reilleya/openMotor] Deriving Thrust from Pressure data (#116)

Thrust coefficient is the term in square root with a nozzle area normalization term. Open Motor could calculate Cf. Andrew and I have been discussing improvement to the nozzle modelling and display process, this might be part of that.

The Chamber Cp/Cv is the same thing as specific heat ratio. There is a minor possibility for inaccuracy as the fraction of exhaust products (and therefore specific heat ratio) changes as the gas cools in the nozzle, but it's still mostly accurate.

Expansion ratio is Ae/A* and is typically in the range of 10 to 25 for amateur motors. The expansion ratio calculated by OM is fine to use. To calculate P_e use the equations here: https://www.grc.nasa.gov/WWW/K-12/airplane/rktthsum.html Use Expansion Ratio to get the exit mach. Then use the exit mach number to calculate the exit pressure.

If your nozzle is literally a hole in a flat plate, then A_e=A_t.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/reilleya/openMotor/issues/116?email_source=notifications&email_token=AL4HO6AWKEJ6N25EWAK2M4LQFNILJA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4U23RA#issuecomment-522825156 , or mute the thread https://github.com/notifications/unsubscribe-auth/AL4HO6AH2XA4IK7HNRJCSPTQFNILJANCNFSM4ILY5BBQ . https://github.com/notifications/beacon/AL4HO6FGC7FJHHQOPSN4DZDQFNILJA5CNFSM4ILY5BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4U23RA.gif