Hi Hans
I am glad it helped.
please look at this jpg
http://s1134.photobucket.com/albums/m619/onurkurum/?action=view¤t=untitled.jpg
the last x point in the second y row is selected and it reads (in case
it is too small to read) X:819 Y:5 Z:3
these are real values - this is a 3x420 Grid - X:819 corresponds to
420th point in my x grid.
to put a runup gauge in this grid I would write in my params.txt:
nrugauge = 1
819 5 (NOTE: x first then y - also I always put the gauge at the very
last x point since it does not matter - XBeach will find the last wet
point on that row. neat! )
I guess that covers the location issue.
for the other questions:
let's say my grid is designed to have the following X,Z values in the
second row (Y=5)
X=750(say this is the 220th point in x grid), Z=1
X=751(say this is the 221th point in x grid), Z=2
and let's say I ran my simulation and got the output as
2000 (tint * timestep)
750 - X
5 -Y
1.3 -runup
2100 (tint * timestep)
751 -X
5 -Y
1.8 -runup
and so on
so here you see that XBeach will give you the exact runup between
(X=750,Z=1) and (X=751,Z=2) as 1.3 - but it won't give you the exact X
location - I am pretty sure (need to check the code to be sure) it
gives you the closest X value that corresponds to Z=1.3
same for the second output at t=2100 - you got Z=1.8 as runup and this
time X location is reported as X=751. closest X value to Z=1.8
again your runup gauge is all the way back at X=819 Y=5 Z=3 while you
get this output ( I did not test but I guess it does not matter where
it is, probably only thing that matters is the correct Y value)
so,
you need to interpolate your exact X location - you know the delta X
and delta Y and you know where your runup is. (actually this can be
done by some changes in the code, maybe in a future revision:) )
H zs zb: I am not sure what your question is with these,
zb = runup at the exact location - and the H and zs will be zero at
the exact runup location - otherwise runup wouldn't be there.
if you need zs, zb, H some other location, what I would do:
nglobalvar = 3
zs
zb
H
so you'll have zs.dat zb.dat H.dat --> you can extract all the
information you need at any timestep, at any point in your domain (use
matlab, python etc)
hope this helps, let me know if this is not clear
Onur