Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
/** | ||
* 鋼材の密度(kg/m^3) | ||
*/ | ||
export const STEEL_DENSITY: number = 7850.0; | ||
|
||
/** | ||
* 断面性能のタイプ | ||
*/ | ||
export const enum SectionPropertyType { | ||
Area = "断面積", | ||
MassPerMetre = "単位質量", | ||
SecondMomentOfAreaY = "断面二次モーメントY", | ||
SecondMomentOfAreaZ = "断面二次モーメントZ", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { SecSteelFunction } from "./steel-function"; | ||
|
||
test("鉄骨の単位質量", () => { | ||
expect(SecSteelFunction.massPerMetre(10.0)).toBe(78500.0); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { STEEL_DENSITY } from "../constant"; | ||
/** | ||
* 鉄骨断面に関する関数 | ||
*/ | ||
export class SecSteelFunction { | ||
/** | ||
* 単位質量 | ||
* @param area 断面積 | ||
* @returns 単位質量 | ||
*/ | ||
static massPerMetre(area: number): number { | ||
return STEEL_DENSITY * area; | ||
} | ||
} |