Stera.Net
0.1.0
dotnet add package Stera.Net --version 0.1.0
NuGet\Install-Package Stera.Net -Version 0.1.0
<PackageReference Include="Stera.Net" Version="0.1.0" />
<PackageVersion Include="Stera.Net" Version="0.1.0" />
<PackageReference Include="Stera.Net" />
paket add Stera.Net --version 0.1.0
#r "nuget: Stera.Net, 0.1.0"
#:package Stera.Net@0.1.0
#addin nuget:?package=Stera.Net&version=0.1.0
#tool nuget:?package=Stera.Net&version=0.1.0
Stera.Net
.NET bindings for stera — a structural engineering calculation library specialized for Japanese building design (linear static analysis, allowable stress design and story judgment for steel structures, Route 1–2). The core is written in Rust and bundled as a native library; this package is a thin, dependency-free wrapper (no Rhino/Grasshopper required).
日本の建築構造設計(S造ルート1-2 の一貫計算)に特化した構造計算ライブラリ stera の .NET バインディング。コアは Rust 製で、ネイティブライブラリ(win-x64 / linux-x64 / osx-arm64 / osx-x64)をパッケージに同梱しています。Rhino / Grasshopper には依存しません(Grasshopper プラグイン SteraGh はこのパッケージの上に作られています)。
インストール
dotnet add package Stera.Net
使い方(片持ち梁の解析)
単位は内部で N・mm 系固定(長さ mm、力 N、応力度 N/mm²)。
using Stera.Net;
using Stera.Net.Model;
var model = new SteraModel
{
Nodes =
{
new Node { Id = "N1", X = 0, Y = 0, Z = 0 },
new Node { Id = "N2", X = 3000, Y = 0, Z = 0 },
},
Materials = { new Material { Id = "S", Kind = MaterialKind.Steel, E = 205000.0, G = 79000.0 } },
// 断面性能は寸法から Rust 側で算定できる(H-300x150x6.5x9)
Sections = { SteraClient.SectionFromDetail("SEC", SectionDetail.HShape(300, 150, 6.5, 9)) },
Members =
{
new Member { Id = "G1", Type = "beam", NodeI = "N1", NodeJ = "N2", Section = "SEC", Material = "S" },
},
Supports = { Support.FixedAt("N1") },
LoadCases =
{
new LoadCase { Id = "P", Loads = { Load.Nodal("N2", new[] { 0.0, 0.0, -10000.0, 0.0, 0.0, 0.0 }) } },
},
};
var result = SteraClient.Analyze(model);
var tip = result.Case("P")!.Displacements["N2"]; // [ux, uy, uz, rx, ry, rz]
Console.WriteLine($"tip deflection = {tip[2]} mm");
一貫計算(荷重生成 → 解析 → 断面検定 → 層判定)は SteraClient.Run(model, options)。RunOptions で自重・地震(Ai 分布)・風(告示1454号)・標準組合せ・ルート判定を指定し、結果は SteraReport(検定比・層間変形角・Rs・Re 等)で読み取れます。
主な構成:
SteraClient—Version()/Analyze()/Run()/SectionFromDetail()Stera.Net.Model/Stera.Net.Options— モデル・実行オプションの DTO(JSON 契約は Rust 側と round-trip テストで担保)Stera.Net.Build.ModelBuilder— 座標ベースの組立(節点マージ・ID 採番・荷重スナップ・剛床自動生成)Stera.Net.Report.SteraReport— 帳票リーダー(遅延パース)
対応環境
- TFM:
net8.0/net7.0/netstandard2.0(.NET Framework 4.8 ホスト対応) - ネイティブ:
runtimes/{win-x64, linux-x64, osx-arm64, osx-x64}/nativeを同梱。特殊なホスト環境では環境変数STERA_FFI_PATHでライブラリの場所を明示できます
ライセンス
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Text.Json (>= 8.0.5)
-
net7.0
- System.Text.Json (>= 8.0.5)
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 122 | 7/13/2026 |