-
Notifications
You must be signed in to change notification settings - Fork 184
Refactoring classes and properties - part 2 #822
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
|
Working review comments: Body Class
Wave Class
Simulation Class
Cable Class
Constraint Class
PTO Class
Mooring Class
Other Comments
|
|
@nathanmtom thanks, I'll work on incorporating those revisions now |
|
@kmruehl Apologies for my slow review, going through the rest of the PR this afternoon. I'll update in the comment above with any other potential changes. Let me know if there is anything you want to discuss on any of my comments/suggestions. @kmruehl Just wanted to give an update that I've completed my initial review and left additional comments in the working review comments above. Happy to discuss any of these with you and volunteer to help make any of these changes if we agree they should be made. |
|
@nathanmtom thanks! I'll work on the ones that we're 100% on, and wait for the team meeting to discuss the rest. |
|
@WEC-Sim/wec-sim-lab-team I'm going to merge this PR into dev and re-open a new one to resolve the remaining issues |
This PR is a continuation of #803. Refactoring WEC-Sim Classes and Properties based on project board card 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.numIntMidTimeStepsremovedparallelComputing_dirtopctDirNOTE this is not in the simulationClass, but maybe it should beBody Class
body.dof_starttobody.dofStartbody.dof_endtobody.dofEndbody.dof_gbmtobody.dofGBMtobody.gbmDOFbody.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 failurewecSimPCTissuepctDirto simulationClass?