-
Notifications
You must be signed in to change notification settings - Fork 184
Refactoring classes and properties - part 3 #828
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
|
Review from @nathanmtom refer to #822 (comment) for full (unedited) review Working review comments: Body Class
Wave Class
Simulation Class
Cable Class
Other Comments
|
|
@H0R5E do you know why the tests stopped running on this PR? |
|
@kmruehl, no, I don't know why. V strange. |
indeed... |
|
Actions are degraded. You'll need to wait for a fix. |
|
A few more comments on our refactoring: Wave Class
Simulation Class Class setAccess and getAccess:
Help / documentation:
|
|
@akeeste and @nathanmtom This branch is currently stable and passing all tests so I'm going to merge this PR and open a new one to address the remaining comments. |
* body and cable dispVol to volume * initDisp to initial * initLinDisp to displacement initAngularDispAngle to angle initAngularDispAxis to axis * save library to 2020b * cable rotLoc1 and rotLoc2 to baseLocation and followerLocation * cable cg1 cb1 to baseCg baseCg, cg2 cb2 to followerCg and followerCb * cable bodyMass and bodyInertia to mass and momOfInertia * class formatting * waves.T to waves.period and waves.H to waves.height * resolve waveClass runfromSimulink bug * body.cg to body.centerGravity * library to 2020b * body.cb to body.centerBuoyancy * library to 2020b * bodyClass and cableClass momOfInertia to intertia * convert cableClass to base and follower structures
|
All outstanding comments from this PR have mean migrated to #832 for resolution |
This PR is a continuation of #803 and #822
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 Librarywaves.Ttowaves.periodwaves.Htowaves.heightSimulation Class
simu.writetxttosimu.writeTexttosimu.saveTextwaves.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.geometryfrom @nathanmtom
quadDrag.DragtoquadDrag.dragmorisonElement.characteristicAreatomorisonElement.areaquadDrag.characteristicAreatoquadDrag.areadispVoltodisplacedVolumetovolumebody.initDisp.initLinDisptobody.initDisp.initLinearDisptobody.initial.displacementbody.initDisp.initAngularDispAngletobody.initial.anglebody.initDisp.initAngularDispAxistobody.initial.axiscgtocenterGravitycbtocenterBuoyancymomOfInertiatointertiaCable Class
cable.ctocable.dampingcable.ktocable.stiffnesscable.viscDragtocable.viscousDragtocable.quadDragcable.cableNumtocable.numbercable.loctocable.locationfrom @nathanmtom
cable.dispVoltocable.displacedVolumetocable.volumecable.quadDrag.characteristicAreatoquadDrag.areacable.quadDrag.DragtoquadDrag.dragcable.initDisp.initLinDisptocable.initDisp.initLinearDisptocable.initial.displacementcable.initDisp.initAngularDispAngletocable.initial.anglecable.initDisp.initAngularDispAxistocable.initial.axiscable.L0tocable.unstretchedLengthtpcable.lengthcable.bodyMasstocable.masscable.bodyInertiatocable.momOfInertiatocable.intertiacable.baseandcable.followerstructurecable.cb1tocable.centerBuoyancyBasetocable.baseCbtocable.base.centerBuoyancycable.cg1tocable.centerGravityBasetocable.baseCgtocable.base.centerGravitycable.rotloc1tocable.rotationLocation1tocable.baseLocationto tocable.base.locationcable.baseConnectionNametocable.base.namecable.cb2tocable.centerBuoyancyFollowertocable.followerCbtocable.follower.centerBuoyancycable.cg2tocable.centerGravityFollowertocable.followerCgtocable.follower.centerGravitycable.rotloc2tocable.rotationLocation2tocable.followerLocationtocable.follower.locationcable.followerConnectionNametocable.follower.nameConstraint Class
constraint.loctoconstraint.locationconstraint.constraintNumtoconstraint.numberfrom @nathanmtom
constraint.initDisp.initLinDisptoconstraint.initDisp.initLinearDisptoconstraint..initial.displacementPTO Class
pto.loctopto.locationpto.ctopto.dampingpto.ktopto.stiffnesspto.ptoNumtopto.numberfrom @nathanmtom
pto.initDisp.initLinDisptopto.initDisp.initLinearDisptopto.initial.displacementMooring Class
mooring.reftomooring.loctomooring.locationmooring.loctomooring.orientation(internal)mooring.mooringNumtomooring.numberfrom @nathanmtom
mooring.initDisp.initLinDisptomooring.initDisp.initLinearDisptomooring.initial.displacementmooring.initDisp.initAngularDispAngletomooring.initial.anglemooring.initDisp.initAngularDispAxistomooring.initial.axisDoc
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?