No project description provided
Project description
powerconf
Powerful configuration tools for numerical simulation.
powerconf
allows you to write configuration files for things like physics simulations
with support for variable interpolation and expression evaluation. Consider a simulation
will solve some partial differential equation on a 2-dimensional Cartesian grid. Perhaps
the simulation itself requires us to set the min and max range and the number of points
to use along each axis. A simple YAML configuration for the simulation might look something
like this
grid:
x:
min: 0 cm
max: 1.5 cm
N: 151
y:
min: 0 cm
max: 1.0 cm
N: 101
This is fine, but it might be useful to specify the resolution to use instead of the number of points.
With powerconf
, we can write a configuration file that looks like this
grid:
resolution: 1 um
x:
min: 0 cm
max: 1.5 cm
N: $( (${max} - ${min})/${../resolution} + 1)
y:
min: 0 cm
max: 1.0 cm
N: $( (${max} - ${min})/${../resolution} + 1)
In this example, we give a resolution to use for both x and y directions and then calculate the number of points to use with an expression.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file powerconf-0.1.0.tar.gz
.
File metadata
- Download URL: powerconf-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209463320d3e6467985b28b7bc3f1b6397f58c738453e7d6e92e7f8dd5e35022 |
|
MD5 | 412cdbedc6af42c356b2c63a2d42f07d |
|
BLAKE2b-256 | 4c41a8d3b52520d54bad594d96aeb4c931a2243255614f3765a644cc150af9a1 |
File details
Details for the file powerconf-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: powerconf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb250061a35cb98c2557ba30f122e549d4d388672618d65c5b45b78178eb00f |
|
MD5 | 3e0a6225d3592e95b37305951e4f8f9d |
|
BLAKE2b-256 | 6e66990d436ff58f9c38ee158b7e77272afdc1a0e7417d42fd60a34e70bb7184 |