Skip to main content

SolMuseum

This library encapsulates the common simulation models for Solverz-based simulation modelling. It is just required that one inputs the model parameters and then the simulation model instances are initialized without having to derive them symbolically and jit-compile the case-specified numerical codes, which saves the computation overhead.

All the models that have been implemented can be found in the docs with mathematical derivations.

Installation

SolMuseum requires python>=3.10, and can be installed locally with

pip install SolMuseum

Usage Example

For example, we want to perform the finite difference of the heat pipe with the Yao's scheme. The illustrative code We can just import the heat_pipe class from SolMuseum.pde, input the parameters and set the method to be 'yao'. The finite difference equations are automatically derived and added to the Model instance. snippet is

import numpy as np
from Solverz import Var, Param, Model
from SolMuseum.pde import heat_pipe

# modelling
L = 9250
dx = 370
M = int(L / dx)
Tinitial = np.zeros(M + 1)
lam = 1 / 0.35
Cp = 4182
Ta = -10
D = 1.4
S = np.pi * (D / 2) ** 2
rho = 960
Tamb = -10

for i in range(0, len(Tinitial)):
    fai = np.exp(-lam * i * dx / (Cp * np.abs(2543.5)))
    Tinitial[i] = 90.1724637976347 * fai + Ta * (1 - fai)

m = Model()
m.T = Var('T', Tinitial)
m.m = Param('m', 10)
m.lam = Param('lam', lam)
m.rho = Param('rho', rho)
m.S = Param('S', S)
m.Tamb = Param('Tamb', Tamb)
m.Cp = Param('Cp', Cp)
m.dt = Param('dt', 180)
m.__dict__.update(heat_pipe(m.T,
                            m.m,
                            m.lam,
                            m.rho,
                            m.Cp,
                            m.S,
                            m.Tamb,
                            dx,
                            m.dt,
                            M,
                            '1',
                            method='yao'))

For reproducible codes of each model, please refer to the test folders, which can serve as the detailed tutorials.

Release files for SolMuseum 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SolMuseum 0.3.2
File Size Uploaded
solmuseum-0.3.2.tar.gz 3.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for SolMuseum 0.3.2
File Interpreter ABI Platform
solmuseum-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size:7.2 MB

Release files / solmuseum-0.3.2.tar.gz

Download URL solmuseum-0.3.2.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
894effcaab325b645b677a580de30a2b0471971003150e1c40833f7fcc8f6dba
BLAKE2b-256 checksum
How to use checksums
40f737efc49e7be2bbd64f8903b3d14b1a850974f6b49abd253f9e665f2f87c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / solmuseum-0.3.2-py3-none-any.whl

Download URL solmuseum-0.3.2-py3-none-any.whl
Size 3.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d648673d78a1f998e952958844aac9094ceeb444bba0fec435fcc492e60bd1e3
BLAKE2b-256 checksum
How to use checksums
3e3cc2ff8855f731763aee205c285c84424e22239a408c9ca7a3ff6748d18202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page