Skip to content

Conversation

@salhus
Copy link
Contributor

@salhus salhus commented Aug 30, 2022

Minor bug fixes,

  1. Modify readCapytaine.m to be able to extract body names in hydro using the input strings in capytaine in body#+body#... format,
  2. Modify readCapytaine.m indices to correctly extract hydrostatics coefficients,
  3. Modify normalizeBEM to have the normalization denominators to be in double format instead of int64. ensuring the denominator to be in double wouldn't affect other BEM reading code but will allow it to be used for normalization of capytaine generated files.

kmruehl and others added 13 commits May 20, 2022 11:16
adding dev and master build status to README
* Update tutorials to fix OSWEC inertia

* Update terminology.rst

* Update tutorials.rst

changed OSWEC Iyy and added note

Co-authored-by: Kelley Ruehl <kmruehl@sandia.gov>
…h | Add 2021b to MATLAB versions (#862)

* Split docs CI into test and build jobs

This PR splits the docs CI workflow into two independent jobs. The
first "test" job checks the current branch with any warnings
triggering a failure. The second jobs builds and deploys the
production docs, allowing any warnings to pass. This allows the
commit author to see any new issues they may be adding to the docs
while not stopping the docs being published.

* Try to get color output in log

* Remove redundant steps for branch test

* Fix duplicate targets using anonymous references

* Cancel previous runs if new commits are made

* Fix spelling mistake to test concurrency

* Limit concurrency to pull requests for the unit tests

This is to ensure all commits on the master and dev branches are
tested, which will be important if we are going to measure
coverage using an external service like codecov.

* Fix another spelling mistake

* Add R2021b to explicit MATLAB versions tested
* Moved simulationClass.outputDir to public.

* Replaced paths with fullfile paths in CompareBEMIO.m. The paths didd not work on Mac due to file separator.

* Update line 38 in reaadAQWA.m so it works on a Mac.

* change filesep in BEMIO examples, update readAQWA fileparts

* Update stopWecSim.m

Replaced hardcoded 'output' string with simu.outputDir.

* Removed clc and close all from initializeWecSim.

It should be up to the user to clear the command windows and close the figures.

Co-authored-by: Lermart96 <anders.brandt@oceanharvesting.com>
Co-authored-by: akeeste <akeeste@sandia.gov>
* Update stopWecSim.m

* Update initializeWecSim.m

* Update wecSimPCT.m
* update to v5.0 citation

* moving citation page to release notes

* adding some news articles

Co-authored-by: kmruehl <kmruehl@sandia.gov>
* fix cable implementation

* z-elv in nl hydro calc

* adding cable library
@salhus salhus requested a review from dav-og August 30, 2022 02:04
@salhus salhus changed the title fix_normalization_and_readCapytaine readCapytaine_bugFixes_for_bemio_not_reading_multibody_runs_hydrostatics_and_normalization Aug 30, 2022
@salhus salhus requested a review from kmruehl August 30, 2022 02:18
fileID = fopen(fullfile(meshdir,'Hydrostatics.dat'));
else
fileID = fopen([fullfile(meshdir,'Hydrostatics_'),num2str(m-1),'.dat']);
fileID = fopen([fullfile(meshdir,'Hydrostatics_'),num2str(m),'.dat']);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be left as m-1 to keep with existing convention of starting from KH_0.dat, Hydrostatics_0.dat, etc

fileID = fopen(fullfile(meshdir,'KH.dat'));
else
fileID = fopen([fullfile(meshdir,'KH_'),num2str(m-1),'.dat']);
fileID = fopen([fullfile(meshdir,'KH_'),num2str(m),'.dat']);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be left as m-1 to keep with existing convention of starting from KH_0.dat, Hydrostatics_0.dat, etc

@dav-og dav-og linked an issue Aug 31, 2022 that may be closed by this pull request
@kmruehl kmruehl added the BEM/BEMIO related to BEMIO or BEM hydro data label Sep 7, 2022
@salhus salhus marked this pull request as draft September 7, 2022 21:21
@salhus
Copy link
Contributor Author

salhus commented Sep 8, 2022

@dav-og
I changed the m index counter back to m-1.

@salhus
Copy link
Contributor Author

salhus commented Sep 8, 2022

I will be putting in this pull request again to avoid conflicts.

@salhus salhus closed this Sep 8, 2022
@salhus salhus deleted the readCapytaine-Bug-Fixes branch September 8, 2022 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEM/BEMIO related to BEMIO or BEM hydro data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Update Capytaine BEMIO examples to v1.5