Download 1 General Use - Basement

Transcript
User Manual BASEMENT
The following attributes can be set:
Attribute
Values
size
number of data values
time
time of data values in sec
type
[Q,h,v,…] Type of data
encoding
[ascii, binary]
byte_order
[little_endian]
boundary
name of boundary condition
of data values
timestep
current time step of model in
sec
BASIC SIMULATION ENVIRONMENT
Obligatory
Yes
Yes
Yes
No (default = ascii)
No
Only if data is sent to
BASEMENT
Only for local time
stepping
Data communication
The data communication via sockets can be compared to data exchange via file-streams.
The data packets are inserted into a pipe and the other side of the connection reads the
contents after the FIFO concept (First In First Out). The receiving part of the connection must
parse the contents of the pipe and extract the data packets. The time attribute of the data
packets indicate the time level of the other program required for the synchronization. If the
time levels of the data packets are behind the program’s time or if no data is in the pipe, than
the program must wait and continuously check for incoming data. In case of ‘local time
stepping’ the data packets also carry the information of the local time step size which has to
be used.
Fig. 20: Sending and receiving data from socket stream (FIFO pipe)
VAW ETH Zürich
Version 7/8/2011
U I - 6.6-3