![orcaflex def dynamicsprogress orcaflex def dynamicsprogress](https://miro.medium.com/max/1838/1*1RNiq8FG16EaiZLn0AqmKg.png)
If the phases are stated as being in “degrees” then Flexcom will not perform any conversion. If the phases are stated as being in “radians” then Flexcom multiplies the phases by (180/pi). RAOPhaseUnitsConvention: It is assumed this refers to the units that the phases in the yml file are in.Otherwise if the option states that it “lags” Flexcom will not perform any conversion. If the option in OrcaFlex states that the phase angle “leads” then Flexcom will multiply all the phase angles by -1. RAOPhaseConvention: It is assumed that this refers to the positive rao phase angle of the RAOs in the yml file.If the waves are referred to in “frequency (Hz)” then no conversion will take place. If the waves are referred to in “frequency (rads/s)” then Flexcom divides them by (2*pi). If the waves are referred to in “periods” then Flexcom performs the following conversion (1/period). Flexcom converts the values referenced by this convention from the convention stated in the yml file to the Flexcom format. WavesReferredToBy: It is assumed that this option is a statement of what the units of wave period are for the RAOS in the yml file.No conversion will take place based on this convention but Flexcom will produce an error if either “max wave slope” or “wave steepness” is the stated convention. RAOWaveUnit: It is assumed that this is always set to “amplitude” and if not Flexcom produces an error.
![orcaflex def dynamicsprogress orcaflex def dynamicsprogress](https://reader011.cupdf.com/reader011/slide/20190114/55cf8d0d5503462b1391b1f9/document-2.png)
If they are stated as being in “degrees” then no conversion will take place. If they are stated as being in “radians” then Flexcom multiplies these rotational RAOs by (180/pi). RAOResponseUnits: it is assumed that this refers to the units in which the rotational RAOs are referred to in the yml file.All other formats are set on a file by file basis and the interpretation of the available options in OrcaFlex are as follows:.The definition of wave heading is transformed such that a 0 degree heading, which is incident on the stern in the OrcaFlex format, is incident on the bow in the Flexcom format.The conventions used in Orcaflex are as follows: Flexcom can import RAO data from an OrcaFlex text data file (.yml) only. Does anybody know why the run-time is so slow, and not close to divided by seven?Īlso, is there a way of knowing which processor the Multiprocessing.OrcaFlex models can be saved in either binary data files (.dat) or text data files (.yml). Using a for-loop for a reduced set (24)` of smaller datafiles took 1 hour 10 min, while using the Pool with 7 processors took 1 hour 28 min. # METHOD WITH FOR-LOOP - TAKES APPROX 1 HR 10 MINĪrgs2 = ((('CaseD%.3d.sim' % casenumber), arcs, 1) for casenumber in range(1,25)) Results = pool.map_async(get_results, args) # List of input needed for the get_results function:Īrgs = ((('CaseD%.3d.sim' % casenumber), arcs, 1) for casenumber in range(1,25)) # METHOD WITH POOL - TAKES APPROX 1 HR 28 MIN
![orcaflex def dynamicsprogress orcaflex def dynamicsprogress](https://ars.els-cdn.com/content/image/1-s2.0-S0029801820311239-gr9.jpg)
# Also does many other operations for extraction of results # Collects results from external program:Ĭ = model.LinkedStatistics(, 1, objectExtra=OrcFxAPI.oeEndB).TimeSeriesStatistics('Ezy-Angle').Meanĭ = model.LinkedStatistics(, 1, objectExtra=OrcFxAPI.oeEndB).Query('Ezy-Angle', 'Ezy-Angle').ValueAtMaxĮ = model.LinkedStatistics(, 1, objectExtra=OrcFxAPI.oeEndB).Query('Ezy-Angle', 'Ezy-Angle').ValueAtMin Import OrcFxAPI # Package connected to external program
![orcaflex def dynamicsprogress orcaflex def dynamicsprogress](https://ars.els-cdn.com/content/image/1-s2.0-S0029801818316561-gr7.jpg)
Using Multiprocessing.Pool().map_async to pool my tasks. Due to this, extracting data from a single file can be time-consuming. The files are of a form requiring to open the program which created them (OrcaFlex) to extract data. The extraction of data from a file is completely independent of extraction of data from other files. I need to extract data from 1300 files and would therefore like Python to start extracting data from a new file once one extraction is complete. Use some function in python to extract data from many datafiles simultanously using different processors on my computer.