Observed since 20 Oct, 15:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3pc-loads
A 3pc Python library used to define and manage load cases for structural analysis.
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).
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
Loads ClassThe primary component of this package is the Loads class, which holds load case definitions and environmental conditions.
from loads.loads import Loads
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).Loads.fromDict(**kwargs)Initializes a Loads instance using a dictionary of keyword arguments. This is ideal for loading configurations from JSON files or dictionaries.
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}")
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)
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)
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
bdist_wheel · 4.99 KB · Python py3
sdist · 4.45 KB · Python source
Observed since 20 Oct, 15:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:ffab6029c40582f4cc94f2a2f23fffe52cb4f06072906537f60f181ef6da01b0