Re: [swanmodel-users] Specifying boundary conditions from spectral file with multiple points in tim
Brought to you by:
mzijlema
|
From: João A. <ja...@au...> - 2018-11-02 04:23:42
|
Hello Jose, Almost the same problem here. After giving up on BOUNDNEST1 for the same reason, I am currently generating all the outputs, point by point with SPECOUT and adding the boundaries with BOUNDSPEC. On Fri, 2 Nov 2018 at 16:01, José Beyá via swanmodel-users < swa...@li...> wrote: > Hi all, > > I am running SWAN using a time varying spectral boundary condition that > comes in a file which has 6 points located approximately along the Eastern > Boundary. There is a year of data every 3h. > > I am specifying the boundary conditions like this: > > BOUNdspec SIDE N CCW CONstant FILE 'nzn.20100101_00z_1.bnd' 6 > BOUNdspec SIDE S CCW CONstant FILE 'nzn.20100101_00z_2.bnd' 1 > $******EASTERN BOUNDARY > BOUNdspec SEGMent XY 1884100 5491900 1884100 5519700 CONStant FILE > 'nzn.20100101_00z_3.bnd' 1 > BOUNdspec SEGMent XY 1884100 5519700 1884100 5575300 CONStant FILE > 'nzn.20100101_00z_4.bnd' 2 > BOUNdspec SEGMent XY 1884100 5575300 1884100 5630900 CONStant FILE > 'nzn.20100101_00z_5.bnd' 3 > BOUNdspec SEGMent XY 1884100 5630900 1884100 5686500 CONStant FILE > 'nzn.20100101_00z_6.bnd' 4 > BOUNdspec SEGMent XY 1884100 5686500 1884100 5742100 CONStant FILE > 'nzn.20100101_00z_7.bnd' 5 > BOUNdspec SEGMent XY 1884100 5742100 1884100 5769900 CONStant FILE > 'nzn.20100101_00z_8.bnd' 6 > $****** > > Although this works, it requires to copy and rename the file which has the > spectral boundary data (nzn.20100101_00z_1.bnd) 8 times. This is because > if you use the same file for more than 2 lines with the command BOUNdspec > it produces the error "File already Opened". This also happens when you use > a TPAR file. > > I explored using the option VARIABLE instead of CONSTANT for the BOUNdspec > command but it still requires to have different files and it can only be > used for one Boundary at the time. > > I also explored using the BOUNDNEST1 command and the model runs but > produces wrong results as it only has 6 points along the boundaries while > it requires several hundreds (it seems it does not interpolate). > > I am wandering if anyone is aware of a smarter way of specifying the > boundary condition in this situation in order to avoid having to create > several identical wave spectra data files. > > Thanks in advance > > Jose > > _______________________________________________ > swanmodel-users mailing list > swa...@li... > https://lists.sourceforge.net/lists/listinfo/swanmodel-users > -- João Claudio Albuquerque PhD. Candidate, School of Environment, The University of Auckland, Level 4, Room 449, Science Centre, 23 Symonds Street, Auckland, NZ. +64 021 02365705 |