ansys.mapdl.core.Mapdl.ocread#
- Mapdl.ocread(fname='', ext='', option='', **kwargs)#
Reads externally defined ocean data.
Mechanical APDL Command: OCREAD
- Parameters:
- fname
str External ocean data file name (excluding the filename extension) and directory path containing the file. For more information, see the Notes section.
- ext
str Filename extension (limited to eight characters).
- option
str Integer value passed to the userOceanRead subroutine (as
iOption) for user-defined waves. This value does not apply to the diffracted wave type.
- fname
Notes
The ocread command imports ocean data that has been defined externally (for example, via the Hydrodynamic Diffraction System (AQWA) ).
The command operates on the ocean load ID specified via the most recently issued octype command. Issue a separate ocread command for each ocean load that you want to read into the program.
Fnameis limited to 248 characters, including the directory path. IfFnamedoes not include a directory path, the program searches for the specified file in the current working directory. An unspecifiedFnamedefaults toJobname.For the diffracted wave type (
KWAVE= 8 on the ocdata command), you must issue an ocread command for the ocean wave ID in order to import the hydrodynamic data from the hydrodynamic analysis.For more information, see Applying Ocean Loading from a Hydrodynamic Analysis
To learn more about creating user-defined waves, see Subroutine userPanelHydFor (Calculating Panel Loads Caused by Ocean Loading)
This command is also valid in PREP7.