Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/python
import numpy as np
from scipy.integrate import odeint
# Approximating the powered descent of a falcon 9 with a single Merlin 1D over the last 30 seconds of flight.
# Also an attempt to learn odeint, and how to use it to deal with a non-linear 2nd order ODE.
rho = 1.2 # sealevel atmo density, ish
d = 3.7 # Falcon 9 diamter
Ve = 2730.0 # Effective exhaust velocity
@pdn4kd
pdn4kd / topics.md
Last active March 9, 2023 22:45 — forked from eggrobin/topics.md
#kspacademia topicquotes

The conversation that led to the creation of the channel:

<ferram4|afk> So, I continue following references on supersonic wing stuff,
and I find a paper that tries to tweak linear supersonic flow to work for
high AoA, hypersonic flight.
<KinglyRedLion> the FUCK
<ferram4|afk> I love technical papers. ^_^
<KinglyRedLion> Why would you do high AOA hypersonic?
<egg|zzz|egg> KinglyRedLion: to publish
@pdn4kd
pdn4kd / segmasksize
Created August 12, 2015 18:24
Segmasking needs resizing?
pdn4kd@arp256:/Users/pdn4kd/bsphfollowup/Summer2015/segmask> perl Critical_Tidal_Parameter_S82.pl
pnyu113945_S82.model_1.fits
999.789784703967
PDL: PDL::Ops::mult(a,b,c): Parameter 'b':
Mismatched implicit thread dimension 0: should be 101, is 115
at Basic/Core/Core.pm.PL (i.e. PDL::Core.pm) line 396
PDL::Core::barf('PDL: PDL::Ops::mult(a,b,c): Parameter \'b\':\x{a}Mismatched impli...') called at Critical_Tidal_Parameter_S82.pl line 49
pdn4kd@arp256:/Users/pdn4kd/bsphfollowup/Summer2015/segmask>
@pdn4kd
pdn4kd / CSV_XS.pm
Created March 24, 2015 05:22
parse issues
package Text::CSV_XS;
# Copyright (c) 2007-2012 H.Merijn Brand. All rights reserved.
# Copyright (c) 1998-2001 Jochen Wiedmann. All rights reserved.
# Portions Copyright (c) 1997 Alan Citterman. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
# HISTORY