-
Notifications
You must be signed in to change notification settings - Fork 184
Ainf using radiationIRF for all BEM software #938
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
Conversation
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 Thank you for re-submitting this PR after pulling in the latest versions of WEC-Sim into your branch. Unfortunately, the changes you have implemented for using the Fourier transform to generate the infinite frequency added mass only apply when Therefore, we cannot merge this PR until changes are made and checked across the other BEM import scripts. |
| ra_Ainf_temp = zeros(length(hydro.w),1); %Initialize the variable | ||
| [~,F] = size(hydro); %Last data set in | ||
| if strcmp(hydro(F).code,'WAMIT')==0 | ||
| if isfield(hydro,'Ainf') == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus So this change will not update the infinite frequency added mass value for readNEMOH since this is populated in the normalizeBEM function. We either need to add a check here to see if Ainf is empty or the code is not WAMIT to implement the fourier transform to estimate the infinite frequency added mass. Or remove a line in normalizeBEM to not pre-populate the infinite frequency added mass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nathanmtom
Sorry I didnt realize normalizeBEM was doing that. I think I like the approach where normalizeBEM is not prepopulating the infinite added mass. This would make future debugging easier.
I removed the redundant line 61 in normalizeBEM.m
|
@salhus Thanks for some updates to this PR. Unfortunately right now all of the tests appear to be failing so we will need to resolve that issue before we can finalize updating this PR. |
@nathanmtom |
* Calculation_of_Ainf_using_radiationIRF.m This PR follows #880 and #938 If the added-mass infinity was missing from the BEM run, radiationIRF function calculates the Added-mass at infinity. However, this only happens for non-WAMIT BEM codes. This PR generates the added-mass at infinity, if it is missing from the BEM run regardless of the BEM code. * check_normalizeBEM * check_for_modified_readWAMIT * only_change_radiationIRF
This PR follows #880 .
If the added-mass infinity was missing from the BEM run, radiationIRF function calculates the Added-mass at infinity.
However, this only happens for non-WAMIT BEM codes.
This PR generates the added-mass at infinity, if it is missing from the BEM run regardless of the BEM code.