-
Notifications
You must be signed in to change notification settings - Fork 184
Refactoring classes and properties #803
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
|
@akeeste The tests right now are passing because I did not update the run-from-simulink parameters. I'll be out for the working meeting, but if you'd like to work on this PR to update the new variables in the run-from-simulink cases that would be a huge help. On that note... is here a best workflow to find/replace variable names for run-from-simulink? |
|
@akeeste and @nathanmtom I'm sure I'll find bugs with this and need to make a few more commits but this PR is ready for a review. You may want to refer to WEC-Sim/WEC-Sim_Applications#17 to test the revisions. Please refer to my Notes with unresolved issues. |
|
@akeeste @H0R5E @nathanmtom I'm going to go ahead and merge this PR and then re-open a new one for review. |
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.
What was changed in the three example .slx files?
Did we ever decide on renaming for momOfInertia?
Also noting that some of these may be updated in #822 already, but I only viewed the changes merged already
|
All of these comments should be addressed in #822 |
Refactoring WEC-Sim Classes and Properties based on https://github.com/WEC-Sim/WEC-Sim/projects/58#card-64210391 and discussions with the WEC-Sim team.
Objectives:
pto.locversusmooring.refstruct(body.morison)simu.yawtobody.yawWave Class
waves.etaImporttowaves.waveImporttowaves.elevationImportwaves.spectrumDataFiletowaves.waveSpectrumFiletowaves.spectrumFilewaves.etaDataFiletowaves.waveElevationFiletowaves.elevationFilewaves.plotEtatowaves.plotElevationwaves.waveDirtowaves.waveDirectiontowaves.directionwaves.waveSpreadtowaves.spreadbetatothetato match online documentationwaves.deepWaterWavetowaves.deepWaterwaves.currentproperties to structure, similar to morison element,waves.currentOptiontowaves.current.optionwaves.currentDepthtowaves.current.depthwaves.currentDirectiontowaves.current.directionwaves.currentSpeedtowaves.current.speedwaves.bemstructurewaves.numFreqtowaves.freqNumtowaves.bem.countwaves.freqDisctowaves.bem.optionwaves.freqRangetowave.bem.rangewaves.markerproperties to structurewaves.markerLoctowaves.marker.loctowaves.marker.locationwaves.markerSizetowaves.marker.sizewaves.markerStyletowaves.marker.stylewaves.markerproperties to structure in Frames LibrarySimulation Class
simu.writetxttosimu.writeTextwaves.waveStatisticsDataLoadtosimu.mcrExcelFile(formerly Wave Class)simu.mcrCaseFiletosimu.mcrMatFilesimu.dtMEtosimu.morisonDtsimu.CTTimetosimu.cicTimesimu.dtCItosimu.cicDtsimu.CITimetosimu.cicEndTimesimu.CIkttosimu.cicLengthsimu.ssCalctosimu.stateSpacesimu.setupSimutosimu.simuSetuptosimu.setupsimu.paraviewproperties to structure, similar to morison element, note: test that sub-properties are testedsimu.dtParaviewtosimu.paraviewDttosimu.paraview.dtsimu.StartTimeParaviewtosimu.paraviewStartTimetosimu.paraview.startTimesimu.EndTimeParaviewtosimu.paraviewEndTimetosimu.paraview.endTimesimu.pathParaviewVideotosimu.paraviewDirectorytosimu.paraview.pathsimu.numWecBodiestosimu.body.numHydroBodiessimu.pressureDistosimu.pressuresimu.simulationDatetosimu.datesimu.adjMassWeightFuntosimu.adjMassFactorsimu.autoRateTranBlktosimu.rateTransitionsimu.zeroCrossConttosimu.zeroCrosssimu.numIntMidTimeStepsremovedBody Class
body.dof_starttobody.dofStartbody.dof_endtobody.dofEndbody.dof_gbmtobody.dofGBMbody.nlHydrotobody.nonlinearHydrobody.lenJtobody.dofCoupledbody.meanDriftForcetobody.meanDriftbody.bodyparaviewtobody.paraviewBodytobody.paraviewbody.flexHydroBodytobody.flexBodytobody.flexbody.nhBodytobody.nonHydroBodytobody.nonHydrobody.hydroDataBodyNumtobody.hydroBodyTotaltobody.hydroTotalNOTE Do we even use this?body.viscDragtobody.viscousDragtobody.quadDragbody.userDefinedExcIRFtobody.excitationIRFsimu.yawandsimu.yawThreshto bodyClasssimu.yawtobody.yaw.optionsimu.yawThrestobody.yaw.thresholdbody.bodyNumbertobody.numberbody.bodyTotaltobody.totalbody.bodyGeometrytobody.geometryCable Class
cable.ctocable.dampingcable.ktocable.stiffnesscable.viscDragtocable.viscousDragtocable.quadDragcable.cableNumtocable.numbercable.loctocable.locationConstraint Class
constraint.loctoconstraint.locationconstraint.constraintNumtoconstraint.numberPTO Class
pto.loctopto.locationpto.ctopto.dampingpto.ktopto.stiffnesspto.ptoNumtopto.numberMooring Class
mooring.reftomooring.loctomooring.locationmooring.loctomooring.orientation(internal)mooring.mooringNumtomooring.numberDoc
Notes
waves.bemsis specified in the input file, but not forwaves.bem.options. This can be addressed by adding some additional checks to thecheckinputsmethod of each class with a structure.TestPassiveYawRegressiontest failurerunFromSimTesttest issues, fails on first run but not second