inputs.validation.WECSim
- inputs.validation.WECSim.normalizeBEM(hydro)
Function
normalizeBEM()- Parameters:
hydro – function from WECSim
- Returns:
function from WECSim
Normalizes BEM hydrodynamic coefficients in the same manner that WAMIT outputs are normalized. Specifically, the linear restoring stiffness is normalized as \(C_{i,j}/(\rho g)\); added mass is normalized as \(A_{i,j}/\rho\); radiation damping is normalized as \(B_{i,j}/(\rho \omega)\); and, exciting forces are normalized as \(X_i/(\rho g)\). And, if necessary, sort data according to ascending frequency.
This function is not called directly by the user; it is automatically implemented within the
readWAMIT(), readCAPYTAINE, readNEMOH, and readAQWA functions.Parameters- hydro[1 x 1] struct
Structure of hydro data that will be normalized and sorted depending on the value of hydro.code
Returns
- hydro[1 x 1] struct
Normalized hydro data
- inputs.validation.WECSim.myWecSimFcn(imcr, mcr, pctDir, totalNumOfWorkers, X, p)
Function wecSimFcn
- Parameters:
imcr – imcr
mcr – mcr
pctDir – pctDir
totalNumOfWorkers – totalNumOfWorkers
X – Design variable vector
p – Parameter struct
- Returns:
output
wecSimFcn WEC-Sim from function executable+
- inputs.validation.WECSim.readWAMIT(hydro, filename, exCoeff)
Function
readWAMIT()- Parameters:
hydro – function from WECSim
filename – filename
exCoeff – exCoeff
- Returns:
function from WECSim
Reads data from a WAMIT output file.
If generalized body modes are used, the output directory must also include the *.cfg, *.mmx, and *.hst files. If simu.nonlinearHydro = 3 will be used, the output directory must also include the *.3fk and *.3sc files.
See
WEC-Sim/examples/BEMIO/WAMITfor examples of usage.Parameters- hydrostruct
Structure of hydro data that WAMIT input data will be appended to
- filenamestring
Path to the WAMIT output file
- exCoeffinteger
Flag indicating the type of excitation force coefficients to read, ‘diffraction’ (default), ‘haskind’, or ‘rao’
Returns
- hydrostruct
Structure of hydro data with WAMIT data appended
- inputs.validation.WECSim.runRM3Parallel
Copyright 2014 National Renewable Energy Laboratory and National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.