3pc-loads
3pc-loads is a Python library used to define and manage load cases for structural analysis, particularly for composite panels. It provides a Loads class to define in-plane loads (Nxx, Nyy, Nxy), bending moments (Mxx, Myy, Mxy), transverse pressures, point loads, and environmental differentials (temperature and moisture).
Installation
Use the package manager pip to install 3pc-loads. Since 3pc-loads is publicly available on PyPI, you can install it directly:
pip install 3pc-loads
API Reference
Loads Class
The primary component of this package is the Loads class, which holds load case definitions and environmental conditions.
from loads.loads import Loads
Parameters
When initializing Loads, the following parameters are available:
loadsID(str): Loadcase identifier (required).panelID(str): Panel identifier (required).Nxx,Nyy,Nxy(float): In-plane axial and shear loads (optional, default=0.0).Mxx,Myy,Mxy(float): Bending and twisting moments (optional, default=0.0).p0(float): Amplitude of pressure (optional, default=0.0).P(float): Amplitude of point load (optional, default=0.0).xCG,yCG(float): Center of gravity coordinates for distributed loads (optional, default=0.0).xLength,yLength(float): Lengths for distributed transverse loads (optional, default=0.0).loadsType(str): Type of load. Options include"inplane","sinusoidal pressure","uniform pressure","point load","partial pressure"(default="inplane").Qyz,Qxz(float): Out-of-plane shear loads (optional, default=0.0).deltaT(float): Temperature differential (optional, default=0.0).deltaC(float): Moisture differential (optional, default=0.0).Ntt,Ntx,Nxt,Mtt,Mxt,Mtx(float): Loads in cylindrical coordinates (optional, default=0.0).
Methods
Loads.fromDict(**kwargs)
Initializes a Loads instance using a dictionary of keyword arguments. This is ideal for loading configurations from JSON files or dictionaries.
Usage Examples
Basic Initialization
Below is an example of defining a basic in-plane load case.
from loads.loads import Loads
# Define an in-plane compression load
ld = Loads(
loadsID="LC1",
panelID="P123",
Nxx=-100.0,
Nyy=0.0,
Nxy=0.0
)
print(f"Load Case: {ld.loadsID} for Panel: {ld.panelID}")
print(f"Nxx: {ld.Nxx}")
Initializing from a Dictionary
You can load your loads directly from a dictionary.
load_dict = {
"loadsID": "LC2",
"panelID": "P456",
"p0": 0.5,
"loadsType": "uniform pressure"
}
ld_2 = Loads.fromDict(**load_dict)
print("Load Type:", ld_2.type)
Commands
The package provides a command-line interface entry point. After installing, you can run the main application using:
loads
(Currently, this serves as an entry point defined in loads.main:main)
Metadata
Release files for 3pc-loads 1.0.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 | |
|---|---|---|---|---|
| 3pc_loads-1.0.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 3pc_loads-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / 3pc_loads-1.0.0.tar.gz
| Download URL | 3pc_loads-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0eee8ded2472f97d4d25e6bef52409a706bd73dea87f5e41709c75779864928
|
|
BLAKE2b-256 checksum How to use checksums |
f693f22274c1d281c042188e0686fde9e6adc56f3debd12a6eeb30f0557f5fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / 3pc_loads-1.0.0-py3-none-any.whl
| Download URL | 3pc_loads-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47f68a9bb6e24d4cd8080081074c279f66b75ebfe04d1d2d3aab990dc2337ba9
|
|
BLAKE2b-256 checksum How to use checksums |
c48ba0d43e214b99024f18ac4060fb76be535dcf07ed06e4e50205f5ce509949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for 3pc-loads 1.0.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.