Stera.Net 0.1.0

dotnet add package Stera.Net --version 0.1.0
                    
NuGet\Install-Package Stera.Net -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Stera.Net" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Stera.Net" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Stera.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Stera.Net --version 0.1.0
                    
#r "nuget: Stera.Net, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Stera.Net@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Stera.Net&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Stera.Net&version=0.1.0
                    
Install as a Cake Tool

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 等)で読み取れます。

主な構成:

  • SteraClientVersion() / 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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