-
Notifications
You must be signed in to change notification settings - Fork 25
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
Question: VolturnUs example not working when setting potModMaster to 0 #19
Comments
@maucollu, thanks for raising this issue. We still need to set up some proper tests for RAFT to catch things like this sooner. It sounds like something isn't working out with the call to HAMS. @gbarter, would you have any insights on this error, or a suggestion of who would be well suited to look into it? |
I'm not immediately sure what the issue is. It reads like pyHAMS cannot find or open the windows executable that it currently ships with. Since it looks like pyHAMS is installed from the error message, this will indeed take some testing. I can try to take a look next week. |
@mattEhall Perhaps a 'debug' toggle for the user to switch on which would provide a little more information? e.g. def run_hams(projectDir):
'''call the HAMS_x64.exe program in the specified project directory'''
# get absolute path to the local HAMS_x64.exe program
hamsDir = osp.dirname(__file__)
hamsExe = './bin/HAMS_x64.exe'
hamsPath = osp.abspath(osp.join(hamsDir, hamsExe))
if debugToggle is True:
print(hamsDir)
print(hamsExe)
print(hamsPath) to see if there is a path mix-up? (or maybe save a .log file instead of just printing) |
Hi all, I have migrated pyHAMS to a more current build system ( @maucollu - Please update to the latest pyHAMS and reinstall that package. If you continue to see the same error, then we know it is an issue with your system in particular. Cheers, |
Dear all,
I've followed all the instructions to install RAFT, and I am able to successfully run the example script in https://openraft.readthedocs.io/en/latest/starting.html using the VolturnUS-S.yaml default file.
Nonetheless, the setting for potModMaster is 1, i.e. "1=turns all potMod vars to False (no HAMS)", although some of the elements (center_column and outer_column are defined as "potMod : True".
When I change potModMaster to 0 (0=keeps all member potMod vars the same), I obtain the following error:
`Found mean offets with with surge = 0.02 m and pitch = 0.00 deg.
--------- Natural frequencies and mode shapes -------------
Mode 1 2 3 4 5 6
Fn (Hz) 0.0087 0.0087 0.0611 0.0405 0.0405 0.0150
DOF 1 -1.0000 -0.0129 0.0000 0.0003 -0.9889 -0.0000
DOF 2 0.0000 -0.9999 0.0000 -0.9889 0.0001 0.0888
DOF 3 -0.0000 -0.0000 -1.0000 -0.0000 0.0000 -0.0000
DOF 4 0.0000 -0.0006 -0.0000 0.1487 -0.0000 0.0002
DOF 5 0.0006 0.0000 0.0000 0.0000 -0.1486 0.0000
DOF 6 -0.0000 0.0001 0.0000 0.0000 -0.0000 0.9960
Of 312 generated panels, 172 were submerged and have been used in the mesh.
Of 600 generated panels, 332 were submerged and have been used in the mesh.
Of 600 generated panels, 332 were submerged and have been used in the mesh.
Of 600 generated panels, 332 were submerged and have been used in the mesh.
Traceback (most recent call last):
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec
exec(code, globals, locals)
File "c:\users\mauri\onedrive_maurizio_company\sandbox\raft\raft_example.py", line 27, in
model.analyzeCases(display=1)
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\site-packages\raft\raft_model.py", line 236, in analyzeCases
fowt.calcBEM(meshDir=meshDir)
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\site-packages\raft\raft_fowt.py", line 391, in calcBEM
ph.run_hams(meshDir)
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\site-packages\pyhams\pyhams.py", line 404, in run_hams
sub.run([f'{hamsPath}'])
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 109, in init
super(SubprocessPopen, self).init(*args, **kwargs)
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\mauri\anaconda3\envs\spyder-env-WSDM\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified`
The text was updated successfully, but these errors were encountered: