Skip to content

Instantly share code, notes, and snippets.

@connorferster
Last active March 5, 2022 18:11
Show Gist options
  • Save connorferster/b198bf43361b46dc9882ae701139ee30 to your computer and use it in GitHub Desktop.
Save connorferster/b198bf43361b46dc9882ae701139ee30 to your computer and use it in GitHub Desktop.
First kick at concreteproperties
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "2da2cd1c-bab4-4124-8225-5fd955469d20",
"metadata": {},
"outputs": [],
"source": [
"from concreteproperties import concrete_section as cs\n",
"from concreteproperties import material\n",
"from concreteproperties import post\n",
"from concreteproperties import stress_strain_profile as profile\n",
"from sectionproperties.pre.library import concrete_sections as cn\n",
"from sectionproperties.analysis.section import Section"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "14f4345a-ea47-4bf5-9313-fc105556d461",
"metadata": {},
"outputs": [],
"source": [
"conc_profile = profile.WhitneyStressBlock(1.0, 0.9, 35, 0.0035)\n",
"steel_profile = profile.SteelElasticPlastic(400, 200e3, 0.12)\n",
"conc = material.Concrete(\"35 MPa\", 24e3, 2.4, 35, 0.8, stress_strain_profile = conc_profile)\n",
"reinf = material.Steel(\"400 MPa\", 200e3, 400, 7.7, steel_profile)\n",
"conc_geom = cn.concrete_rectangular_section(300, 600, 20, 4, 12, 35, conc_mat = conc, steel_mat = reinf)\n",
"conc_geom.create_mesh([100] + [10]*4)\n",
"sec = Section(conc_geom)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "09d74627-2334-40eb-9648-1678399aed08",
"metadata": {},
"outputs": [],
"source": [
"conc_sec = cs.ConcreteSection(sec)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c47c24b9-1e0c-4f8b-843f-29f25d75590d",
"metadata": {},
"outputs": [],
"source": [
"conc_sec.moment_interaction_diagram(12)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ec08eb3e-1b8d-4c20-a159-9a76e9cdd1c6",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "concreteproperties",
"language": "python",
"name": "concreteproperties"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment