Wednesday, September 9, 2009

Flood Fighting Drill in Japan

Flood Fighting (the fight against flooding).

Suikou deployment team and Opening ceremony.

Compared with among other types of disaster, flood often occurs anywhere but timely forecasted. Thus, it is available for giving an early flood warning or making flood fighting arrangement.

In Japan, by the law it's required to conduct the flood drills annually in order to provide understanding of the type of flood fighting activities by involving local residents, private companies, local disaster managers and students.

The benefits from this activity are raising public awareness on flood fighting (i.e. enhancement of public preparedness) and implementing school based flood disaster education (i.e. capacity development). Public awareness is the basis for flood fighting and it is essential for public to be proactive and look for the problems and causes before floods happens. Meanwhile, within the education sector it urges to create curriculum on disaster management to educate school children and students in the flood fighting techniques.




Flood drills (banks protection in Fujikawa).


Rescue and evacuation demonstration.


Experiencing of making sandbags.

Tuesday, August 25, 2009

Sunday, August 16, 2009

Day of Defense - Completing a Doctoral Dissertation

Two weeks ago, She turned to sweat although she could handle everything elegantly (well done, Congrats !! ).










Friday, July 31, 2009

Absorbing (non-reflecting) boundary condition

An absorbing BCs has been formulated and applied to SUIKOU2D in conjunction with MacCormack and TVD schemes. The inclusion of the boundaries is very important in the successful application of any numerical techniques. Hyperbolic equations are particularly sensitive because errors introduced at the boundaries are propagated and reflected throughout the grids. This, in many cases, may results in instability or incorrect flow values.

Numerical modeling of inundation flow often involves computational domains that are very large. Discretizing the entire domain and solving the flow equations turn out to be a tedious jobs in term of times and memory. Therefore, the physical domain has been truncated by introducing a pseudo boundary. Here, the use of pseudo boundary as open boundary aids in reducing the size of computational domain and and emphasizes the interest area only.


There are two possible flow conditions may occur in the pseudo boundary; sub-critical or super-critical flows accompanied with shocks where it needs special treatment on each. An ideal pseudo boundary condition should meet the following criteria:
(i) it should be compatible with physical conditions of the nature.
(ii) it should not degrade/defect the numerical solutions.
(iii) it should absorb the outgoing waves to avoid any reflections.

Several established methods are available for pseudo boundary. The simplest approach is by implementing two ways, including
1. extrapolation of flow variables from the interior node (Froude >=1);
2. solved by MoC (Froude <1).

Test Case

A 10m height of water in reservoir in upstream part of computational domain. It is assumed some buildings in the downstream part as represented by random blocks. Initially, it is dry in the downstream. Suddenly the reservoir partially bursts and inundates downstream part.


The simulations are carried out on the basis of;
a. The first case, all of outer BCs of the computational domain is considered as wall.
There is no incoming/outcoming flux through walls. The shocks will be reflected as they hit the walls.
b. Second, the downstream part is truncated by pseudo BC.
All incoming/outcoming shocks will be absorbed as represented flows pass through the downstream wall without any reflections.

The animations of water surface during 1200 seconds after breach are as shown below.
(click on the image to run animation)

a. case no.1 (walls BC).



b. case no 2. (non reflecting BC).


c. Water depth along x-axis at center of breach.

Obviously seen, the lowering water depth in reservoir occurs in case no. 2 since there is out flowing flux through pseudo BC, whilst no.1 is reflected back.

to be continued....



Tuesday, May 19, 2009

Tuesday, April 21, 2009

Afflux and Backwater

As water engineers we often know terms of 'backwater' rather than 'afflux'. Why?. Don't be confused!
In hydrology, afflux is defined as a rise in the water level immediately upstream of and due to a natural or artificial obstruction. Backwater is a consequence of afflux, in other words the afflux brings 'backwater effect'.

Friday, April 10, 2009

TVD Scheme for SUIKOU-2D v2.0

