NuclearCraft Designer
Generates multiblock designs for NuclearCraft.
Installation
NuclearCraft Designer can be installed via pip using the following command:
pip install nuclearcraft-designer
Usage
Design the best rotor blade sequence of length 10 optimized for 400% expansion using a maximum of 1 SiC-SiC-CMC blade.
from nuclearcraft_designer.overhauled import turbine_rotor_blade
if __name__ == "__main__":
gen = turbine_rotor_blade.designer.RotorBladeSequenceDesigner().design_generator(
10,
4.0,
{
"sic_sic_cmc": 1
}
)
seq = []
for seq in gen:
pass
# Print the best sequence.
for blade in seq:
print(blade.name, end=" ")
print()
Design the best dynamo coil configuration with a side length of 3 and a shaft width of 1:
from nuclearcraft_designer.overhauled import turbine_dynamo_coil
if __name__ == "__main__":
gen = turbine_dynamo_coil.designer.DynamoCoilConfigurationDesigner().design_generator(
3,
1,
{
"connector": 0 # Enabling connectors can lead to invalid designs.
}
)
seq = []
for seq in gen:
pass
for y in range(seq.dims[0]):
for x in range(seq.dims[1]):
print(seq[y, x].name, end=" ")
print()
OR-Tools Powered Designers
Certain NuclearCraft Designer designers have OR-Tools powered alternatives. They are generally faster than the normal designers, but are less reliable and may have fewer features.
OR-Tools is not a required dependency. Use the following command to install it:
pip install ortools
The above usage examples can be done as follows (with missing features omitted):
from nuclearcraft_designer.overhauled import turbine_rotor_blade
if __name__ == "__main__":
status, sequence = turbine_rotor_blade.beta_designer.RotorBladeSequenceDesigner().design(
10,
4.0,
{
"sic_sic_cmc": 1
}
)
print(status)
for blade in sequence:
print(blade.name, end=" ")
print()
Note that the OR-Tools powered designer can design 7x7 turbines in a reasonable amount of time, while the normal designer can't do so for 5x5 turbines.
from nuclearcraft_designer.overhauled import turbine_dynamo_coil
if __name__ == "__main__":
status, configuration = turbine_dynamo_coil.beta_designer.DynamoCoilConfigurationDesigner().design(
7,
1,
{
"connector": 0 # Enabling connectors can lead to invalid designs.
}
)
print(status)
for y in range(configuration.dims[0]):
for x in range(configuration.dims[1]):
print(configuration[y, x].name, end=" ")
print()
Metadata
Release files for nuclearcraft-designer 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nuclearcraft_designer-0.4.0.tar.gz | 13.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nuclearcraft_designer-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / nuclearcraft_designer-0.4.0.tar.gz
| Download URL | nuclearcraft_designer-0.4.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8abb5f838906c9afffcd6c5ffd4dfdf4b9c2a39661d1ad095079cebe4c0b31c9
|
|
BLAKE2b-256 checksum How to use checksums |
ff0e2dd97b4bd976134b94da131a8589e231b7744b01057269a7de3b8e610f77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / nuclearcraft_designer-0.4.0-py3-none-any.whl
| Download URL | nuclearcraft_designer-0.4.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55dafa484eb937e2f9d0aae8f02dad55a9ec3a2f2099fa7a7ee4924b430f1d74
|
|
BLAKE2b-256 checksum How to use checksums |
c27157c3e686b8a69662f69a8a0fa40e1e0d29b352d079ae7a84adf67316134f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for nuclearcraft-designer 0.4.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.