Overview
Materials define the physical properties of structural elements. milcapy uses elastic material models characterized by modulus of elasticity, Poisson’s ratio, and specific weight.add_material()
Adds a material to the structural model.Parameters
Unique identifier for the material. This name is used when defining sections.
Modulus of elasticity (E) in force per area units (e.g., kN/m², MPa, psi).Must be greater than 0.
Poisson’s ratio (ν) - dimensionless material property.Must be in the range (-1, 0.5). Common values:
- Concrete: 0.15 - 0.20
- Steel: 0.27 - 0.30
- Aluminum: 0.33
Specific weight or mass density.Units depend on your force system:
- Force-based: N/m³, kN/m³, lb/ft³
- Mass-based: kg/m³, slug/ft³
Returns
Returns the created Material object with the following properties:
name: Material nameE: Modulus of elasticityv: Poisson’s ratiog: Specific weightG: Shear modulus (computed as E / (2(1 + ν)))alpha: Coefficient of thermal expansion (default: 1e-6)
Material Properties
Once created, materials have the following computed properties:Shear Modulus (G)
The shear modulus is automatically calculated from the elastic modulus and Poisson’s ratio:Examples
Common Structural Materials
Material Without Self-Weight
US Customary Units
Unit Consistency
SI Units Example
Common Unit Systems
| System | Force | Length | Pressure | Density |
|---|---|---|---|---|
| SI | N | m | Pa (N/m²) | kg/m³ |
| SI (kN) | kN | m | kPa (kN/m²) | kg/m³ |
| SI (MPa) | N | mm | MPa (N/mm²) | kg/mm³ |
| US Customary | lb | ft | psf (lb/ft²) | lb/ft³ |
| US (kip) | kip | in | ksi (kip/in²) | kip/in³ |
Validation
Theadd_material() function performs the following validations:
Modulus of Elasticity: Must be greater than 0
Poisson’s Ratio: Must be in range (-1, 0.5)
Specific Weight: Must be non-negative (≥ 0)
Unique Name: Material name must not already exist in the model
Error Examples
Material Types
milcapy uses generic elastic materials. The material behavior is linear elastic with the following constitutive relationship:3D Stress-Strain Relationship
For isotropic materials:- σ = normal stress
- ε = normal strain
- τ = shear stress
- γ = shear strain
- E = modulus of elasticity
- G = shear modulus = E / (2(1 + ν))
Self-Weight Application
Whenspecific_weight is specified, self-weight can be activated through load patterns:
Advanced: Thermal Properties
Material objects include thermal expansion coefficients (currently for future use):See Also
- Sections API - Define cross-sections using materials
- SystemModel - Main model class
- Load Patterns - Apply self-weight loads
