Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m]
This commit is contained in:
committed by
Preslav Aleksandrov
parent
09d9caf438
commit
4ab37fc0ca
@@ -248,6 +248,12 @@ EXPO [eE][-+]?[0-9]+
|
||||
"kN" COUNTCHARS; yylval.quantity.scaler = Quantity::KiloNewton; yylval.quantity.unitStr = yytext; return UNIT; // kilo Newton
|
||||
"MN" COUNTCHARS; yylval.quantity.scaler = Quantity::MegaNewton; yylval.quantity.unitStr = yytext; return UNIT; // mega Newton
|
||||
|
||||
"N/m" COUNTCHARS; yylval.quantity.scaler = Quantity::NewtonPerMeter; yylval.quantity.unitStr = yytext; return UNIT; // NewtonPerMeter (N/m or kg/s^2)
|
||||
"mN/m" COUNTCHARS; yylval.quantity.scaler = Quantity::MilliNewtonPerMeter; yylval.quantity.unitStr = yytext; return UNIT; // milli NewtonPerMeter
|
||||
"kN/m" COUNTCHARS; yylval.quantity.scaler = Quantity::KiloNewtonPerMeter; yylval.quantity.unitStr = yytext; return UNIT; // kilo NewtonPerMeter
|
||||
"MN/m" COUNTCHARS; yylval.quantity.scaler = Quantity::MegaNewtonPerMeter; yylval.quantity.unitStr = yytext; return UNIT; // mega NewtonPerMeter
|
||||
|
||||
|
||||
"Pa" COUNTCHARS; yylval.quantity.scaler = Quantity::Pascal; yylval.quantity.unitStr = yytext; return UNIT; // Pascal (kg/m*s^2 or N/m^2)
|
||||
"kPa" COUNTCHARS; yylval.quantity.scaler = Quantity::KiloPascal; yylval.quantity.unitStr = yytext; return UNIT; // kilo Pascal
|
||||
"MPa" COUNTCHARS; yylval.quantity.scaler = Quantity::MegaPascal; yylval.quantity.unitStr = yytext; return UNIT; // mega Pascal
|
||||
|
||||
@@ -707,6 +707,11 @@ App.Units.MilliNewton = App.Units.Quantity('mN')
|
||||
App.Units.KiloNewton = App.Units.Quantity('kN')
|
||||
App.Units.MegaNewton = App.Units.Quantity('MN')
|
||||
|
||||
App.Units.NewtonPerMeter = App.Units.Quantity('N/m')
|
||||
App.Units.MilliNewtonPerMeter = App.Units.Quantity('mN/m')
|
||||
App.Units.KiloNewtonPerMeter = App.Units.Quantity('kN/m')
|
||||
App.Units.MegaNewtonPerMeter = App.Units.Quantity('MN/m')
|
||||
|
||||
App.Units.Pascal = App.Units.Quantity('Pa')
|
||||
App.Units.KiloPascal = App.Units.Quantity('kPa')
|
||||
App.Units.MegaPascal = App.Units.Quantity('MPa')
|
||||
@@ -828,6 +833,8 @@ App.Units.Force = App.Units.Unit(1,1,-2)
|
||||
App.Units.Work = App.Units.Unit(2,1,-2)
|
||||
App.Units.Power = App.Units.Unit(2,1,-3)
|
||||
|
||||
App.Units.Stiffness = App.Units.Unit(0,1,-2)
|
||||
|
||||
App.Units.SpecificEnergy = App.Units.Unit(2,0,-2)
|
||||
App.Units.ThermalConductivity = App.Units.Unit(1,1,-3,0,-1)
|
||||
App.Units.ThermalExpansionCoefficient = App.Units.Unit(0,0,0,0,-1)
|
||||
|
||||
Reference in New Issue
Block a user