-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error when extract mooring stiffness matrix #2
Comments
There hasn't been much activity in pyMAP in a while because there has been less use of MAP as it was dropped from WISDEM and a secondary option in OpenFAST. I see there was a bit more activity in the |
Thank you for your comment and it really works. I have another question. The coordinate of the point in the code as shown below should be (0,0,+70) if I hope to extract stiffness matrix with reference to a point at 70m below the still water level, is it right? K, f0 = moor.stiffness_matrix(epsilon=1e-5, point=(0,0,70)) |
I do not know pyMAP or MAP well enough to answer this one. @mattEhall - do you? |
Hi, You might find MoorPy helpful. It's a more current pure-Python alternative to MAP. You can read in MoorDyn-style input files and query it for various stiffness properties. https://github.com/NREL/MoorPy Matt |
Thank you for your comments, the coordinate of a point 70 m below the water level is indeed (0,0,-70). Best regards, |
Have you tried the dev branch? I should have included additional functions and updates so that matrices can be translated from oe point to another with error. To extract the stiffness matrix at a given point the syntax is now: Which uses a "point" as argument, to know where the loads have to be translated to, and it makes use of the values of the forces at the operating point via the function This dates back to quite some time now... I personally use the following version of the python code (not sure how much difference it has with the dev branch): |
Hi, Thank you for your kindly reply. I have tried the dev branch and I can extract mooring stiffness matrix now. Also the matrix can be translated from one point to another (
Thank you again and have a nice day. Mooring stiffness matrix from pymap Mooring stiffness matrix from document of OpenFAST |
Dear all,
I’m not familiar with pyMAP, and when I hope to extract mooring stiffness matrix through Ex3_StiffnessMatrixFromFST.py. However a question happends as shown below
Part from Ex3_StiffnessMatrixFromFST.py
fstFilename = os.path.join(scriptDir, 'spar\Main.fst')
print(fstFilename)
# moor = pyMAP()
moor = pyMAP(fstFilename)
error line: moor = pyMAP(fstFilename)
TypeError: pyMAP.init() takes 1 positional argument but 2 were given
And I check the pymap.py file as shown below and it seems that the init( self ) command needs none argument which obeys the code “moor = pyMAP(fstFilename)”. Could anyone tell me how to solve this?
Part from pymap.py
class pyMAP(object):
What have to be noted are that I failed to create wisdem-env through the “mamba create env” command, so I use the “pip install wisdem” and “python setup.py develop” in the base environment and then run Ex3_StiffnessMatrixFromFST.py.
The text was updated successfully, but these errors were encountered: