calibration of subloading surface model
from dataclasses import dataclass
from os import system
from h5py import File
import matplotlib.pyplot as plt
@dataclass
class Curve:
name: str
x: list[float]
y: list[float]
def execute(name: str, content: str):
with open("example.sp", "w") as f:
f.write(content)
system("suanpan -np -f example.sp")
with File("RESULT.h5") as f:
return Curve(name, f["dataset"][:, 0], f["dataset"][:, 1])
def plot(title: str, curves: list[Curve]):
for curve in curves:
plt.plot(curve.x, curve.y, label=curve.name)
plt.legend()
plt.tight_layout()
plt.grid()
plt.title(title)
plt.show()Smooth Transition

Isotropic Hardening

Kinematic Hardening

Ratcheting

Test Data


Caveats


Last updated