Boundary conditions varying along the boundary line and in time

Hi,

if I want to have wave variables (Hm0, pDir, Tp, and spreading) that vary along the boundary lines and in time, do I assign HM0L, TETA1L, FPICL, and SPRE1L as column vectors in each time step?

or can I only assign single values for each time step per boundary node?

something like :

do I = 1, data_time_points

if TIMME>=t(I) & TIMME <t(I+1)

 do J =1, data_boundary_nodes

   do K =1,NPTFR

     if NBORD(J) == BOUNDARY_COLOUR(K)

       FPICL = some_interpolated_value

       HM0L  = some_interpolated_value

       ..



     endif

   [name removed]

endif

enddo

any pointers would be very welcome,

[name removed]

Hi [name removed],

There are two ways to impose wave timeseries-varying in time & space onto the boundary. The first approach is via programming the subroutine Limwac.f, my suggestions is to use the parameters you mentioned and calculate wave spectra (e.g., JONSWAP) then impose the values of wave spectra (1 variable only I think it was called F(NBOR)). The second more practical approach is to pre-write a spectra file (*.spe) with values of 2D wave spectra for each point in time (see impose spectra example for inspiration). Hope this helps.

[name removed]

1 Like