mnpbem-bem 0.1.0__tar.gz
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.
- mnpbem_bem-0.1.0/MANIFEST.in +6 -0
- mnpbem_bem-0.1.0/PKG-INFO +65 -0
- mnpbem_bem-0.1.0/README.md +47 -0
- mnpbem_bem-0.1.0/pyproject.toml +37 -0
- mnpbem_bem-0.1.0/setup.cfg +4 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem/__init__.py +22 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem/solver.py +18 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem.egg-info/PKG-INFO +65 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem.egg-info/SOURCES.txt +10 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem.egg-info/dependency_links.txt +1 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem.egg-info/requires.txt +1 -0
- mnpbem_bem-0.1.0/src/mnpbem_bem.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mnpbem-bem
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Core BEM namespace package and solver-facing compatibility helpers.
|
|
5
|
+
Author-email: GALIH RIDHO UTOMO <g4lihru@students.unnes.ac.id>
|
|
6
|
+
License-Expression: GPL-2.0-only
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/mnpbem-bem/
|
|
8
|
+
Project-URL: Repository, https://github.com/galihru/mnpbem/tree/main/mnpbem-bem
|
|
9
|
+
Project-URL: Source, https://github.com/galihru/mnpbem
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
|
|
19
|
+
# mnpbem-bem
|
|
20
|
+
|
|
21
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
22
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
23
|
+
|
|
24
|
+
`mnpbem-bem` implements a minimal linear-response solve interface for complex frequency-domain systems.
|
|
25
|
+
Release metadata is generated from this README to keep publication notes aligned with the implemented solver model.
|
|
26
|
+
|
|
27
|
+
## Implemented Formulation
|
|
28
|
+
The solver computes:
|
|
29
|
+
|
|
30
|
+
$$
|
|
31
|
+
\mathbf{A}\mathbf{x}=\mathbf{b}
|
|
32
|
+
$$
|
|
33
|
+
|
|
34
|
+
using complex-valued linear algebra (`numpy.linalg.solve`).
|
|
35
|
+
|
|
36
|
+
## Implementation
|
|
37
|
+
- Solver: `src/mnpbem_bem/solver.py`
|
|
38
|
+
|
|
39
|
+
## Dependencies
|
|
40
|
+
- `numpy>=1.24`
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
PyPI publication for `mnpbem-bem` is pending first release.
|
|
44
|
+
|
|
45
|
+
Track publication status:
|
|
46
|
+
- https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml
|
|
47
|
+
|
|
48
|
+
Install from repository source:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install git+https://github.com/galihru/mnpbem.git#subdirectory=mnpbem-bem
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Example
|
|
55
|
+
Runnable example:
|
|
56
|
+
- `examples/basic_usage.py`
|
|
57
|
+
|
|
58
|
+
Run:
|
|
59
|
+
```bash
|
|
60
|
+
python examples/basic_usage.py
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Author
|
|
64
|
+
- GALIH RIDHO UTOMO
|
|
65
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# mnpbem-bem
|
|
2
|
+
|
|
3
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
4
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
5
|
+
|
|
6
|
+
`mnpbem-bem` implements a minimal linear-response solve interface for complex frequency-domain systems.
|
|
7
|
+
Release metadata is generated from this README to keep publication notes aligned with the implemented solver model.
|
|
8
|
+
|
|
9
|
+
## Implemented Formulation
|
|
10
|
+
The solver computes:
|
|
11
|
+
|
|
12
|
+
$$
|
|
13
|
+
\mathbf{A}\mathbf{x}=\mathbf{b}
|
|
14
|
+
$$
|
|
15
|
+
|
|
16
|
+
using complex-valued linear algebra (`numpy.linalg.solve`).
|
|
17
|
+
|
|
18
|
+
## Implementation
|
|
19
|
+
- Solver: `src/mnpbem_bem/solver.py`
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
- `numpy>=1.24`
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
PyPI publication for `mnpbem-bem` is pending first release.
|
|
26
|
+
|
|
27
|
+
Track publication status:
|
|
28
|
+
- https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml
|
|
29
|
+
|
|
30
|
+
Install from repository source:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install git+https://github.com/galihru/mnpbem.git#subdirectory=mnpbem-bem
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Example
|
|
37
|
+
Runnable example:
|
|
38
|
+
- `examples/basic_usage.py`
|
|
39
|
+
|
|
40
|
+
Run:
|
|
41
|
+
```bash
|
|
42
|
+
python examples/basic_usage.py
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Author
|
|
46
|
+
- GALIH RIDHO UTOMO
|
|
47
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mnpbem-bem"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Core BEM namespace package and solver-facing compatibility helpers."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "GALIH RIDHO UTOMO", email = "g4lihru@students.unnes.ac.id" }
|
|
13
|
+
]
|
|
14
|
+
license = "GPL-2.0-only"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Science/Research",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Physics"
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"numpy>=1.24",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://pypi.org/project/mnpbem-bem/"
|
|
28
|
+
Repository = "https://github.com/galihru/mnpbem/tree/main/mnpbem-bem"
|
|
29
|
+
Source = "https://github.com/galihru/mnpbem"
|
|
30
|
+
[tool.setuptools]
|
|
31
|
+
package-dir = {"" = "src"}
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["src"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Core BEM namespace package and solver-facing compatibility helpers."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
5
|
+
|
|
6
|
+
from .solver import LinearResponseSolver
|
|
7
|
+
|
|
8
|
+
__all__ = ["LinearResponseSolver", "__version__", "module_status"]
|
|
9
|
+
|
|
10
|
+
try:
|
|
11
|
+
__version__ = version("mnpbem-bem")
|
|
12
|
+
except PackageNotFoundError:
|
|
13
|
+
__version__ = "0.0.0"
|
|
14
|
+
|
|
15
|
+
def module_status() -> str:
|
|
16
|
+
return "alpha"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Minimal linear response solver protocol for BEM-style operators."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass
|
|
10
|
+
class LinearResponseSolver:
|
|
11
|
+
"""Solve A x = b for frequency-domain response."""
|
|
12
|
+
|
|
13
|
+
matrix: np.ndarray
|
|
14
|
+
|
|
15
|
+
def solve(self, rhs: np.ndarray) -> np.ndarray:
|
|
16
|
+
a = np.asarray(self.matrix, dtype=complex)
|
|
17
|
+
b = np.asarray(rhs, dtype=complex)
|
|
18
|
+
return np.linalg.solve(a, b)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mnpbem-bem
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Core BEM namespace package and solver-facing compatibility helpers.
|
|
5
|
+
Author-email: GALIH RIDHO UTOMO <g4lihru@students.unnes.ac.id>
|
|
6
|
+
License-Expression: GPL-2.0-only
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/mnpbem-bem/
|
|
8
|
+
Project-URL: Repository, https://github.com/galihru/mnpbem/tree/main/mnpbem-bem
|
|
9
|
+
Project-URL: Source, https://github.com/galihru/mnpbem
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: numpy>=1.24
|
|
18
|
+
|
|
19
|
+
# mnpbem-bem
|
|
20
|
+
|
|
21
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
22
|
+
[](https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml)
|
|
23
|
+
|
|
24
|
+
`mnpbem-bem` implements a minimal linear-response solve interface for complex frequency-domain systems.
|
|
25
|
+
Release metadata is generated from this README to keep publication notes aligned with the implemented solver model.
|
|
26
|
+
|
|
27
|
+
## Implemented Formulation
|
|
28
|
+
The solver computes:
|
|
29
|
+
|
|
30
|
+
$$
|
|
31
|
+
\mathbf{A}\mathbf{x}=\mathbf{b}
|
|
32
|
+
$$
|
|
33
|
+
|
|
34
|
+
using complex-valued linear algebra (`numpy.linalg.solve`).
|
|
35
|
+
|
|
36
|
+
## Implementation
|
|
37
|
+
- Solver: `src/mnpbem_bem/solver.py`
|
|
38
|
+
|
|
39
|
+
## Dependencies
|
|
40
|
+
- `numpy>=1.24`
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
PyPI publication for `mnpbem-bem` is pending first release.
|
|
44
|
+
|
|
45
|
+
Track publication status:
|
|
46
|
+
- https://github.com/galihru/mnpbem/actions/workflows/mnpbembem.yml
|
|
47
|
+
|
|
48
|
+
Install from repository source:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install git+https://github.com/galihru/mnpbem.git#subdirectory=mnpbem-bem
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Example
|
|
55
|
+
Runnable example:
|
|
56
|
+
- `examples/basic_usage.py`
|
|
57
|
+
|
|
58
|
+
Run:
|
|
59
|
+
```bash
|
|
60
|
+
python examples/basic_usage.py
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Author
|
|
64
|
+
- GALIH RIDHO UTOMO
|
|
65
|
+
- g4lihru@students.unnes.ac.id
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/mnpbem_bem/__init__.py
|
|
5
|
+
src/mnpbem_bem/solver.py
|
|
6
|
+
src/mnpbem_bem.egg-info/PKG-INFO
|
|
7
|
+
src/mnpbem_bem.egg-info/SOURCES.txt
|
|
8
|
+
src/mnpbem_bem.egg-info/dependency_links.txt
|
|
9
|
+
src/mnpbem_bem.egg-info/requires.txt
|
|
10
|
+
src/mnpbem_bem.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
numpy>=1.24
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mnpbem_bem
|