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

Simulation settings check - Unrecognised settings raise Error #148

Merged
merged 32 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c55df31
Raise exception when setting not recognised
ngoiz Apr 21, 2021
156c731
fix output_folder in restart cases
ArturoMS13 Apr 21, 2021
0dd32ae
Filter settings for linuvlm.Dynamic()
ngoiz Apr 21, 2021
2b8df4d
Unrecognised settings now raise list of Exception
ngoiz Apr 21, 2021
84be3f1
Remove deprecated settings
ngoiz Apr 21, 2021
92123ce
Remove deprecated settings
ngoiz Apr 21, 2021
0b28f39
minor fixes examples wt (WIP)
ArturoMS13 Apr 21, 2021
77f4616
fix wt test route
ArturoMS13 Apr 21, 2021
ed5f755
Update Goland flutter tutorial
ngoiz Apr 21, 2021
1d5bb4d
Update Horten tutorial
ngoiz Apr 21, 2021
e05ff10
Update Horten tutorial
ngoiz Apr 21, 2021
a0956b2
Gust settings now specified only through gust_parameters
ngoiz Apr 21, 2021
6f5770f
Update simple HALE case
ngoiz Apr 21, 2021
bd246c5
Remove Horten from cases (same info in Jupyter tutorial)
ngoiz Apr 21, 2021
db9c0f2
Update X-HALE case
ngoiz Apr 21, 2021
961bf4b
Fix typo in description
ngoiz Apr 21, 2021
7f7deca
Update control case
ngoiz Apr 21, 2021
cdf93f7
Update T-tail tutorial
ngoiz Apr 21, 2021
39a1fdc
update blade discretisation
ArturoMS13 Apr 24, 2021
bb7c4b4
matplotlib inline and remove values
ArturoMS13 Apr 24, 2021
4fd2c01
run wind turbine notebook
ArturoMS13 Apr 25, 2021
948ca71
update case wind turbine
ArturoMS13 Apr 28, 2021
c303106
update cantilever wing
ArturoMS13 Apr 28, 2021
09ecc04
hide output pip
ArturoMS13 Apr 28, 2021
9bd1d63
update last solvers with instance attributes
ArturoMS13 May 5, 2021
df08f28
classification generators
ArturoMS13 May 5, 2021
2561520
minor changes git installation instructions
ArturoMS13 May 5, 2021
2990f75
delete create snapshot
ArturoMS13 May 6, 2021
b783441
Update Mac environment
ngoiz May 10, 2021
dbbbf24
Update example cases
ngoiz May 10, 2021
1ff9634
refactor [exceptions]: avoid duplicate code
sduess May 12, 2021
817c6b7
Add note required files
ngoiz May 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
classification generators
  • Loading branch information
ArturoMS13 committed May 5, 2021
commit df08f287318e5e4465eea0590af6a44761264251
1 change: 1 addition & 0 deletions sharpy/generators/bumpvelocityfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class BumpVelocityField(generator_interface.BaseGenerator):

"""
generator_id = 'BumpVelocityField'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down
5 changes: 3 additions & 2 deletions sharpy/generators/dynamiccontrolsurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class DynamicControlSurface(generator_interface.BaseGenerator):
To call this generator, the ``generator_id = DynamicControlSurface`` key shall be used for the setting
`control_surface_deflection` in the ``AerogridLoader`` solver.

One instance of this generator will be created for each control surface, thus, a group of settings should be defined
One instance of this generator will be created for each control surface, thus, a group of settings should be defined
for each control surface (``cs0_settings``, ``cs1_settings`` ... in the example below).
All of these groups of settings should be collected as values in a dictionary which keys are the associated control surface number in string format.
All of these groups of settings should be collected as values in a dictionary which keys are the associated control surface number in string format.
This dictionary should be parsed to the variable
``control_surface_deflection_generator_settings`` in ``AerogridLoader``. This is shown better
in the example below:
Expand All @@ -44,6 +44,7 @@ class DynamicControlSurface(generator_interface.BaseGenerator):

"""
generator_id = 'DynamicControlSurface'
generator_classification = 'utils'

