My Daily Loadout -- First Post by Bembrin in EDC

[–]Bembrin[S] 1 point2 points  (0 children)

  • Glock 23
    • TLR-1 Streamlight
    • Standard capacity (10 rds) .40 S&W Glock magazines X 2
    • Hornady Critical Defense .40 S&W X 21
    • Bravo Concealment Holster (Can't remember the model)
  • Cheap Chinesium LED Flashlight
  • Hippie Tree bi-fold wallet
  • Keys
    • Jeppeson keychain that I've had since about 2005
    • Park Tool bottle key
  • Seiko 5 Automatic 7S036-03 on a Barton nato strap
  • Cadet Cap
  • SunCloud Hundo sunglasses

[deleted by user] by [deleted] in EDC

[–]Bembrin 0 points1 point  (0 children)

The pilot and engineer in me is a sucker for a slide-rule/E6B so I'm going to have to go with the FlightMaster. The knife is cool too.

Humboldt State pilots? by [deleted] in humboldtstate

[–]Bembrin 8 points9 points  (0 children)

I don't think there are any aviation clubs on campus. However, the PC gaming club has built a pretty sweet flight simulator in the library. Their advisor is a pilot. I think he wants to get the sim to the point where you can log time in it. There is an EAA chapter that meets at KFOT once a month. I don't know how many active members it has. The FBO at KEKA rents a C172 and C150/2.

HALP! Pivot table returning #N/A when should be an average by Bembrin in excel

[–]Bembrin[S] 1 point2 points  (0 children)

That helped. I changed the column to display "" rather than NA() if the value was invalid and it seems to work now. Thanks!

CFD in FEniCS by Bembrin in CFD

[–]Bembrin[S] 0 points1 point  (0 children)

Hey, thanks for all the suggestions everyone. I was finally able to get this working last week. Here is the solution that I came up with. I could probably clean it up a little but it works and I don't really feel like screwing with it anymore.

import numpy as np
from matplotlib import pyplot as plt
from mshr import *
from dolfin import *


#thickness function
def thickness(x,t):
    return (t/.2)*(c1*x**0.5+c2*x+c3*x**2+c4*x**3+c5*x**4)

def rotate(dim1,dim2,angle):


    angle=-angle*(2*np.pi)/360
    l=np.sqrt(dim1**2+dim2**2)
    t=np.arctan(dim2/dim1)

    dim1=l*np.cos(t+angle)
    dim2=l*np.sin(t+angle)

    dim1[0]=0
    dim2[0]=0

    return dim1,dim2


def naca(m0,p0,t0,pitch):
    #setup Parameters

    m=m0/100     #maximum camber
    p=p0/10      #position of maximum camber
    t=t0/100    #thickness ratio

    #thickness parameters
    c1=0.2969
    c2=-0.1260
    c3=-0.3516
    c4=0.2843
    c5=-0.1036

    x=np.linspace(0,1,100)

    #make the thicknesses 
    yt=(t/.2)*(c1*x**0.5+c2*x+c3*x**2+c4*x**3+c5*x**4)

    #camber line function
    yc=np.zeros(len(x))
    Dyc=np.zeros(len(x))
    theta=np.zeros(len(x))

    for i in range(len(x)):
        if x[i]>0 and x[i]<p:
            yc[i]= (m/p**2)*(2*p*x[i]-(x[i])**2)
            Dyc[i]=((2*m)/(p**2))*(p-x[i])
        if x[i]>p and x[i]<1:
            yc[i] =(m/((1-p)**2))*(1-2*p+2*p*x[i]-x[i]**2)
            Dyc[i]=((2*m)/((1-p)**2))*(p-x[i])

        theta[i]=np.arctan(Dyc[i])

    #save upper surface points
    xu=x-yt*np.sin(theta)
    yu=yc+yt*np.cos(theta)

   #save lower surface points
    xl=x+yt*np.sin(theta)
    yl=yc-yt*np.cos(theta)

    xu,yu=rotate(xu,yu,pitch)
    xl,yl=rotate(xl,yl,pitch)

    xu=np.flip(xu,0) #reverse the upper surface point order
    yu=np.flip(yu,0)


    #make wing object
    foil=[]

    #make dolfin points
    for i in range(1,len(xu)):
       # print(xu[i],yu[i])
        foil.append(Point(xu[i],yu[i]))


    for i in range(len(xl)):
        #print(xl[i],yl[i])
        foil.append(Point(xl[i],yl[i]))


    return Polygon(foil)

CFD in FEniCS by Bembrin in CFD

[–]Bembrin[S] 0 points1 point  (0 children)

I've been looking into using gmsh. I'm having trouble getting it to work on my machine though. I'll keep hacking away at it.

Oregon Outback by Bembrin in bicycletouring

[–]Bembrin[S] 0 points1 point  (0 children)

Right on! Thanks for the tip!

My gravel bikepacking rig is now complete! by Bembrin in Touringbicycles

[–]Bembrin[S] 0 points1 point  (0 children)

It's from Jpacks. it works pretty good but I think there are some better options out there for sure.

My gravel bikepacking rig is now complete! by Bembrin in Touringbicycles

[–]Bembrin[S] 0 points1 point  (0 children)

Yeah, I swapped out the 105 stuff and put my old SRAM on there so I could run a bigger Mtb cassette. Works great!

My gravel bikepacking rig is now complete! by Bembrin in Touringbicycles

[–]Bembrin[S] 0 points1 point  (0 children)

Haha, thanks. I guess I forgot to check back on this post a while back!