|
From: Stephen R. <ste...@an...> - 2018-10-30 06:03:30
|
Hi Komals,
Yes it is possible to use a previous simulation to start up a new simulation.
You have to be a little careful if you are working in parallel. So let's just assume that you are working sequentially.
And there is a problem that the sww file does not contain boundary tag information. So you will need to recreate that.
So probably the easiest way is to create your domain as you did in your first run, with all the boundary info etc, and then set your stage with something like
pc=anuga.plot_utils.get_centroids('my_sww.sww', timeSlices='last')
domain.set_quantity('stage', numeric=pc.stage, location='centroids')
# You might like to pick the last time from the sww file
new_time = pc.time[0]
domain.set_starttime(new_time)
Cheers
Steve
==============================
Stephen Roberts
Undergraduate Convenor
Mathematical Sciences Institute
Room 4.74 Hanna Neumann Building #145
The Australian National University
Canberra, ACT 2600 AUSTRALIA
Ph: +61 2 61254445
CRICOS: 00120C
________________________________
From: komals <ko...@cd...>
Sent: Tuesday, 30 October 2018 3:56:32 PM
To: anu...@li...
Cc: Girishchandra Rajaram Yendargaye
Subject: [Anuga-user] Reusing .sww for Normal flow
Hello,
Can we use the output .sww from a simulation as input to a new simulation, in order to retain the water level (stage) from previous simulation. We are trying to implement normal flow using anuga, is there already some function available . We have tried set stage operator and polygonal set stage operator .
Regards,
Komal
------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
------------------------------------------------------------------------------------------------------------
|