settings_types = dict()
settings_default = dict()
Expand Down
3 changes: 2 additions & 1 deletion sharpy/generators/floatingforces.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def compute_xf_zf(hf, vf, l, w, EA, cb):
if not cb == 0.:
xf += cb*w/2/EA*(-lb**2 + (lb - hf/cb/w)*np.maximum((lb - hf/cb/w), 0))
zf = hf/w*(root1 - 1) + vf**2/2/EA/w

return xf, zf


Expand Down Expand Up @@ -427,6 +427,7 @@ class FloatingForces(generator_interface.BaseGenerator):
[3] https://map-plus-plus.readthedocs.io/en/latest/theory.html (accessed on Octorber 14th, 2020)
"""
generator_id = 'FloatingForces'
generator_classification = 'runtime'

settings_types = dict()
settings_default = dict()
Expand Down
1 change: 1 addition & 0 deletions sharpy/generators/gridbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GridBox(generator_interface.BaseGenerator):

"""
generator_id = 'GridBox'
generator_classification = 'utils'

settings_types = dict()
settings_default = dict()
Expand Down
1 change: 1 addition & 0 deletions sharpy/generators/gustvelocityfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ class GustVelocityField(generator_interface.BaseGenerator):

"""
generator_id = 'GustVelocityField'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down
1 change: 1 addition & 0 deletions sharpy/generators/helicoidalwake.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class HelicoidalWake(generator_interface.BaseGenerator):
the shear parameters
"""
generator_id = 'HelicoidalWake'
generator_classification = 'wake'

settings_types = dict()
settings_default = dict()
Expand Down
1 change: 1 addition & 0 deletions sharpy/generators/modifystructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ModifyStructure(generator_interface.BaseGenerator):
This generator is called at the start of each time step in ``DynamicCoupled``.
"""
generator_id = 'ModifyStructure'
generator_classification = 'runtime'

settings_types = dict()
settings_default = dict()
Expand Down
2 changes: 1 addition & 1 deletion sharpy/generators/shearvelocityfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ShearVelocityField(generator_interface.BaseGenerator):

"""
generator_id = 'ShearVelocityField'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down Expand Up @@ -81,4 +82,3 @@ def generate(self, params, uext):
for j in range(zeta[i_surf].shape[2]):
h = np.dot(zeta[i_surf][:, i, j], self.shear_direction) + self.h_corr
uext[i_surf][:, i, j] += self.u_inf*self.u_inf_direction*(h/self.h_ref)**self.shear_exp

1 change: 1 addition & 0 deletions sharpy/generators/steadyvelocityfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SteadyVelocityField(generator_interface.BaseGenerator):

"""
generator_id = 'SteadyVelocityField'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down
1 change: 1 addition & 0 deletions sharpy/generators/straightwake.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class StraightWake(generator_interface.BaseGenerator):
direction ``u_inf_direction``
"""
generator_id = 'StraightWake'
generator_classification = 'wake'

settings_types = dict()
settings_default = dict()
Expand Down
4 changes: 1 addition & 3 deletions sharpy/generators/trajectorygenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class TrajectoryGenerator(generator_interface.BaseGenerator):
It is usually called from a ``Controller`` module.
"""
generator_id = 'TrajectoryGenerator'
generator_classification = 'utils'

settings_types = dict()
settings_default = dict()
Expand Down Expand Up @@ -246,6 +247,3 @@ def constant_acceleration_travel_time(s_e, s_dot_e):

def linear_acceleration_travel_time(s_e, s_dot_e):
return 3.0*s_e/s_dot_e



1 change: 1 addition & 0 deletions sharpy/generators/turbvelocityfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class TurbVelocityField(generator_interface.BaseGenerator):

"""
generator_id = 'TurbVelocityField'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down
2 changes: 1 addition & 1 deletion sharpy/generators/turbvelocityfieldbts.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class TurbVelocityFieldBts(generator_interface.BaseGenerator):

"""
generator_id = 'TurbVelocityFieldBts'
generator_classification = 'TurbVelocityFieldBts'
generator_classification = 'velocity-field'

settings_types = dict()
settings_default = dict()
Expand Down