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

flapping device #170

Closed
wants to merge 38 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1e3759c
incomplete draft
ryancoe Sep 8, 2020
45b520f
Merge branch 'master' into flappingDevice
H0R5E Sep 24, 2020
85725d0
Add example with rectangular panels
H0R5E Sep 24, 2020
e6a8ba3
Add a dummy function structure for the gmsh version of makeMesh
H0R5E Sep 24, 2020
7ecadb7
Add depth correction and centre
H0R5E Sep 24, 2020
a3e7c16
Move depth correction to translate command
H0R5E Sep 24, 2020
6270fdd
Add Gmsh infrastructure
H0R5E Sep 25, 2020
99d142a
Finish Gmsh mesh generation and demo in Flapper_caseA
H0R5E Sep 25, 2020
3a26124
Rename geo files for opencascade versus traditional model
H0R5E Oct 5, 2020
bcc7085
Merge branch 'master' into flappingDevice
H0R5E Oct 12, 2020
32abd25
Make the first value of getRegularFrequencies be dw
H0R5E Oct 12, 2020
04d6750
Redesign NEMOH class makeMesh method input for greater control
H0R5E Oct 12, 2020
a590235
Extract results of forces in roll from NEMOH
H0R5E Oct 12, 2020
f7a96c0
Describe waterDepth option to NEMOH.getHydro
H0R5E Oct 12, 2020
1a30e10
Calculate power production using complex conjugate control
H0R5E Oct 13, 2020
057f552
Update documentation
H0R5E Oct 13, 2020
e59dd58
Remove unused template file
H0R5E Oct 13, 2020
51789a1
Minor update to docstring of makeMesh
H0R5E Oct 14, 2020
3db6d2b
Use moment of inertia rather than just mass.
H0R5E Oct 22, 2020
01af0e1
Simulate different depths and calculate I outside of simulateDevice
H0R5E Nov 4, 2020
2942eea
Merge branch 'master' into flappingDevice
H0R5E Nov 4, 2020
3f6dca5
Hack in some scaling to the "moment force"
H0R5E Nov 5, 2020
a85a394
Move application of scaling to designDevice
H0R5E Nov 16, 2020
f1885bb
Minor change
H0R5E Nov 16, 2020
b52f384
Add P and PS controllers and change variable names to angular convention
H0R5E Nov 26, 2020
e8af81e
Trigger build with gmsh
H0R5E Nov 26, 2020
3b8a133
Merge branch 'master' into flappingDevice
H0R5E Nov 26, 2020
06ba4c9
Merge remote-tracking branch 'public/master' into flappingDevice
H0R5E Nov 26, 2020
c26f1a0
Update travis file to download and install Gmsh
H0R5E Nov 26, 2020
1d1825e
Forgot the file extension
H0R5E Nov 26, 2020
214729b
Add installation instructions to README and try Travis again
H0R5E Nov 26, 2020
c7bcae2
Update installation instructions in docs
H0R5E Nov 27, 2020
0e8dc30
Remove unused geo file
H0R5E Nov 27, 2020
bc3de99
Make sure everything has license boilerplate
H0R5E Nov 27, 2020
2a7e78c
Add tests for Gmsh makeMesh and installExternal
H0R5E Dec 1, 2020
5d4442d
Merge branch 'master' into flappingDevice
H0R5E Dec 1, 2020
4b42066
Fix bug I added to installExternal and harden tests.
H0R5E Dec 1, 2020
2c330e8
Fix simulateDevice docstrings for constraints
H0R5E Dec 2, 2020
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
Move application of scaling to designDevice
H0R5E committed Nov 16, 2020
commit a85a3940ae4fa2def6aea292eab3564e4349ad66
3 changes: 1 addition & 2 deletions examples/Flapper/Flapper_caseA.m
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@

mass = hydro.Vo * hydro.rho;
I = mass / 12 * (4 * height ^ 2 + length ^ 2);
scaling = height / 2 / depth;

[performance, model] = simulateDevice(I, scaling, hydro, SS, 'CC');
[performance, model] = simulateDevice(I, hydro, SS, 'CC');
performance.summary()
3 changes: 3 additions & 0 deletions examples/Flapper/designDevice.m
Original file line number Diff line number Diff line change
@@ -54,6 +54,9 @@
"waterDepth", depth, ...
"waveDirection", 90);

Copy link
Member Author

Choose a reason for hiding this comment

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

At this point, we need to create a file that NEMOH can use. It looks like one of the MATLAB tools that comes with NEMOH (https://github.com/LHEEA/Nemoh/blob/master/matlab%20routines/Mesh.m) may be able to do this for us.

Copy link
Member

Choose a reason for hiding this comment

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

This is already done by the NEMOH class. What we need is a gmsh equivalent of the AxiMesh class.

scaling = height / 2 / depth;
hydro.ex = hydro.ex * scaling;

end


6 changes: 1 addition & 5 deletions examples/Flapper/simulateDevice.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
function [performance, dynModel] = simulateDevice(I, ...
scaling, ...
hydro, ...
seastate, ...
controlType, ...
@@ -8,7 +7,6 @@

arguments
I (1, 1) double
scaling
hydro (1,1) WecOptTool.Hydrodynamics
seastate (1,:) WecOptTool.SeaState
controlType (1,1) string
@@ -19,7 +17,6 @@
end

dynModel = getDynamicsModel(I, ...
scaling, ...
hydro, ...
seastate, ...
options.interpMethod);
@@ -36,7 +33,6 @@
end

function dynModel = getDynamicsModel(I, ...
scaling, ...
hydro, ...
SS, ...
interpMethod)
@@ -78,7 +74,7 @@
Zi = B + Bf + 1i * (w .* (I + A) - K ./ w);

% Excitation Forces
Hex = toVector(hydro.ex) * hydro.g * hydro.rho * scaling;
Hex = toVector(hydro.ex) * hydro.g * hydro.rho;
F0 = Hex .* eta_fd;

dynModel.I = I;