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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solmuseum-0.3.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solmuseum-0.3.1-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file solmuseum-0.3.1.tar.gz.

File metadata

  • Download URL: solmuseum-0.3.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for solmuseum-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4fbd18ebae6c8eaeb88fbf5ed8ac12c8d61fd1358d88a26447c243465ea950a0
MD5 5060902dca0abaf5c10b0e6949dff92a
BLAKE2b-256 e8106905fdcf33a55fbf1b578be009f426c760a5f18320c915572ce1cc822afe

See more details on using hashes here.

Provenance

The following attestation bundles were made for solmuseum-0.3.1.tar.gz:

Publisher: ci-cd.yml on smallbunnies/SolMuseum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solmuseum-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: solmuseum-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for solmuseum-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8a867a033de8e327bd4c8cca2f3bd85077f2b17218ce82752d53ddfc8d21d7
MD5 88d1091b6b906d3130abe7501942cfe1
BLAKE2b-256 d8da3b37d6067b1a371643bafc76a7b337a1c037df6d0b249a75175d553c4aca

See more details on using hashes here.

Provenance

The following attestation bundles were made for solmuseum-0.3.1-py3-none-any.whl:

Publisher: ci-cd.yml on smallbunnies/SolMuseum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.2

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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