Skip to content

Conversation

@dforbush2
Copy link
Contributor

this places all the needed WAMIT output files into the hydroData directory with bemio.m, or, as recommended in readMe, badBemioFix_fcn.m

Copy link
Collaborator

@kmruehl kmruehl left a comment

Choose a reason for hiding this comment

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

@dforbush2 this case isn't running for me. Can you please review and revise?

Error using wecSim (line 43)
Solver encountered an error while simulating model 'OWC_GBM' at time 2.71373531488104e-06
and cannot continue. Please check the model for errors.
Caused by:
    Error using wecSim (line 43)
    Nonlinear iteration is not converging with step size reduced to hmin (9.64112E-21) at time
    2.71374E-06.  Try reducing the minimum step size and/or relax the relative error
    tolerance.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file should be removed. @kmruehl and @akeeste attempted to remove it, and were unable to, so we'll need to overwrite it once merged.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file should be removed. @kmruehl and @akeeste attempted to remove it, and were unable to, so we'll need to overwrite it once merged.

% simu.solver = 'ode45'; % simu.solver = 'ode4' for fixed step & simu.solver = 'ode45' for variable step
simu.solver = 'ode23t'; % simu.solver = 'ode4' for fixed step & simu.solver = 'ode45' for variable step
simu.dt = 0.005; % Simulation time-step [s]
simu.cicEndTime = 15;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was unable to run this simulation. I attempted to run different solvers, different time-steps, but nothing worked. I got a convergence error each time.

body(1) = bodyClass('./hydroData/test17a.h5');
% body(1) = bodyClass('./hydroData/test17a.h5');
body(1) = bodyClass('./hydroData/test17a_clean.h5');
%Create the body(1) Variable, Set Location of Hydrodynamic Data File
Copy link
Collaborator

Choose a reason for hiding this comment

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

I also tried running both the original and cleaned h5 files, and got the same convergence error.

@kmruehl kmruehl assigned kmruehl and unassigned MShabara May 13, 2025
@kmruehl
Copy link
Collaborator

kmruehl commented May 14, 2025

@MShabara this is ready for your review. The OWC GBM case is still not running, so please see if you can debug it. Thanks!

@kmruehl kmruehl assigned MShabara and unassigned kmruehl May 15, 2025
Copy link
Contributor

@MShabara MShabara left a comment

Choose a reason for hiding this comment

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

The PR is good to be merged

@MShabara MShabara merged commit 05ccbc2 into WEC-Sim:dev May 15, 2025
2 checks passed
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.

5 participants