QueryValueEx ( key, 'DOFWorkingDirectory' ) except WindowsError : try : with winreg. HKEY_CURRENT_USER, 'Software \\ Orcina \\ Distributed OrcaFlex', 0, winreg. QueryValueEx ( key, 'Normal' ) except WindowsError : raise OFXError ( "Distributed OrcaFlex not found." ) if not dllname : try : with winreg. HKEY_LOCAL_MACHINE, 'Software \\ Orcina \\ Distributed OrcaFlex \\ Installation Directory', 0, winreg. """ def _init_ ( self, dllname = None ): self. > j.run(True) > print "All jobs finished" # This won't print unitll the simulations are complete. If wait is True it will not return unitll all jobs have completed. path = args else : raise OFXError ( " \n Can't locate file ) run(wait=False) Submits jobs to Distributed Orcaflex. get ( 'filename' ) elif len ( args ) > 0 : if os. added attribute `six_d_buoys`, shortcut to objects_of_type('6DBuoy') """ def _init_ ( self, * args, ** kwargs ): super ( Model, self ). added attribute `vessels`, shortcut to objects_of_type('Vessel') 7.
added attribute `lines`, shortcut to objects_of_type('Line') 6. model.objects_of_type('Line') > model = Model() > model.CreateObject(otVessel, 'Bigger Boat') > for v in model.objects_of_type('Vessel'). added `objects_of_type()` to return a list of objects in the model of a certain types/ e.g. > model = Model() > model.open() # Opens a temp file in OrcaFlex.exe 4. Won't return until the OrcaFlex.exe instance is closed.
Orcina orcaflex examples windows#
This will open the model in the OrcaFlex GUI, if the model does not exist on disc then a windows temp file will be created.
added a model_name attribute (added in v0.0.9) of the file name without path or extensions: > model = Model(r"C:\path\to\data_file.dat") > model.model_name "data_file" 3. added path attribute so the location of the model on the disc can be found from: > model = Model(r"C:\path\to\data_file.dat") > model.path "C:\path\to\data_file.dat" 2. class Model ( Model ): """Wrapper around OrcFxAPI.Model to add extra functionality. VertexZ = z else : _xyz_to_clipboard ( x, y, z ) """ l = length / 2.0 d = depth / 2.0 b = beam / 2.0 x = y = z = * 5 + * 5 bow_scaling =, 1, 1, bow_scale, bow_scale, bow_scale, 1, 1, bow_scale ] x = if vessel_type and vessel_type. if an `OrcaFlexObject` with `typeName=otVesselType` is passed as the vessel_type parameter then the drawing will be applied otherwise the correct array is copied to the clipboard to paste into the vessel type drawing table. Bow shape determined by the bow_scale parameter. Please correct me if I am wrong and give your valuable suggestions.Def vessel_drawing ( length, depth, beam, bow_scale = ( 0.9, 0.95 ), vessel_type = None ): """scale the default OrcaFlex vessel type drawing Given a vessel of specifed length, depth and beam. How do i reduce computational time? Is it advisable to increase recommended time step? or is there any other way to do this? Does it demand for longer computational time? it is very small when quasti-static mooring was added (say MoorDyn) earlier. The computational time is very high when I couple FAST-OrcaFlex. Is it acceptable to give superimposed motion to Displacement RAO's + Harmonic motions and uncheck all of the Included effects except the applied loads where we give a correction factor.? As we are importing the hydrodynamic data file (.out file), the corresponding vessel RAO's are added to the structure. I have one more question regarding superimposed motion. I think I should check the box for Other Damping in OrcaFlex to add additional damping that we give in HydroDyn, Is it not? If so, where do I give additional stiffness in this? One quick question regarding platform additonal stiffness and damping when using FAST-OrcaFlex coupling.