Skip to content

Conversation

@MShabara
Copy link
Contributor

  1. Split NEMOH examples into v2.3 and v3.0.2.
  2. Added two examples for v3.0.2: Cylinder and Sphere.
  3. Redirected the testBEMIO.m file to the new Sphere example of v3.0.2 instead of v2.3.

@salhus salhus requested a review from dav-og January 24, 2024 15:27
@dav-og
Copy link
Contributor

dav-og commented Jan 31, 2024

Thanks for updating these, @MShabara !

The main solver seems to be running fine :)

I couldn't get the QTFSolver to run, but I'm not sure if thats actually available on this example case?

@MShabara
Copy link
Contributor Author

The current settings for the two examples do compute the QTFs automatically, to activate the QTF feature you need to adjust the inputs in the Nemoh.cal file as follows:

1- Modify the QTFs section in as follows:

--- QTF----------------------------------------------------------------------------------------------------------------------------
1         			! QTF flag, 1 is calculated
65	0.0628 4.082 	! Number of radial frequencies, Min, and Max values for the QTF computation
0	  			  	! 0 Unidirection, Bidirection 1 
2         			! Contrib, 1 DUOK, 2 DUOK+HASBO, 3 Full QTF (DUOK+HASBO+HASFS+ASYMP)
NA 					! Name of free surface meshfile (Only for Contrib 3), type 'NA' if not applicable 
0 	0	0			! Free surface QTF parameters: Re Nre NBessel (for Contrib 3)
0 					! 1 Includes Hydrostatic terms of the quadratic first order motion, -[K]xi2_tilde
1					! For QTFposProc, output freq type, 1,2,3=[rad/s,Hz,s]
1         			! For QTFposProc, 1 includes DUOK in total QTFs, 0 otherwise
1         			! For QTFposProc, 1 includes HASBO in total QTFs, 0 otherwise 
0         			! For QTFposProc, 1 includes HASFS+ASYMP in total QTFs, 0 otherwise
-----------------------------------------------------------------------------------------------------------------------------------

2 - This step is not essential:
Turn on the Response Amplitude Operator (RAO) calculation
1 ! Response Amplitude Operator (RAO), 0 no calculation, 1 calculated
Noting that enabling the QTF solver will automatically compute the RAO.
This is achieved by the IF condition in NEMOH/postProcessor/Main.f90
89 IF (InpNEMOHCAL%OptOUTPUT%Switch_RAO==1 .OR. InpNEMOHCAL%OptOUTPUT%Switch_SourceDistr==1)
where Switch_SourceDistr takes the value of the QTF flag in Nemoh.cal

Also, if you are using a modified version of the files in NemohWrapper, do not forget to set ID_QTF==1.

Copy link
Contributor

@dav-og dav-og left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests all passing, Nemoh v3 examples working, great addition 👍

@dav-og dav-og merged commit a42b1cd into WEC-Sim:dev Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants