Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wind and snow load generation #20

Closed
lcpt opened this issue Feb 17, 2016 · 5 comments
Closed

Wind and snow load generation #20

lcpt opened this issue Feb 17, 2016 · 5 comments

Comments

@lcpt
Copy link
Collaborator

lcpt commented Feb 17, 2016

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

@lcpt
Copy link
Collaborator Author

lcpt commented Jul 19, 2020

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

@ebrahimraeyat
Copy link
Contributor

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

@lcpt
Copy link
Collaborator Author

lcpt commented Feb 14, 2021

Hi @ebrahimraeyat

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

@lcpt
Copy link
Collaborator Author

lcpt commented Jun 6, 2024

Some work has been done here and here.

@lcpt lcpt closed this as completed Jun 6, 2024
@ebrahimraeyat
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants