YingyiLiu / HAMS

An open-source computer program for the analysis of wave diffraction and radiation of three-dimensional floating or submerged structures
Apache License 2.0
100 stars 50 forks source link

issue about control file #28

Closed Dylan0824 closed 1 year ago

Dylan0824 commented 1 year ago

Hi, I use this program recently to do my work, and i have 2 questions about the control file. The first is that whats the meaning of the '2.D0', i see the control file in test case, and i found that like the numer of the water depth, it writes '2.D0', whats the meaing of the D? The second is that whats the meaning of 2 options 'Reference_body_length' and 'Wave_diffrac_solution', and i dont see any info in the manual, Thank you very much for the help.

Dylan0824 commented 1 year ago

Hi, i also want to know how can i get the free surface elevation and pressure data because the out file seems dont include the free surface.

mancellin commented 1 year ago

The first is that whats the meaning of the '2.D0', i see the control file in test case, and i found that like the numer of the water depth, it writes '2.D0', whats the meaing of the D?

I think I can easily answer this one: this is Fortran's scientific notation for double precision number. You can think of it as equivalent to the more common "E notation" 2.e0.

YingyiLiu commented 1 year ago

Reference_body_length

Hi, I use this program recently to do my work, and i have 2 questions about the control file. The first is that whats the meaning of the '2.D0', i see the control file in test case, and i found that like the numer of the water depth, it writes '2.D0', whats the meaing of the D? The second is that whats the meaning of 2 options 'Reference_body_length' and 'Wave_diffrac_solution', and i dont see any info in the manual, Thank you very much for the help.

The first is that whats the meaning of the '2.D0', i see the control file in test case, and i found that like the numer of the water depth, it writes '2.D0', whats the meaing of the D?

I think I can easily answer this one: this is Fortran's scientific notation for double precision number. You can think of it as equivalent to the more common "E notation" 2.e0.

I will skip the first question as Matthieu has already answered it. 'Reference_body_length' refers to the scale length of the body you calculated for, equivalent to ULEN in the Wamit gdf file. 'Wave_diffrac_solution' is explained in the following publication: https://www.researchgate.net/publication/355585903_Introduction_of_the_Open-Source_Boundary_Element_Method_Solver_HAMS_to_the_Ocean_Renewable_Energy_Community

YingyiLiu commented 1 year ago

Hi, i also want to know how can i get the free surface elevation and pressure data because the out file seems dont include the free surface.

Free surface elevation and the hydrodynamic pressure are equivalent in nondimensional value at the free surface.

Dylan0824 commented 1 year ago

I think I can easily answer this one: this is Fortran's scientific notation for double precision number. You can think of it as equivalent to the more common "E notation" 2.e0. Free surface elevation and the hydrodynamic pressure are equivalent in nondimensional value at the free surface.

Thank you for the help. It helps me a lot. THank you again!

Dylan0824 commented 1 year ago

Hi, i also want to know how can i get the free surface elevation and pressure data because the out file seems dont include the free surface.

Free surface elevation and the hydrodynamic pressure are equivalent in nondimensional value at the free surface.

Hi, How can i see the elevation data? Which file is the result in the output? It seems can not see it in the BEMrosetta

YingyiLiu commented 1 year ago

You can find the data in the *.6p file.

Dylan0824 commented 1 year ago

You can find the data in the *.6p file.

Thank you so much for your reply!

Dylan0824 commented 1 year ago

Dear professor, sorry to bother you again, i create a file that calculate the elevation and when i calculate this in 3 different frequency, the result is this 1681216413500 but, when i just calculate one frequency, it turns that 1681216485324 I dont know whats the meanting of this 1681216544053 1681216555467 while it doesnt exeist in the result with one frequency.

Sorry to bother you again and thank you vert much!

Dylan0824 commented 1 year ago

Hi, when i run the program, it will produce a file called ErrorCheck.txt in the output file, but why the rotation center is different from what i set in the control file . For example, i set the 'Reference_body_center -0.356 0.000 0.000' in the control file, and in the hydrostatic.in, the rotation center is -0.356 0.000 0.000 too, but in the ErrorCheck.txt, it turns out 'The rotation center is input as (please confirm if it is correct): 0.000 0.356 0.000'

YingyiLiu commented 1 year ago

Dear professor, sorry to bother you again, i create a file that calculate the elevation and when i calculate this in 3 different frequency, the result is this 1681216413500 but, when i just calculate one frequency, it turns that 1681216485324 I dont know whats the meanting of this 1681216544053 1681216555467 while it doesnt exeist in the result with one frequency.

Sorry to bother you again and thank you vert much!

Regarding the Wamit-format output, please refer to the user manual of Wamit: https://www.wamit.com/manual.htm

YingyiLiu commented 1 year ago

Hi, when i run the program, it will produce a file called ErrorCheck.txt in the output file, but why the rotation center is different from what i set in the control file . For example, i set the 'Reference_body_center -0.356 0.000 0.000' in the control file, and in the hydrostatic.in, the rotation center is -0.356 0.000 0.000 too, but in the ErrorCheck.txt, it turns out 'The rotation center is input as (please confirm if it is correct): 0.000 0.356 0.000'

Thanks for reporting. The problem has been corrected.