Welcome, Guest
Username: Password: Remember me

TOPIC: Boundary conditions varying along the boundary line and in time

Boundary conditions varying along the boundary line and in time 2 years 2 months ago #40971

  • CAMERI_Shai
  • CAMERI_Shai's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
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
enddo
enddo
endif
enddo




any pointers would be very welcome,
Shai
The administrator has disabled public write access.

Boundary conditions varying along the boundary line and in time 2 years 2 months ago #41025

  • NZrigat
  • NZrigat's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 16
Hi Shai,

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.

Cheers,
Nayef
The administrator has disabled public write access.
The following user(s) said Thank You: CAMERI_Shai
Moderators: tfouquet

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.