Metadata-Version: 2.4
Name: ANYstructure
Version: 6.3.1
Summary: A plate field optimization tool for offshore structures calculated according to DNV standards
Home-page: https://github.com/audunarn/ANYstructure
Author: Audun Arnesen Nyhus
Author-email: audunarn@gmail.com
License: GPL-3.0-or-later
Keywords: dnv-gl-os-c101 dnv-rp-c202 dnv-rp-c201 naval_architecture structural_engineering steel buckling fatigue local_scantlings optimization weight
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ANY3dView[gpu]<0.6,>=0.5.4
Requires-Dist: ANYbuckling<0.2,>=0.1.1
Requires-Dist: ANYfileio[semantics]<0.3,>=0.2.1
Requires-Dist: ANYgeometry<0.5,>=0.4.1
Requires-Dist: ANYmaterial<0.2,>=0.1.1
Requires-Dist: ANYmesher<0.4,>=0.3.2
Requires-Dist: ANYsolver<0.5,>=0.4.0
Requires-Dist: ANYtk3D<0.6,>=0.5.3
Requires-Dist: matplotlib
Requires-Dist: meshio
Requires-Dist: numpy
Requires-Dist: numpy-stl
Requires-Dist: Pillow
Requires-Dist: reportlab
Requires-Dist: scipy
Requires-Dist: xlwings
Requires-Dist: scikit-learn
Provides-Extra: core
Requires-Dist: ANY3dView[gpu]<0.6,>=0.5.4; extra == "core"
Requires-Dist: ANYbuckling<0.2,>=0.1.1; extra == "core"
Requires-Dist: ANYfileio[semantics]<0.3,>=0.2.1; extra == "core"
Requires-Dist: ANYgeometry<0.5,>=0.4.1; extra == "core"
Requires-Dist: ANYmaterial<0.2,>=0.1.1; extra == "core"
Requires-Dist: ANYmesher<0.4,>=0.3.2; extra == "core"
Requires-Dist: ANYsolver<0.5,>=0.4.0; extra == "core"
Requires-Dist: ANYtk3D<0.6,>=0.5.3; extra == "core"
Requires-Dist: matplotlib; extra == "core"
Requires-Dist: meshio; extra == "core"
Requires-Dist: numpy; extra == "core"
Requires-Dist: numpy-stl; extra == "core"
Requires-Dist: Pillow; extra == "core"
Requires-Dist: reportlab; extra == "core"
Requires-Dist: scipy; extra == "core"
Provides-Extra: excel
Requires-Dist: xlwings; extra == "excel"
Provides-Extra: ml
Requires-Dist: scikit-learn; extra == "ml"
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Provides-Extra: all
Requires-Dist: ANY3dView[gpu]<0.6,>=0.5.4; extra == "all"
Requires-Dist: ANYbuckling<0.2,>=0.1.1; extra == "all"
Requires-Dist: ANYfileio[semantics]<0.3,>=0.2.1; extra == "all"
Requires-Dist: ANYgeometry<0.5,>=0.4.1; extra == "all"
Requires-Dist: ANYmaterial<0.2,>=0.1.1; extra == "all"
Requires-Dist: ANYmesher<0.4,>=0.3.2; extra == "all"
Requires-Dist: ANYsolver<0.5,>=0.4.0; extra == "all"
Requires-Dist: ANYtk3D<0.6,>=0.5.3; extra == "all"
Requires-Dist: matplotlib; extra == "all"
Requires-Dist: meshio; extra == "all"
Requires-Dist: numpy; extra == "all"
Requires-Dist: numpy-stl; extra == "all"
Requires-Dist: Pillow; extra == "all"
Requires-Dist: reportlab; extra == "all"
Requires-Dist: scipy; extra == "all"
Requires-Dist: xlwings; extra == "all"
Requires-Dist: scikit-learn; extra == "all"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

