Can you provide some direction on how to create an irregular waves file for input into Celeris? I see in the examples that there there is an irrWaves.txt file that appears to define the spectrum. How was this created?
Also, in the GUI there is a user input for spectrum wave maker. How does this differ from a wave generated from an irrWaves.txt file? What spectrum is associated with the wave maker and can this be varied?
I know that we solved the issue in an email, I am coping my email here so others can use as well. Thank you for posting questions in the Community forum.
To feed a spectrum to celeris, you need to create a .txt file with a bunch of sine waves. Then Celeris will superimpose them on the boundary
A .txt file for irregular waves is like this
[NumberOfWaves] 2 ================================= 0.04 2 -0.785 0.0 0.04 2 -2.355 0.0
where each line is a sine wave: amplitude(m) period(s) direction_angle_wrt_x(radian) phase(radian)
You must have many waves (at least 100) to generate a reasonable spectrum. The max number of waves is min(1000, nx) or min(1000, ny).
To generate this file, you can either use an external tool such as MATLAB, or use the GUI. To use the GUI, go to the boundary conditions tab, set the boundary side (West, East, etc.), set the type to IrregularWaves, check the Spectrum check mark, enter the values and press SET. It will save a .txt file next to your cml file (or wherever you direct logs). You can keep this file, and give it as an input to Celeris through the CML file. Thanks, Sasan