wecopttool.run_bem

run_bem(fb, freq=[inf], wave_dirs=[0], rho=1025.0, g=9.81, depth=inf, write_info=None, njobs=1)[source]

Run Capytaine for a range of frequencies and wave directions.

This simplifies running Capytaine and ensures the output are in the correct convention (see wecopttool.change_bem_convention()).

It creates the test matrix, calls capytaine.bodies.bodies.FloatingBody.keep_immersed_part(), calls capytaine.bem.solver.BEMSolver.fill_dataset(), and changes the sign convention using wecopttool.change_bem_convention().

Parameters:
Return type:

Dataset