# *********** Calculate shear force and shear stress of a rectangle rod from Strain. ch1: Strain in m/m **************
# Strain measured by strain gauge, whose strain gauge is sesitive in 45 angle to the axis
# Output x1 is the shear stress and x2 is the shear force.
# Usage: - make sure ch1 measures the strainin m/m, correctly parametrized. May change ch1 in formula below to other input channel.
# -Set the parameters constE, constV, constB and constH1 (don't erase the ; at the line end). Run the script.
# ******************************************************************************************
# Berechnet Querkraft und Schubspannung eines rechteckigen Vollstabes aus der Dehnung eines DMS, dessen Messgitter im Winkel
# von 45 zur Lngsachse liegt
# x1 ist die Schubspannung, x2 die Querkraft
# Verwendung: Stellen Sie sicher, dass ch1 die Dehnung in m/m korrekt misst. GGf. zu anderem Eingangskanal ndern (ch2 usw).
# - Setzen Sie die Parameter constE, constV, constB und constH1 (nicht das ; lschen).

# https://www.me-systeme.de/de/support/kalkulator/querkraft1

# constE: elastic modulus of the tube material / Elastizittsmodul des Rohrmaterials
constE= 73000;
# constV: poissons ratio of the tube material / relatives Querkontraktions-Modul des Rohrmaterials
constV= 0.34;
# constB: width in mm / Breite in mm
constB= 100;
# constH1: heighth in mm / Hoehe in mm
constH1= 200;

# Output x1: shear stress in N/mm / Ausgang x1: Schubspannung in N/mm
x1= ((constE/2) /(1+constV))*ch1*2.0E-6;

# x2: shear force / Querkraft
x2= 2/3 * constB*constH1 * x1;