TVD stands for Total Variation Diminishing, a scheme to eliminate the numerical oscillations or commonly occurred in the explicit numerical methods when they are approaching the high gradient regions. The mathematical expressions of TVD can be reviewed here. I am not going to explain detail about TVD but systematically outlining its implementation to the current version of SUIKOU-2D.
As in previous post, SUIKOU-2D v1.0 was developed to solve full set of Shallow Water Equations (SWEs) using the explicit MacCormack Method . Artificial viscosity (AV) scheme, a control of numerical dissipations to handle shock waves was added. AV is acting as a fashioned approach where the viscosity/turbulence parameters are given as fixed values to all computational steps. It takes series of iterations to get a convergence result. Several improvement efforts has been sought and now it's being altered by TVD scheme in the latest codes of SUIKO-2D. The convergence is quite faster compared to previous one. The general computation blocks are drawn as below figure.

In SUIKOU v2.0 a five-points symmetric TVD term has been used to remove the numerical oscillations and calculated after the corrector step.

where r( ) is scalar product of two vector Ui+1/2 and Ui-1/2 within the point brackets below:

in which U=(h,u,v)

these scalar products can be rewritten in detail as

The function G( ) is defined as

while the flux limiter is:

and C variable is a function of courant number, Cr
The imaginary grid points of above variables are described as below:

Back to AV, it's obviously seen that it is likely a simple model of TVD. The corrections are only made on the basis of water depth, h, whilst TVD deploys all flow variables (u,v,h) to furnish final results.

Wednesday, April 8, 2009

Numerical treatment of the source terms in SUIKOU-2D v2.0

The history of the numerical treatment of hydrodynamic model is extremely long and has been provided a lot of variance in the numerical approaches. Commonly, the flooding models are simplified by elimination the source terms. In consequences they are limited to simulate bore propagation or flash flood occurred in dambreak events.

Using TVD-MacCORMACK, a two-stage scheme gives a benefit where source terms can be easily treated and preserves that whole scheme has second order accuracy in both time and space. However, if the bottom topography shows strong variation it is required a special treatment of the source terms to eliminate or reduce the artificial numerical error caused by adding TVD corrections to the MacCORMACK. The treatment of source terms related to strong bed slope is adopted here.

to be continued ....

Saturday, April 4, 2009

Visualize results with Gnuplot

This article is briefly showing a hands-on guide to turn the output data of SUIKOU-2D into professional-looking graphs with Gnuplot, a freely distributed plotting tool.

According to FAQ 1.7, Gnuplot is freeware in the sense that you don't have to pay for it. However, it is not freeware in the sense that you would be allowed to distribute a modified version of your gnuplot freely.

The program could be downloaded here. Please read and accept the Copyrights to use it. Basically, Gnuplot is a command line driven plotting tool with extensive supports for many types of plots in either 2D and 3D with capabilities to draw using lines, points, boxes, contours, vector fields, surfaces, and various associated text, but it would be very nice to be able to have the FORTRAN codes to continue execution without fires it up in the command-line mode.

By inserting the below fortran code in SUIKOU-2D.for, it automatically displays interactive plots at the end of running program. Control plots could be managed by user in a separate text file of gnuport.txt, a compilation of selected shell scripts. It only requires "wgnuplot.exe" (1,906KB) that must be copied into folder where SUIKOU-2D.for is otherwise the plots won't be displayed.

Here is the Fortran code with an example of main program to call.
$freeform
program gnuport
call porting_gnuplot ( 'gnuport.txt' )
stop ''
end

subroutine porting_gnuplot(console)
character (len=100) command
character (len=*) console
integer status

integer system
write (command, *) 'wgnuplot ' // trim (console)
status=system(trim(command))
if (status.eq.0) then
write (*,*)

write ( *, '(a)' ) ' Normally end.'
else
write(*,*)
write ( *, '(a)' ) ' Fatal error!'

stop ''
end if

return
end

and a simple example of gnuport.txt
unset key
set title "Visualization with Gnuplot" font "Times-Roman,14"
set size ratio 0.35
set ticslevel 0
set ztics 5

