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

Rigid coupled solver #120

Merged
merged 16 commits into from
Feb 2, 2021
Merged

Rigid coupled solver #120

merged 16 commits into from
Feb 2, 2021

Conversation

ArturoMS13
Copy link
Contributor

This PR mainly includes a new interface for a rigid structural solver for free systems.

It also includes minor fixes to SHARPy 1.2 and the update to UVLM and xbeam libraries to master.

@ArturoMS13 ArturoMS13 requested a review from ngoiz February 1, 2021 14:47
Comment on lines -115 to -132

# Add these anyway - therefore if you add your own skip_attr you don't have to retype all of these
self.settings_default['skip_attr'].append(['fortran',
'airfoils',
'airfoil_db',
'settings_types',
'ct_dynamic_forces_list',
'ct_forces_list',
'ct_gamma_dot_list',
'ct_gamma_list',
'ct_gamma_star_list',
'ct_normals_list',
'ct_u_ext_list',
'ct_u_ext_star_list',
'ct_zeta_dot_list',
'ct_zeta_list',
'ct_zeta_star_list',
'dynamic_input'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, these are no longer necessary because when ClassesToSave in the save_timestep() method is used these are not included?

I assume that is the case given the usual remove_cpointers but just to make sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remove these lines of code because settings_default['skip_attr'] is already defined in the class attributes. These lines are just redundant.

I created the save_timestep method for clarity.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that if you give a list of attributes to skip as a setting, the settings_default are not used and all of those "rubbish" attributes are included.

So, actually, the original SaveData was incorrect, line 117 in the snippet above should be self.**settings**['skip_attr'].append([<all these attributes>]). That way, you can include your own values to settings['skip_attr'] and those ct_ attributes are included regardless.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. We should use "extend" instead of "append" to avoid nesting lists.
Thanks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh indeed it is extend rather than append. Thanks for spotting that!

@ngoiz ngoiz self-requested a review February 2, 2021 08:44
Copy link
Contributor

@ngoiz ngoiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great work as always, @ArturoMS13!

@codecov-io
Copy link

codecov-io commented Feb 2, 2021

Codecov Report

Merging #120 (6a0e9fc) into develop (70816e2) will decrease coverage by 0.10%.
The diff coverage is 43.85%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #120      +/-   ##
===========================================
- Coverage    63.08%   62.98%   -0.11%     
===========================================
  Files          122      123       +1     
  Lines        21278    21374      +96     
===========================================
+ Hits         13424    13463      +39     
- Misses        7854     7911      +57     
Impacted Files Coverage Δ
sharpy/structure/models/beamstructures.py 75.38% <ø> (+3.95%) ⬆️
sharpy/structure/utils/xbeamlib.py 51.28% <2.85%> (-3.92%) ⬇️
sharpy/solvers/rigiddynamiccoupledstep.py 53.44% <53.44%> (ø)
sharpy/postproc/savedata.py 69.56% <85.00%> (+5.51%) ⬆️
sharpy/postproc/writevariablestime.py 74.67% <100.00%> (-1.32%) ⬇️
sharpy/utils/h5utils.py 72.59% <0.00%> (-0.97%) ⬇️
sharpy/utils/algebra.py 67.63% <0.00%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70816e2...6a0e9fc. Read the comment docs.

@ArturoMS13 ArturoMS13 merged commit 012fa14 into develop Feb 2, 2021
@ngoiz ngoiz deleted the dev_rigid_coupled_solver branch May 13, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants