Closed lcpt closed 5 months ago
Ana wrote some routines to compute wind action on cylindrical surfaces here.
Hi @lcpt. What about snow load? Is there any routine? Thanks.
Hi @ebrahimraeyat
Not much. There are some routines here about snow loads according to Swiss standards.
Thanks. As a python comment:
I think it is better to use dictionary instead of if else:
retval= 1.2 # pesimistic asumption
if(riskCategory==1):
retval= 0.8
elif(riskCategory==2):
retval= 1.0
elif(riskCategory==3):
retval= 1.1
elif(riskCategory==4):
retval= 1.2
else:
lmsg.error('risk category: '+str(riskCategory)+' unknown.')
return retval
convert to:
riskcategory_importance_factors = {
1: 0.8,
2: 1.0,
3: 1.1,
4: 1.2,
}
importance_factor =riskcategory_importance_factors.get(riskCategory, None)
if importance_factor is None:
lmsg.error('risk category: '+str(riskCategory)+' unknown.')
importance_factor = 1.2
return importance_factor
```python
Write utilities that make easier (not automatic) to generate wind ans snow loads.