xcfem / xc

finite element analysis package for civil engineering structures.
http://www.xcengineering.xyz/html_files/software.html
GNU General Public License v3.0
268 stars 54 forks source link

Wind and snow load generation #20

Closed lcpt closed 5 months ago

lcpt commented 8 years ago

Write utilities that make easier (not automatic) to generate wind ans snow loads.

lcpt commented 4 years ago

Ana wrote some routines to compute wind action on cylindrical surfaces here.

ebrahimraeyat commented 3 years ago

Hi @lcpt. What about snow load? Is there any routine? Thanks.

lcpt commented 3 years ago

Hi @ebrahimraeyat

Not much. There are some routines here about snow loads according to Swiss standards.

lcpt commented 5 months ago

Some work has been done here and here.

ebrahimraeyat commented 5 months ago

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