![picture](https://github.com/audunarn/ANYstructure/blob/master/anystruct/images/ANYstructure_logo.jpg)



# ANYstructure



ANYstructure is a desktop steel-structure design application for plate fields

and cylinders, including weight, weld, and cost optimization. Calculations are

based on DNV standards and recommended practices.



## Current release: 6.3.1



- Adds live Automatic, ModernGL GPU, and Tk software renderer selection to the

  maintained 3D model, mesh, and result views.

- Preserves the current scene and camera when a renderer is replaced; a failed

  explicit GPU switch keeps the working viewer intact.

- Uses the shared ANY3dView 0.5 contract while retaining the historical

  ANYtk3D compatibility module.



Earlier release history remains available in Git tags and release notes rather

than being duplicated in this README.



## Finite-element GUI integration



The FE GUI requires `ANYsolver>=0.4.0`. Axial force, bending moment,

shear force, torsional moment, pressure, and the supported collision controls

are mapped directly to the external solver runtime. Current-area follower

pressure is available for nonlinear static and arc-length runs on the Static

only or Nonlinear static runtime path; incompatible analysis paths are disabled

in the GUI and rejected by the solver. Arc-length runs retain the selected von

Karman or corotational kinematics, and nonlinear prestress/buckling recovery

retains committed-state provenance.



The main FE sections use raised, contrasting horizontal dividers, and the

result text and visualization have a vertical divider. Drag either divider to

resize its panes. Solver errors and unsupported configurations remain visible;

the GUI does not replace them with a lightweight estimate.



The GUI reflects solver-normalized analysis choices through ANYsolver's public

`resolve_runtime_analysis()` contract; it does not depend on private solver

helpers.



The material dropdowns are backed by ANYmaterial and include a

**Choose/edit material** button. The Interfaces menu opens ANYmesher and the

ANYfileio inspector inside the existing Tk event loop. Orthotropic selections

are refused explicitly until the legacy scalar material controls can represent

them without losing directional properties.



------------------------------------------------------------------------



For documentation:



https://anystructure.readthedocs.io/en/latest/



For tutorials:



https://www.youtube.com/@ANYopenSoft



## Development setup ##



ANYstructure is currently maintained as a Python package named `anystruct`. The GUI can still be launched through the `ANYstructure` console command after an editable install.



Recommended local setup:



```powershell

python -m venv .venv

.\.venv\Scripts\Activate.ps1

python -m pip install --upgrade pip

python -m pip install --upgrade --no-deps -e "C:\Github\ANY3dView[gpu]" -e "C:\Github\ANYmaterial" -e "C:\Github\ANYgeometry" -e "C:\Github\ANYmesh" -e "C:\Github\ANYfileIO[semantics]" -e "C:\Github\ANYsolver" -e "C:\Github\ANYbuckling" -e "C:\Github\ANYtk3D" -e "C:\Github\ANYstructure"

python -m pip install -r requirements-dev.txt

python -m pytest

```



The editable bootstrap is intentionally ordered by dependency: viewer core,

material and geometry, meshing, semantic file I/O, solver, independent

buckling and Tk rendering, then ANYstructure. `run_gui.py` prints the same

graph with the exact active Python executable if metadata or an import origin

is stale. The coordinated editable refresh uses `--no-deps` so pip updates

the sibling metadata without trying to resolve older packages' narrow

transitive constraints.



ANYstructure 6.3.1 supports ANY3dView source checkouts in `>=0.5.4,<0.6` and

ANYtk3D checkouts in `>=0.5.3,<0.6`. The launcher accepts shared checkouts only

inside those ranges. To select qualified checkouts explicitly, set

`ANYSTRUCTURE_ANY3DVIEW_ROOT` and `ANYSTRUCTURE_ANYTK3D_ROOT` before running

`run_gui.py`. Invalid overrides block startup instead of falling back silently.



ANYmesher is selected with the same fail-closed rule. The shared

`C:\Github\ANYmesh` checkout is used only while its `pyproject.toml` declares

a version in `>=0.3.2,<0.4`. Otherwise the launcher and its repair command use the

qualified checkout at `C:\Github\ANYsolver\.compat_anymesher_032`. Set

`ANYSTRUCTURE_ANYMESHER_ROOT` to a checkout in `>=0.3.2,<0.4`; an invalid

override blocks startup.



The complete coordinated ranges are `ANYsolver>=0.4.0,<0.5`,

`ANYgeometry>=0.4.1,<0.5`, `ANYmaterial>=0.1.1,<0.2`,

`ANYmesher>=0.3.2,<0.4`, `ANYfileio[semantics]>=0.2.1,<0.3`,

`ANYbuckling>=0.1.1,<0.2`, `ANY3dView[gpu]>=0.5.4,<0.6`, and

`ANYtk3D>=0.5.3,<0.6`. Exact source authority can also be selected with the

corresponding `ANYSTRUCTURE_ANYSOLVER_ROOT`, `ANYSTRUCTURE_ANYGEOMETRY_ROOT`,

`ANYSTRUCTURE_ANYMATERIAL_ROOT`, `ANYSTRUCTURE_ANYFILEIO_ROOT`, and

`ANYSTRUCTURE_ANYBUCKLING_ROOT` variables. Install the editable sibling

checkouts above until compatible releases are available from PyPI. ANYgeometry

is the shared neutral surface-geometry authority; materials, structural

properties, loads, mesh controls, and solver state remain in their owning

packages.



New geometry code should call `anygeometry.generators` directly. The

`anystruct.geometry_generators` module provides thin plate, stiffened-panel,

cylinder, and cone adapters for existing ANYstructure integrations, while

`anystruct.representation_geometry` temporarily preserves the historical

station-layout import path.



The central runtime/FEM and mesh-preview path now establishes one lazy, cached

`GeometryModel` through those adapters. Existing ANYsolver and GUI consumers

receive a geometry-backed dictionary projection with unchanged keys and values;

the owner model is built once only when a geometry-aware consumer requests it.

Semantic groups remain available out-of-band, while thicknesses, sections,

materials, loads, and analysis settings remain external. ANYsolver's legacy

runtime currently still builds its FE mesh from the dictionary projection; that

transitional payload conversion remains until ANYsolver accepts the neutral

model directly.



Launch the desktop app after installation:



```powershell

ANYstructure

```



From a source checkout, the same GUI can be launched with:



```powershell

python run_gui.py

```



Dependency groups are also available for focused installs:



```powershell

python -m pip install -r requirements-core.txt

python -m pip install -r requirements-ml.txt

python -m pip install -r requirements-excel.txt

```



Equivalent package extras are exposed as `core`, `ml`, `excel`, `dev`, and `all`. The default package install still includes Excel and ML dependencies for backwards compatibility.



Excel project import requires a local Excel installation and is not expected to run in basic automated tests.

The external Excel-sheet DNV PULS calculation workflow has been removed from this release; ML-CL remains available.



## Calculation scope



- Minimum plate thickness (DNV-OS-C101)

- Minimum section modulus of stiffener/plate (DNVGL-OS-C101)

- Minimum shear area (DNVGL-OS-C101)

- Plate buckling (DNVGL-RP-C201)

- Shell buckling (DNV-RP-C202)

- Machine-learning buckling predictions based on PULS data

- Semi-analytical buckling through ANYbuckling

- Fatigue for plate/stiffener connections (DNVGL-RP-C203)





Compartments (tank pressures) are created automatically.



Pressures on external hull (or any other generic location) is defined by specifying equations.



You can optimize cylinders, single plate/stiffener field or multiple. Geometry of double bottom can be optimized.



Contributions and bug reports are welcome through GitHub. General feedback can

also be sent to audunarn@gmail.com.



Screenshot (this example can be loaded from file "ship_section_example.txt"):



![picture](https://github.com/audunarn/ANYstructure/blob/master/anystruct/images/ANYstructure%20screenshot.png)

