Skip to main content

Ansys CodeFest Companion Library

This package is a companion library to Ansys CodeFests. The challenges have varying storylines and contexts, however, they all have the same common framework. For example, to access the PyMAPDL structures challenges, execute the following code.

import ansys.codefest.mapdl as acf

# Challenge ids are *always* strings because some contain letters as well as numbers.
challenge = acf.Start.builtin_challenge('1a')
challenge.display_problem()

Then, once the specific challenge has been detailed, you can submit solution attempts using the following commands.

import ansys.codefest.mapdl as acf

# Challenge ids are *always* strings because some contain letters as well as numbers.
challenge = acf.Start.builtin_challenge('1a')
design = challenge.suggest_a_design()
bridge = challenge.build_bridge(design)
success, feedback, beams = bridge.assess_for_breaks()
print(f'Bridge costs ${challenge.calculate_design_cost(design)} dollarydoos')
bridge.plot()

The program will then test your attempt and provide feedback about what you did wrong (if anything). Finally, it will give a breakdown of all the elements you used and how close to the yield strength they came as percentages.

Metadata

Release files for ansys-codefest 0.2.0

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

Source distribution (sdist)

Source distribution for ansys-codefest 0.2.0
File Size Uploaded Provenance Actions
ansys_codefest-0.2.0.tar.gz 40.4 kB Without provenance Details for ansys_codefest-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ansys-codefest 0.2.0
File Interpreter ABI Platform Actions
ansys_codefest-0.2.0-py3-none-any.whl Python 3 none any Details for ansys_codefest-0.2.0-py3-none-any.whl

Total release size: 90.1 kB

Release files / ansys_codefest-0.2.0.tar.gz

Download URL ansys_codefest-0.2.0.tar.gz
Size 40.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6e869c7ceb03e39be1acf8bf19f0b1f71c8f7aed177b750f967e587dba50be16
BLAKE2b-256 checksum
How to use checksums
e911ea7ef9166a0e554210b8869414c4bfd26081cdef5f07b2c07c80625c1668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.9

Release files / ansys_codefest-0.2.0-py3-none-any.whl

Download URL ansys_codefest-0.2.0-py3-none-any.whl
Size 49.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ee57a7214353d0829d77fe9b80472ec821b5d8e9079021a0e96b2fb589613da
BLAKE2b-256 checksum
How to use checksums
f64e01c46348bb42912ca8094915d582ec80b1ce1178f1e83a0c9a701b9cdcb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.9

Security for ansys-codefest 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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