oo-solver 0.2.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oo_solver/__init__.py +113 -0
- oo_solver/_native.cp313-win_amd64.pyd +0 -0
- oo_solver/licenses/winpthreads/COPYING +57 -0
- oo_solver-0.2.0.dist-info/DELVEWHEEL +2 -0
- oo_solver-0.2.0.dist-info/METADATA +164 -0
- oo_solver-0.2.0.dist-info/RECORD +11 -0
- oo_solver-0.2.0.dist-info/WHEEL +5 -0
- oo_solver-0.2.0.dist-info/licenses/LICENSE +21 -0
- oo_solver.libs/libgcc_s_seh-1-9cc8095a74e2dbee8ccfa8fadc9197aa.dll +0 -0
- oo_solver.libs/libstdc++-6-5fa4767db89d85ce9896da5878ca6650.dll +0 -0
- oo_solver.libs/libwinpthread-1-94a9a4e2fe27b4bc827a4b209e9deb4c.dll +0 -0
oo_solver/__init__.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""Native structural analyses and design evaluations using oo_reader decks."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# start delvewheel patch
|
|
5
|
+
def _delvewheel_patch_1_13_2():
|
|
6
|
+
import os
|
|
7
|
+
if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'oo_solver.libs'))):
|
|
8
|
+
os.add_dll_directory(libs_dir)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
_delvewheel_patch_1_13_2()
|
|
12
|
+
del _delvewheel_patch_1_13_2
|
|
13
|
+
# end delvewheel patch
|
|
14
|
+
|
|
15
|
+
from oo_reader import card_columns
|
|
16
|
+
|
|
17
|
+
from ._native import DesignPoint, Model, OptimizationProblem, _Builder
|
|
18
|
+
|
|
19
|
+
_DESIGN_TABLES = (
|
|
20
|
+
"designVariablesTable", "designLinksTable", "designRelationsTable", "designConstantsTable",
|
|
21
|
+
"shapeVariablesTable", "designEquationSymbols", "designEquationInstructions", "designResponsesTable",
|
|
22
|
+
"designResponseArgumentsTable", "designConstraintsTable", "designConstraintSetsTable",
|
|
23
|
+
"designSubcasesTable", "designScreeningTable",
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def model_from_reader(deck, *, formulation=None):
|
|
28
|
+
"""Build an immutable snapshot. Table buffers transfer through the Arrow C Data Interface."""
|
|
29
|
+
builder = _Builder()
|
|
30
|
+
if formulation is not None:
|
|
31
|
+
builder.formulation(formulation)
|
|
32
|
+
counts = deck.card_counts
|
|
33
|
+
builder.cards(counts)
|
|
34
|
+
builder.versions(*deck.versions[:2])
|
|
35
|
+
builder.table("nodes", deck.card_table("nodes", ["id", "positionFrameId", "displacementFrameId",
|
|
36
|
+
"permanentConstraints", "superelementId", "xyzGlobal"]))
|
|
37
|
+
builder.rotations(deck.displacement_rotations())
|
|
38
|
+
points = deck.card_types("points")
|
|
39
|
+
scalar = [p for p in points if p in ("ScalarPoint", "ExtraPoint")]
|
|
40
|
+
if scalar:
|
|
41
|
+
if len(points) != len(scalar) and len(scalar) != 1:
|
|
42
|
+
raise ValueError(f"Ambiguous scalar point types: {points}")
|
|
43
|
+
builder.table("scalarPoints", deck.card_table("points" if len(points) == len(scalar) else scalar[0], ["id"]))
|
|
44
|
+
for card, role, columns in (
|
|
45
|
+
("ShellNormal", "shellNormals", ["nodeId", "frameId", "vector"]),
|
|
46
|
+
("SurfaceEdge", "surfaceEdges", ["id", "node1Id", "node2Id", "state", "elementId"]),
|
|
47
|
+
("SurfaceFacet", "surfaceFacets", ["elementId"]),
|
|
48
|
+
("SurfaceLine", "surfaceLines", ["id", "node1Id", "throughNodeId", "node2Id"]),
|
|
49
|
+
("Bar2Stations", "barStations", ["id", "stationScale", "listedStations", "stationCount", "station1", "stationSpacing"]),
|
|
50
|
+
("AxialDeformationLoad", "deformations", ["id", "element", "deformation"]),
|
|
51
|
+
):
|
|
52
|
+
if counts.get(card):
|
|
53
|
+
builder.table(role, deck.card_table(card, columns))
|
|
54
|
+
if counts.get("ModelParams"):
|
|
55
|
+
builder.offset(deck.offset_definition)
|
|
56
|
+
for card in deck.card_types("elements"):
|
|
57
|
+
stored, computed = card_columns(card)
|
|
58
|
+
columns = stored + [c for c in ("nodesRows", "propIdRow", "propType") if c in computed]
|
|
59
|
+
builder.card("elements", card, deck.card_table(card, columns))
|
|
60
|
+
for card in deck.card_types("properties"):
|
|
61
|
+
if "id" in card_columns(card)[0]:
|
|
62
|
+
builder.card("properties", card, deck.card_table(card))
|
|
63
|
+
for group, cards in (
|
|
64
|
+
("materials", ("IsoMat", "OrthoMat2D", "AnisoMat2D", "AnisoMat3D")),
|
|
65
|
+
("methods", ("LanczosEigenMethod", "RealEigenMethod", "BucklingEigenMethod")),
|
|
66
|
+
):
|
|
67
|
+
for card in cards:
|
|
68
|
+
if counts.get(card):
|
|
69
|
+
builder.card(group, card, deck.card_table(card))
|
|
70
|
+
for card in ("PointForceLoad", "PointForceLoad1", "PointForceLoad2", "PointMomentLoad", "PointMomentLoad1",
|
|
71
|
+
"PointMomentLoad2", "ScalarPointLoad", "PointsPressureLoad", "BeamDistributedLoad",
|
|
72
|
+
"ShellPressureLoad", "FacePressureLoad", "LoadCombination"):
|
|
73
|
+
if counts.get(card):
|
|
74
|
+
cols = ["id", "significantDigits"]
|
|
75
|
+
if card == "LoadCombination":
|
|
76
|
+
cols.append("termLoad")
|
|
77
|
+
stored, computed = card_columns(card)
|
|
78
|
+
if set(cols).issubset(stored + computed):
|
|
79
|
+
builder.card("loads", card, deck.card_table(card, cols))
|
|
80
|
+
for name in ("materialsTable", "multiPointConstrTable", "rigidElementsTable", "temperatureTable",
|
|
81
|
+
"subcasesTable", "nonStructMassTable", "coordsTable", "laminatePliesTable", "laminateSummary",
|
|
82
|
+
"paramsTable", "outputRequestsTable", "caseSetsTable", "fastenerPiercings"):
|
|
83
|
+
builder.table(name, deck.query(name))
|
|
84
|
+
for name in ("loadsTable", "lineLoadsTable", "singlePointConstrTable", "inertialLoadsTable"):
|
|
85
|
+
builder.table(name, deck.query(name, expandCombinations=False))
|
|
86
|
+
builder.table("pressureFields", deck.query("pressureTable", expandCombinations=False, detail="fields"))
|
|
87
|
+
builder.table("loadCombinationsTable", deck.query("loadCombinationsTable",
|
|
88
|
+
columns=["load", "scale", "loadSet", "factor", "combinedFactor"]))
|
|
89
|
+
builder.table("sectionsTable", deck.query("sectionsTable", types=["BarShapeProp", "BeamShapeProp"]))
|
|
90
|
+
builder.table("dofSetsTable", deck.query("dofSetsTable", cards=["FreeBodySupport", "FreeBodySupportSet"]))
|
|
91
|
+
if any(counts.get(c) for c in ("ContactTable", "ContactTable1", "ContactPair", "ContactSet",
|
|
92
|
+
"ContactSetUnion", "ContactSlideline")):
|
|
93
|
+
builder.table("contactNodePairs", deck.query("contactNodePairs", rule="components"))
|
|
94
|
+
builder.table("contactPairsTable", deck.query("contactPairsTable", rule="components"))
|
|
95
|
+
builder.table("contactTablesTable", deck.query("contactTablesTable"))
|
|
96
|
+
if any(counts.get(c) for c in ("AeroLiftingPanel1", "AeroBody2", "AeroMachBoxPanel3", "AeroStripPanel4", "AeroPistonPanel5")):
|
|
97
|
+
for name in ("aeroReferenceTable", "aeroPanelsTable", "aeroBoxesTable", "controlSurfacesTable",
|
|
98
|
+
"aeroTrimCasesTable", "splinesTable", "splineNodes"):
|
|
99
|
+
builder.table(name, deck.query(name))
|
|
100
|
+
for card in ("AeroBeamSpline2", "AeroBeamSpline5", "AeroBoxList", "AeroRigidTrimVariable", "AeroTrimLink"):
|
|
101
|
+
if counts.get(card):
|
|
102
|
+
builder.card("aero", card, deck.card_table(card))
|
|
103
|
+
return builder.build()
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def optimization_from_reader(deck, *, analysis="statics", formulation=None, threads=1):
|
|
107
|
+
"""Prepare a reusable C++ design problem from the design declarations in the deck."""
|
|
108
|
+
deck.validate_design()
|
|
109
|
+
model = model_from_reader(deck, formulation=formulation)
|
|
110
|
+
return model._optimization({name: deck.query(name) for name in _DESIGN_TABLES}, analysis, threads)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
__all__ = ["DesignPoint", "Model", "OptimizationProblem", "model_from_reader", "optimization_from_reader"]
|
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Copyright (c) 2011 mingw-w64 project
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
+
copy of this software and associated documentation files (the "Software"),
|
|
5
|
+
to deal in the Software without restriction, including without limitation
|
|
6
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
7
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
8
|
+
Software is furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
19
|
+
DEALINGS IN THE SOFTWARE.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* Parts of this library are derived by:
|
|
24
|
+
*
|
|
25
|
+
* Posix Threads library for Microsoft Windows
|
|
26
|
+
*
|
|
27
|
+
* Use at own risk, there is no implied warranty to this code.
|
|
28
|
+
* It uses undocumented features of Microsoft Windows that can change
|
|
29
|
+
* at any time in the future.
|
|
30
|
+
*
|
|
31
|
+
* (C) 2010 Lockless Inc.
|
|
32
|
+
* All rights reserved.
|
|
33
|
+
*
|
|
34
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
35
|
+
* are permitted provided that the following conditions are met:
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
39
|
+
* this list of conditions and the following disclaimer.
|
|
40
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
41
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
42
|
+
* and/or other materials provided with the distribution.
|
|
43
|
+
* * Neither the name of Lockless Inc. nor the names of its contributors may be
|
|
44
|
+
* used to endorse or promote products derived from this software without
|
|
45
|
+
* specific prior written permission.
|
|
46
|
+
*
|
|
47
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
|
|
48
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
49
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
50
|
+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
51
|
+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
52
|
+
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
53
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
54
|
+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
55
|
+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
56
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
57
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Version: 1.13.2
|
|
2
|
+
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0gpp60zo\\cp313-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '--add-path', 'D:/a/_temp/msys64/ucrt64/bin', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0gpp60zo\\cp313-win_amd64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0gpp60zo\\cp313-win_amd64\\built_wheel\\oo_solver-0.2.0-cp313-cp313-win_amd64.whl']
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: oo-solver
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Native O_o finite element solver with NumPy result arrays
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: oo-reader<0.3,>=0.2.0
|
|
9
|
+
Requires-Dist: numpy>=1.23
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# O_o_Solver
|
|
13
|
+
|
|
14
|
+
[Native Python package (`oo-solver`), build and publishing](docs/python.md)
|
|
15
|
+
|
|
16
|
+
**[Sphinx documentation](https://jcdulas.github.io/O_o_Solver/)** ·
|
|
17
|
+
**[Benchmark comparison — Classic, Mixed Auto and commercial solvers](docs/structural-benchmark-comparison.md)** ·
|
|
18
|
+
[Derivative coverage](https://jcdulas.github.io/O_o_Solver/docs/derivatives.html) ·
|
|
19
|
+
[API reference](https://jcdulas.github.io/O_o_Solver/docs/api.html)
|
|
20
|
+
|
|
21
|
+
A linear finite element solver written in C++20 and compiled to WebAssembly for the web. It solves models supplied
|
|
22
|
+
as typed table packages by O_o_Reader: linear statics (SOL 101), normal modes (SOL 103), linear buckling (SOL 105),
|
|
23
|
+
static aeroelastic trim (SOL 144) and design evaluations driven by JavaScript. A static analysis can condense the
|
|
24
|
+
components of the model onto their boundaries (the condensed path), with the results of the full path.
|
|
25
|
+
|
|
26
|
+
O_o_Reader loads native `.oos` models or `.ooh5` model archives, and the solver takes the reader's tables:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import { loadOorReader } from "oor-reader";
|
|
30
|
+
import { loadOosSolver } from "oos-solver";
|
|
31
|
+
|
|
32
|
+
const oor = await loadOorReader();
|
|
33
|
+
const solver = await loadOosSolver();
|
|
34
|
+
|
|
35
|
+
oor.writeFile("/work/plate.oos", modelText);
|
|
36
|
+
const deck = oor.readModel("/work/plate.oos");
|
|
37
|
+
const model = solver.modelFromReader(oor, deck); // the reader's tables, handed over as table packages
|
|
38
|
+
solver.elementFormulations(); // [{ card: "ShellQuad4", formulations }], the default first
|
|
39
|
+
|
|
40
|
+
model.checkSupport("statics"); // { supported, refusals, ignored, isComplete }
|
|
41
|
+
const run = solver.run(model, "statics"); // or "modes", "buckling"
|
|
42
|
+
run.nodalTables[0]; // { kind: "displacements", subcase, ids, values (rows x 6), ... }
|
|
43
|
+
run.elementTables; // stress, strain, forces, by element type ("ShellQuad4")
|
|
44
|
+
run.eigenvalues; // modes and buckling: one table per subcase
|
|
45
|
+
run.diagnostics; // warnings, with the card and field they are about
|
|
46
|
+
|
|
47
|
+
// The condensed path: the reader's component tables, then each component condensed onto its boundary.
|
|
48
|
+
const parts = solver.modelFromReader(oor, deck, { condensation: true });
|
|
49
|
+
solver.run(parts, "statics", { condensation: "all" }).condensation; // { condensedUnits, fullUnits, interfaceDofs }
|
|
50
|
+
solver.run(parts, "modes", { condensation: { units: "all", modeCount: 40 } }); // Craig-Bampton; "buckling" too
|
|
51
|
+
const cache = solver.condensationCache(); // units condensed once for the runs given it
|
|
52
|
+
solver.run(parts, "statics", { condensation: { units: "all", cache, memoryMode: "low_memory" } });
|
|
53
|
+
|
|
54
|
+
solver.run(model, "statics", { streamed: true }); // the full path without a factor of the whole model
|
|
55
|
+
solver.run(model, "statics", { externalUnits: [{ zone, labels, stiffness }] }); // zones replaced by matrices
|
|
56
|
+
solver.runSuperelements(residual, [{ id: 1, model: part, boundary: [[101, 101]] }], "statics");
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The interface and its diagnostics use the same neutral names as the model: card types such as `ShellQuad4`,
|
|
60
|
+
table kinds such as `singlePointConstrForces`, and field names such as `bendingMomentA1`.
|
|
61
|
+
|
|
62
|
+
The whole interface: [wasm/js/index.d.ts](wasm/js/index.d.ts). How a table crosses from the reader's module to the
|
|
63
|
+
solver's: [docs/table-package.md](docs/table-package.md).
|
|
64
|
+
|
|
65
|
+
## Documentation
|
|
66
|
+
|
|
67
|
+
[JavaScript optimization](docs/optimization.md): native design interfaces and derivatives.
|
|
68
|
+
[External optimization](docs/external-optimization.md): SOL 101, 103, 105 and 144 studies, full-analysis derivatives,
|
|
69
|
+
workers and accepted-point archives.
|
|
70
|
+
[Bar and beam derivatives](docs/beam-derivatives.md): analytic section, material, mass and recovery rates.
|
|
71
|
+
|
|
72
|
+
**[Read Sphinx documentation](https://jcdulas.github.io/O_o_Solver/)** · [Architecture with diagrams](docs/architecture.md) · [Documentation index](index.md)
|
|
73
|
+
|
|
74
|
+
The Documentation workflow publishes the HTML site and provides a downloadable archive.
|
|
75
|
+
See [read, download and build instructions](docs/documentation.md).
|
|
76
|
+
|
|
77
|
+
## Shell elements
|
|
78
|
+
|
|
79
|
+
ShellQuad4 is the four-node shell of [docs/shell-quad4-formulation.md](docs/shell-quad4-formulation.md) (directors
|
|
80
|
+
at the nodes, enhanced membrane strains and curvatures, transverse shear tied at the mid-sides with its residual
|
|
81
|
+
bending flexibility, a stabilised rotation about the normal), and ShellTria3 the same element brought to three nodes
|
|
82
|
+
([docs/shell-tria3-formulation.md](docs/shell-tria3-formulation.md)), so that two triangles on the grid points of a
|
|
83
|
+
quadrilateral behave closely to it; that document gives the measured closeness and its limits. ShellQuad8 and
|
|
84
|
+
ShellTria6 are the shells with a director at each node on the quadratic shape functions
|
|
85
|
+
([docs/shell-quad8-tria6-formulation.md](docs/shell-quad8-tria6-formulation.md)), with the same conventions: the
|
|
86
|
+
normals shared at the grid points, the stabilised rotation about the normal, the free thermal dilatation; the
|
|
87
|
+
eight-node element with uniform reduced integration, the six-node element with tied transverse shears and membrane
|
|
88
|
+
strains. All are written from methods of the open literature, cited in the documents; the choices of this project
|
|
89
|
+
are listed in [src/elements/README.md](src/elements/README.md).
|
|
90
|
+
|
|
91
|
+
## Element formulations
|
|
92
|
+
|
|
93
|
+
Each element card can have several formulations. `ClassicFormulation` is the default for every current
|
|
94
|
+
card. A choice applies to all elements of one card type. The model sets it with
|
|
95
|
+
`Parameter;ShellQuad4Formulation;ClassicFormulation`, or with a global
|
|
96
|
+
`SubcaseParameter;ShellQuad4Formulation;ClassicFormulation` before the first subcase.
|
|
97
|
+
|
|
98
|
+
A program can override that choice with
|
|
99
|
+
`solver.modelFromReader(oor, model, { elementFormulations: { ShellQuad4: "ClassicFormulation" } })`.
|
|
100
|
+
Card names must match `solver.elementFormulations()` exactly. Unknown cards and unavailable formulations
|
|
101
|
+
are reported before a calculation. Details: [src/elements/README.md](src/elements/README.md).
|
|
102
|
+
|
|
103
|
+
`MixedHybridFormulation` is chosen for the whole model, never for one card: every shell, line and solid card takes it
|
|
104
|
+
together, with `Parameter;ElementFormulation;MixedHybridFormulation` or
|
|
105
|
+
`solver.modelFromReader(oor, model, { elementFormulation: "MixedHybridFormulation", formulationGeometry: {...} })`.
|
|
106
|
+
Its shells and solids read their geometry from the mesh. The model's `ShellNormalAngle` decides where the surface
|
|
107
|
+
folds, and the declarations correct it edge by edge (`formulationGeometry`, or the `SurfaceEdge`, `SurfaceFacet` and
|
|
108
|
+
`SurfaceLine` cards of the deck: smooth, sharp and raw edges, raw elements, mesh lines); a declaration is mandatory,
|
|
109
|
+
and an empty one says that the angle decides every edge. `Model.surfaceEdges()` gives what was read at every edge. It
|
|
110
|
+
takes every path: full, condensed, streamed, external units, superelements and the design derivatives.
|
|
111
|
+
See [docs/mixed-hybrid-formulation-spec.md](docs/mixed-hybrid-formulation-spec.md).
|
|
112
|
+
|
|
113
|
+
## Layout
|
|
114
|
+
|
|
115
|
+
| Folder | What |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| `include/oos/<module>/`, `src/<module>/` | the library, in modules that each use only the ones before them: `base` → `linalg` → `input` → `elements` → `assembly` → `reduction` → `aero` → `output` → `solutions` → `design` → `api` |
|
|
118
|
+
| `wasm/` | the WebAssembly module: the embind interface (`src/Bindings.cpp`), the JavaScript wrapper (`js/`), its Node.js test (`test/`) |
|
|
119
|
+
| `cmake/` | compiler warnings and the dense kernel families |
|
|
120
|
+
| `docs/` | the table package format |
|
|
121
|
+
|
|
122
|
+
Each module has a `README.md` in `src/<module>/` that says what it holds and where to start reading.
|
|
123
|
+
|
|
124
|
+
## Build
|
|
125
|
+
|
|
126
|
+
For the shared-memory build, use the `wasm-threads` preset and [threading guide](docs/threading.md).
|
|
127
|
+
|
|
128
|
+
Native (Windows: MSYS2 UCRT64 first on the PATH, `C:\msys64\ucrt64\bin`; Linux: GCC 12 or later):
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
cmake --preset release
|
|
132
|
+
cmake --build build/release -j
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
The `Native` workflow makes this build with GCC 12 and runs the native checks of the element kernels
|
|
136
|
+
(`-DOOS_BUILD_NATIVE_CHECKS=ON`, `build/release/checks/oos_native_checks`).
|
|
137
|
+
|
|
138
|
+
WebAssembly (64-bit WebAssembly, Memory64: Node.js 24 or a browser that supports it; the Emscripten SDK on the PATH):
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
emcmake cmake -S . -B build/wasm -G Ninja -DCMAKE_BUILD_TYPE=Release -DOOS_BUILD_WASM=ON -DOOS_WARNINGS_AS_ERRORS=OFF
|
|
142
|
+
cmake --build build/wasm -j
|
|
143
|
+
node --test --test-concurrency=1 wasm/test/*.test.mjs # needs the O_o_Reader package built in ../O_o_Reader/build/wasm/dist
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The [fast input combination tests](docs/testing.md) enforce a one-second ceiling per case. Use
|
|
147
|
+
`node wasm/test/run.mjs` for a compact summary and a JSON timing report.
|
|
148
|
+
|
|
149
|
+
The package is in `build/wasm/dist` (`oos_solver_core.js`, `.wasm`, `index.js`, `index.d.ts`, `package.json`).
|
|
150
|
+
The `WebAssembly` workflow builds it on every push to `main` that changes the sources, runs the test suites on it
|
|
151
|
+
(see [continuous integration](docs/testing.md#continuous-integration)) and, when they pass, publishes it as
|
|
152
|
+
`O_o_Solver-wasm.zip` in two [releases](https://github.com/jcdulas/O_o_Solver/releases): `wasm-latest`, a pre-release
|
|
153
|
+
that follows the branch, and one release kept for each version of `wasm/package.json` (`v0.2.0`, ...), made by the
|
|
154
|
+
first build of that version and not changed afterwards; the newest of these is the latest release of the repository.
|
|
155
|
+
Raise the version in `wasm/package.json` to keep a new one. Each run also keeps the package 90 days as its
|
|
156
|
+
`O_o_Solver-wasm` artifact.
|
|
157
|
+
|
|
158
|
+
The default WebAssembly build runs on its calling thread. The `wasm-threads` variant enables shared-memory
|
|
159
|
+
workers through the same C++ thread pool. Both variants factorise with the dense kernels written on the 128-bit vector
|
|
160
|
+
instructions of WebAssembly, which give the bits of the portable reference kernels.
|
|
161
|
+
|
|
162
|
+
## Licence
|
|
163
|
+
|
|
164
|
+
MIT, see [LICENSE](LICENSE). The legal choices behind the project are in [LEGAL.md](LEGAL.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
oo_solver/_native.cp313-win_amd64.pyd,sha256=DLtwcm6R8Bql0BvzDTQWLSjGJyC_u1q67-gLlP8MgqE,17570304
|
|
2
|
+
oo_solver/__init__.py,sha256=Wk160YElnaGFJyHoG-hjc-cyLC0QWygfVGo1RLL_s5M,6486
|
|
3
|
+
oo_solver/licenses/winpthreads/COPYING,sha256=YyY2FM3Sny-Ty6hemS8EGzH5_HtAM2kvMSaUiaihsXc,2883
|
|
4
|
+
oo_solver-0.2.0.dist-info/DELVEWHEEL,sha256=PMhzm4qUbz5foE_7FzDYVFEHGlmCgBXfzvyyaYzpq9c,448
|
|
5
|
+
oo_solver-0.2.0.dist-info/METADATA,sha256=KC6uaLv-rxZ_xqnrrgSYpLi3dPjHWpkvd4eifB5CJ4Y,10117
|
|
6
|
+
oo_solver-0.2.0.dist-info/RECORD,,
|
|
7
|
+
oo_solver-0.2.0.dist-info/WHEEL,sha256=bzccfTXe5NE7eB86OiS4hIwvwnRsRQgKw2c3BU4To6A,105
|
|
8
|
+
oo_solver-0.2.0.dist-info/licenses/LICENSE,sha256=TLcOCXb3iMeXWoVJ9WXh9tC6N0aQjOqAQttsIn9SkWY,1064
|
|
9
|
+
oo_solver.libs/libgcc_s_seh-1-9cc8095a74e2dbee8ccfa8fadc9197aa.dll,sha256=otTqlAT2owmT9xt6vhhsgaHPZyo93dk2YGEv9Iv0UsE,150025
|
|
10
|
+
oo_solver.libs/libstdc++-6-5fa4767db89d85ce9896da5878ca6650.dll,sha256=nlrpSfTtTsbHA55pHBI8tZhe1mkNYnJ9frOssYXVRZQ,2659194
|
|
11
|
+
oo_solver.libs/libwinpthread-1-94a9a4e2fe27b4bc827a4b209e9deb4c.dll,sha256=lKmk4v4ntLyCeksgnp3rTMPcNLwCXfBrhJFE-dTFiPg,73308
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 jcdulas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|