set noxtics
set noytics
set zrange [0:10]
set xlabel "x-grid"
set ylabel "y-grid"

set cbtics 5
set cblabel "water depth (m)" offset character -2,0
set cbrange [0:10]
set palette rgbformulae 3,0,13
splot "y0004.gnu" matrix with pm3d

pause -1

set size ratio 1.35
set view map

splot "y0004.gnu" matrix with pm3d
pause -1
set view map
set contour base

set palette rgbformulae 3,0,13
set cbtics 5

set cbrange [0:10]
unset surface
splot "y0004.gnu" matrix with lines palette
pause -1
a=0.01
plot "u0004.gnu" using 1:2:(a*$3):(a*$4) with vector
pause -1


Screenshots:





It's a simple work to make fruitful life, isn't? :)

Link:
http://gnuplot.sourceforge.net/demo/

Sunday, March 29, 2009

Dam burst disaster

It's a classical word that institution/government reacts aftermaths rather than preventive countermeasures. See the recent disaster of the dam burst, Situ Gintung. The water authority has been immediately issuing responses to take actions for similar cases may occurred.
http://www.malangpostnews.co.id/index.php?option=com_content&view=article&id=690:waspadai-bendungan-karangkates&catid=47:agropolitan&Itemid=75

Surely there is an emergency action plan (Rencana Tindak Darurat-RTD ?) for such hazard due to flash flood caused by dam break for any dams and water structures. Definitely, this plan is including the worst scenarios and the mitigation plan. It is an obligation for most of water projects. Then how it's being implemented. Are there any early warning systems? or just pile up the documents in the office.

Moreover, it's still questionable and debatable on the accuracy of past RTD studies. The rising question is when the study was carried out and what kind approaches they used. If it was done several years or even decades ago, no doubt to revise it.

Take a simple fact. Was RTD being studied with 1D model? If the answer is yes, definitely it has to be updated. But if the answer is no (used advanced approaches) another question is still coming.

What kind of topography data was taken? How was the land use data?
Doing study of flash flood, it's absolutely required high accuracy DEM. Using derived DEM from1:25.000 map is not sufficient enough since more details (roads, housing etc) will be uncovered. As consequences the results are inaccurate. The landuse during RTD studies and current situation is different. It has been altered. That sounds better if it was properly projected within these studies.

Then what shall we do?
Well. As I understand so far, this DEM problem is mostly concerns not only by developing countries but also developed countries. It is very costly to have it and needs more resources to analyze (eg. LiDAR data). Perhaps the aerial photo of the prone areas to inundation is a mid solution. If it's required the ground leveling has to be done at specific area needs to be detailed. Combined with the existing DEM, more accurate topography map could be obtained and a flash flood modeling could be set up. Alternatively, a physical model test with detail villages is also worth to be done.

Despite how much money will be spent on this study and who will do it, those are just about my opinions as water practitioner dealing with such flood risks. Indonesia is still my lovely country.
May God bless us, all victims and their family in this disaster, Amien.

Old articles but still worth readings....

Almost a year I didn't update this blog since the last writing. I don't know whether I am lazy or busy with my recent jobs but that's the facts!. At the moment, I've been involved in a project with new challenges slightly different with this game. According to the regulations it's strictly prohibited to write results here before being published publicly. I promise then I'll share it here. It's so exciting for hydraulics ...LoL..

By the way, this weekend I tried to check my old backups and do a regular maintenance. Oh lucky me ! I found the old stuffs written almost ten years ago.









Those were class notes used to lecture undergraduate level. It seemed to be so ambitious by pushing the students to master it since it's usually given at graduate level or higher.

Again, whether they did like and enjoy this mathematical game or were really hate to learn it, I believe someday they will recognize how its worth. Particularly when they found some jobs required those skills. Probably some of them are pursuing higher education and got stuck on their research works. Surely! it's not bad to recite it. Those who are in undergraduate level and want to learn this game, it's right time to start it now.

Wish you all success and enjoy your time !
(articles are available upon email request)