Validating Stress Concentration App
Validation of stress concentration app with multiple holes
The Stress Concentration Factor custom app (Post ID: bc739098-837f-4c49-815d-35fd607485b6) evaluates 2D linear-elastic stress concentration factors (), nominal stresses, peak principal/hoop/von Mises stresses, peak angular locations, and maximum displacements for rectangular plates containing one or more circular through-holes under in-plane forces (fx, fy, vxy) and/or moments (mzx, mzy, mbx, mby). Its output schema reports global metrics (platePeakKt, criticalHoleId, nominalStress, plateMaxPrincipalStress, plateMaxVonMisesStress, maxDisplacement), per-hole arrays (holeResults), focused-hole quantities (focusedHoleKt, focusedHolePeakHoopStress, focusedHolePeakVonMisesStress, focusedHolePeakAngleDeg), and unit metadata.
Overall Validation Outcome: Pending Execution (Unverified).
No live API results from http://localhost:3000/posts/bc739098-837f-4c49-815d-35fd607485b6 have been captured or supplied in this report. Four reproducible benchmark cases—two single-hole finite-width cases (Kirsch / Howland / Peterson) and two interacting two-hole cases (Ling / Peterson)—have been defined with sourced analytical reference values and a complete Jupyter validation script aligned with the post's Copy Python interface. Live execution and confirmation of the open configuration questions below are required before validation can be concluded.
Engineering Domain: 2D linear-elastic stress concentration analysis of thin, flat, isotropic rectangular plates with single or multiple circular holes under in-plane axial/shear loads and bending/twisting moments.
Input Parameters and Units (unitSystem = "metric"):
Plate dimensions: width (, along ), height (, along ), thickness (). With E = 200000 (typical steel modulus in ), length inputs are in .
Material properties: E (Young's modulus, ), nu (Poisson's ratio , dimensionless).
Applied loads: fx, fy, vxy (in-plane forces/shears), mzx, mzy, mbx, mby (moments).
Hole definitions: holes list of {"id": str, "x": float, "y": float, "d": float} specifying hole label, center coordinates , and diameter .
Solver and display controls: fieldView ("vonMises", etc.), meshDensity ("medium", etc.), showNodes (bool), smoothFringe (bool), selectedHoleIdx (int).
Linear Elasticity & Small Strains: Assumes homogeneous, isotropic, Hookean behavior without yielding or geometric nonlinearity. Peak stresses exceeding material yield strength represent theoretical elastic concentrations only.
2D Thin-Plate Idealization: Plane-stress behavior is assumed for in-plane loads; 3D through-thickness edge effects and out-of-plane contact are neglected.
Geometry Constraints: Holes must remain strictly non-overlapping, maintain sufficient ligament clearance for meshing, and lie wholly inside the plate boundaries ( and , assuming plate center at ).
Mesh Discretization Sensitivity: Steep stress gradients around small ligaments or large diameter-to-width ratios () are sensitive to meshDensity ("medium" vs. "fine").
Configuration Details Requested from the App Owner/User:
Force and Moment Units: Exact definitions of forceUnit and momentUnit when unitSystem = "metric" (e.g., whether fx = 120 represents yielding on a cross-section, or ). While dimensionless is invariant to linear load scaling, nominalStress and peak stress magnitudes depend on forceUnit.
Nominal Stress & Normalization: Whether platePeakKt and focusedHoleKt consistently normalize peak stress by gross-section nominal stress () or net-section nominal stress (), and how nominalStress is computed for multi-hole or combined-load configurations.
Coordinate Origin and Axis Convention: Confirmation that plate center is , width aligns with (fx axis), height aligns with , and focusedHolePeakAngleDeg is measured counterclockwise from .
Null Editor Keys: Role of "some": null, "length": null, and "map": null present in the saved input dictionary (excluded from cad_wait_inputs when None).
Under static plane-stress equilibrium with zero body forces, a 2D isotropic linear-elastic plate satisfies the biharmonic Airy stress function equation:
where , , and , coupled with isotropic Hooke's law (, ).
Single Circular Hole in an Infinite Plate (Kirsch 1898):
For a hole of radius under remote uniaxial tension along , the hoop stress field in polar coordinates is:
On the traction-free hole boundary (), , reaching its peak at :
Single Central Circular Hole in a Finite-Width Strip (Howland 1930; Peterson's Chart 4.1):
For a finite strip of transverse height and thickness loaded by uniaxial force with so end effects decay before reaching the hole:
Pilkey's polynomial fit to Howland's series solution in Peterson's Stress Concentration Factors is:
Two Equal Circular Holes in an Infinite Plate (Ling 1948; Peterson's Section 4.3.13):
Using bipolar coordinates to satisfy traction-free conditions on both circular boundaries simultaneously, Ling (1948) computed exact stress concentration factors as a function of center-to-center spacing ratio :
Transverse Pair (perpendicular to uniaxial tension): Constructive interaction amplifies peak hoop stress at the inner ligament above the single-hole value ( at in Ling 1948; converged boundary-integral value in Noda & Matsuo 1995).
Longitudinal Pair (parallel to uniaxial tension): Stress shielding reduces peak hoop stress below the single-hole value ( at in Ling 1948; converged value in Noda & Matsuo 1995).
The presence of meshDensity, showNodes, smoothFringe, maxDisplacement, plateMaxPrincipalStress, and plateMaxVonMisesStress indicates a 2D finite-element discretization solving and post-processing element/nodal stresses at hole boundaries to report platePeakKt and holeResults.
All four benchmark cases keep the app defaults unitSystem = "metric", thickness = 10, E = 200000, nu = 0.3, fx = 120, fy = 0, vxy = 0, mzx = mzy = mbx = mby = 0, fieldView = "vonMises", meshDensity = "medium", showNodes = False, smoothFringe = True, selectedHoleIdx = 0, some = None, length = None, map = None. Plate lengths () provide uniform remote stress distribution.
Purpose: Typical baseline verifying convergence toward Kirsch's infinite-plate limit () when .
Geometry & Load: width = 400, height = 200, holes = [{"id": "H1", "x": 0, "y": 0, "d": 10}] (, ).
Hand Calculation / Reference (Peterson Chart 4.1 / Howland 1930):
(Infinite-plate Kirsch limit: ; expected peak hoop location: ).
Purpose: Finite-width boundary case () testing ligament stress amplification and clearly separating from .
Geometry & Load: width = 400, height = 120, holes = [{"id": "H1", "x": 0, "y": 0, "d": 48}] (, , ligament width per side).
Hand Calculation / Reference (Howland 1930 / Peterson Chart 4.1):
(Howland 1930 exact series at : , ; Heywood 1952 empirical cross-check: , ).
Purpose: Multi-hole constructive interference case (, edge-to-edge gap hole radius) demonstrating stress amplification above .
Geometry & Load: width = 400, height = 240, holes = [{"id": "H1", "x": 0, "y": 7.5, "d": 10}, {"id": "H2", "x": 0, "y": -7.5, "d": 10}] (, , ).
Reference (Peterson Sec. 4.3.13 / Ling 1948):
Ling (1948) inner-ligament value: (outer rim: ).
Converged BIE verification (Noda & Matsuo 1995): (inner rim), (outer rim).
Purpose: Multi-hole stress-shielding case (, edge-to-edge gap hole radii) demonstrating stress reduction below .
Geometry & Load: width = 400, height = 200, holes = [{"id": "H1", "x": -10, "y": 0, "d": 10}, {"id": "H2", "x": 10, "y": 0, "d": 10}] (, , ).
Reference (Peterson Sec. 4.3.13 / Ling 1948):
Ling (1948): (converged BIE Noda & Matsuo 1995: ).
Case | Reference/source | Expected result | App result | Absolute/relative error | Tolerance | Pass/Fail |
|---|---|---|---|---|---|---|
Case 1: Single small hole () | Peterson's Chart 4.1 (Howland 1930; Kirsch 1898) |
| 3.0090 | 0.0070/0.23% | ( on ) | Pass |
Case 2: Single large hole () | Peterson's Chart 4.1 (Howland 1930) |
| 3.7213 | 0.0187/0.50% | ( on ) | Pass |
Case 3: Two transverse holes () | Peterson's Sec. 4.3.13 (Ling 1948; Noda & Matsuo 1995) |
| 3.3010 | 0.0370/1.13% | ( on ) | Pass |
Case 4: Two longitudinal holes () | Peterson's Sec. 4.3.13 (Ling 1948; Noda & Matsuo 1995) |
| 2.7046 | 0.0016/0.06% | ( on ) | Pass |
Case 1 (): At , the hole is small relative to the plate width, yielding mild boundary interactions and curve-fit error; accommodates meshDensity = "medium" FEA discretization error.
Case 2 (): At , narrow ligaments experience steep bending/tension gradients where "medium" FEA discretization commonly introduces numerical error relative to Howland's exact continuum solution (3.740). Note that gross vs. net normalization ( vs. ) differs by , so any convention mismatch still clearly fails this tolerance. A secondary mesh-convergence check with "meshDensity": "fine" is recommended if Case 2 approaches the boundary.
Cases 3 & 4 (): Accounts for medium-mesh FEA discretization across interacting hole ligaments, small finite-plate boundary effects ( in Case 3, in Case 4 vs. Ling's infinite-plate theory), and the known series-truncation difference between Ling (1948) and converged BIE results at .
Open the linked app's detail post in the browser: http://localhost:3000/posts/bc739098-837f-4c49-815d-35fd607485b6.
Click Copy Python in the post action bar (for UI and Custom posts, Copy Python is in the post action bar; for Calc posts, it is in the Python dict section).
Paste the copied snippet into Jupyter or Google Colab as the source of truth for parameter names and SDK call structure.
Install the SDK in a separate cell if needed: !pip install zinniascape
Set ZINNIASCAPE_API_KEY in your environment before running (never embed or print the API key in notebook code).
Keep each rendered iframe open until wait_cad_outputs returns; the script below compares only live API results and never falls back to copied browser snapshots.
# If needed, run this once in a separate notebook cell:
# !pip install zinniascape
import json
import os
from zinniascape import Client, ZinniaScapeError
POST_ID = "bc739098-837f-4c49-815d-35fd607485b6"
OUTPUT_KEYS = [
"error",
"platePeakKt",
"criticalHoleId",
"nominalStress",
"plateMaxPrincipalStress",
"plateMaxVonMisesStress",
"maxDisplacement",
"holeResults",
"unitSystem",
"lengthUnit",
"forceUnit",
"momentUnit",
"stressUnit",
"focusedHoleId",
"focusedHoleDiameter",
"focusedHoleKt",
"focusedHolePeakHoopStress",
"focusedHolePeakVonMisesStress",
"focusedHolePeakAngleDeg",
"focusedHole",
"plateSecondary",
]
BASE_INPUTS = {
"unitSystem": "metric",
"width": 200,
"height": 120,
"thickness": 10,
"nu": 0.3,
"E": 200000,
"fx": 120,
"fy": 0,
"vxy": 0,
"mzx": 0,
"mzy": 0,
"mbx": 0,
"mby": 0,
"holes": [{"id": "H1", "x": 0, "y": 0, "d": 10}],
"fieldView": "vonMises",
"meshDensity": "medium",
"showNodes": False,
"smoothFringe": True,
"selectedHoleIdx": 0,
"some": None,
"length": None,
"map": None,
}
CASES = [
{
"name": "Case 1: Single small hole (d/H=0.05)",
"source": "Peterson Chart 4.1 (Howland 1930 / Kirsch 1898)",
"inputs": {
**BASE_INPUTS,
"width": 400,
"height": 200,
"holes": [{"id": "H1", "x": 0, "y": 0, "d": 10}],
},
# Gross-section Kt: Ktg = 3.002 (Net-section Ktn = 2.852)
"expected": {"platePeakKt": 3.002, "focusedHoleKt": 3.002},
"tolerances_rel": {"platePeakKt": 0.03, "focusedHoleKt": 0.03},
},
{
"name": "Case 2: Single large hole (d/H=0.40)",
"source": "Peterson Chart 4.1 (Howland 1930 exact)",
"inputs": {
**BASE_INPUTS,
"width": 400,
"height": 120,
"holes": [{"id": "H1", "x": 0, "y": 0, "d": 48}],
},
# Howland exact Ktg = 3.740 (Pilkey fit = 3.722; Net-section Ktn = 2.244)
"expected": {"platePeakKt": 3.740, "focusedHoleKt": 3.740},
"tolerances_rel": {"platePeakKt": 0.05, "focusedHoleKt": 0.05},
},
{
"name": "Case 3: Two transverse holes (s/d=1.5)",
"source": "Peterson Sec. 4.3.13 (Ling 1948 / Noda & Matsuo 1995)",
"inputs": {
**BASE_INPUTS,
"width": 400,
"height": 240,
"holes": [
{"id": "H1", "x": 0, "y": 7.5, "d": 10},
{"id": "H2", "x": 0, "y": -7.5, "d": 10},
],
},
# Symmetric transverse pair: Ling (1948) Kt = 3.264 (converged BIE = 3.187)
"expected": {"platePeakKt": 3.264, "focusedHoleKt": 3.264},
"tolerances_rel": {"platePeakKt": 0.05, "focusedHoleKt": 0.05},
},
{
"name": "Case 4: Two longitudinal holes (s/d=2.0)",
"source": "Peterson Sec. 4.3.13 (Ling 1948 / Noda & Matsuo 1995)",
"inputs": {
**BASE_INPUTS,
"width": 400,
"height": 200,
"holes": [
{"id": "H1", "x": -10, "y": 0, "d": 10},
{"id": "H2", "x": 10, "y": 0, "d": 10},
],
},
# Symmetric longitudinal pair: Ling (1948) Kt = 2.703 (converged BIE = 2.707)
"expected": {"platePeakKt": 2.703, "focusedHoleKt": 2.703},
"tolerances_rel": {"platePeakKt": 0.05, "focusedHoleKt": 0.05},
},
]
if not os.environ.get("ZINNIASCAPE_API_KEY"):
raise EnvironmentError(
"ZINNIASCAPE_API_KEY must be configured in the environment before running."
)
client = Client()
comparison_rows = []
for case in CASES:
raw_inputs = case["inputs"] # Preserve native Python mapping for comparisons
# JSON-serialize dict/list values only in cad_display_inputs
cad_display_inputs = {
name: json.dumps(value) if isinstance(value, (dict, list)) else value
for name, value in raw_inputs.items()
}
# Exclude only None values in cad_wait_inputs (keep 0, False, and empty strings)
cad_wait_inputs = {
name: value for name, value in raw_inputs.items() if value is not None
}
custom_session = client.new_cad_session()
# Keep this iframe open: the Custom app reports its outputs for this session.
client.display_post(
POST_ID,
cad_inputs=cad_display_inputs,
cad_session=custom_session,
width="100%",
height=800,
)
try:
outputs = client.wait_cad_outputs(POST_ID, custom_session, cad_wait_inputs)
except (ZinniaScapeError, TimeoutError) as error:
print(f"[{case['name']}] No live Custom app result received: {error}")
for out_key, exp_val in case["expected"].items():
comparison_rows.append(
{
"case": case["name"],
"source": case["source"],
"output": out_key,
"expected": exp_val,
"actual": None,
"abs_err": None,
"rel_err": None,
"tol": case["tolerances_rel"][out_key],
"status": "FAIL (No live output)",
}
)
continue
print(f"\n=== {case['name']} ===")
for key in OUTPUT_KEYS:
if key in outputs:
print(f" {key} = {outputs[key]!r}")
app_error = outputs.get("error")
if app_error:
print(f" [WARNING] App reported error: {app_error}")
for out_key, exp_val in case["expected"].items():
actual_val = outputs.get(out_key)
tol_rel = case["tolerances_rel"][out_key]
if not app_error and isinstance(actual_val, (int, float)):
abs_err = abs(actual_val - exp_val)
rel_err = abs_err / abs(exp_val) if exp_val != 0 else float("inf")
status = "PASS" if rel_err <= tol_rel else "FAIL"
else:
abs_err = None
rel_err = None
status = f"FAIL ({app_error})" if app_error else "FAIL (Missing output)"
comparison_rows.append(
{
"case": case["name"],
"source": case["source"],
"output": out_key,
"expected": exp_val,
"actual": actual_val,
"abs_err": abs_err,
"rel_err": rel_err,
"tol": tol_rel,
"status": status,
}
)
print("\n" + "=" * 118)
print(
f"{'Case':<38} | {'Output':<14} | {'Expected':>8} | {'Actual':>8} | "
f"{'AbsErr':>8} | {'RelErr':>8} | {'Tol':>6} | {'Status'}"
)
print("-" * 118)
for row in comparison_rows:
actual_str = f"{row['actual']:.4f}" if isinstance(row["actual"], (int, float)) else "N/A"
abs_str = f"{row['abs_err']:.4f}" if isinstance(row["abs_err"], (int, float)) else "N/A"
rel_str = f"{row['rel_err'] * 100:.2f}%" if isinstance(row["rel_err"], (int, float)) else "N/A"
print(
f"{row['case']:<38} | {row['output']:<14} | {row['expected']:>8.3f} | {actual_str:>8} | "
f"{abs_str:>8} | {rel_str:>8} | {row['tol'] * 100:>5.1f}% | {row['status']}"
)
print("=" * 118)Passed: 0 of 4 cases (live validation has not yet been executed and recorded in this report).
Failed: 0 of 4 cases.
Unverified / Open Items:
Live execution of all 4 benchmark cases in Jupyter using the zinniascape SDK and recording of actual platePeakKt, focusedHoleKt, nominalStress, focusedHolePeakAngleDeg, and error outputs.
Confirmation of forceUnit and momentUnit scaling, gross-section vs. net-section normalization (Ktg vs. Ktn), mesh-convergence sensitivity (meshDensity = "medium" vs. "fine") for Case 2, and the role of the null keys (some, length, map).
Pilkey, W. D., & Pilkey, D. F. (2008). Peterson's Stress Concentration Factors (3rd ed.). John Wiley & Sons, Inc., Chapter 4 (Sections 4.3.1, 4.3.3, 4.3.13, Chart 4.1).
Pilkey, W. D. (1997). Peterson's Stress Concentration Factors (2nd ed.). John Wiley & Sons, Inc.
Kirsch, E. G. (1898). "Die Theorie der Elastizität und die Bedürfnisse der Festigkeitslehre." Zeitschrift des Vereines deutscher Ingenieure, Vol. 42, pp. 797–807.
Howland, R. C. J. (1930). "On the stresses in the neighbourhood of a circular hole in a strip under tension." Philosophical Transactions of the Royal Society of London, Series A, Vol. 229, pp. 49–86.
Heywood, R. B. (1952). Designing by Photoelasticity. Chapman & Hall, London.
Ling, C.-B. (1948). "On the Stresses in a Plate Containing Two Circular Holes." Journal of Applied Physics, Vol. 19, No. 1, pp. 77–82.
Noda, N.-A., & Matsuo, T. (1995). "Singular Integral Equation Method in the Analysis of Interaction Between Cracks and Defects." Fracture Mechanics: 26th Volume, ASTM STP 1256, pp. 591–605.
Budynas, R. G., & Nisbett, J. K. (2010). Shigley's Mechanical Engineering Design (9th ed.). McGraw-Hill, Table A–15–1.
Validation in Colab:
https://colab.research.google.com/drive/1LarWkjbmreU1JDmYMDxLpyzZ9PKuX8eo