Anuga-user Digest, Vol 43, Issue 1

15 views
Skip to first unread message

anuga-use...@lists.sourceforge.net

unread,
Mar 1, 2012, 1:41:36 AM3/1/12
to anuga...@lists.sourceforge.net
Send Anuga-user mailing list submissions to
anuga...@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/anuga-user
or, via email, send a message with subject or body 'help' to
anuga-use...@lists.sourceforge.net

You can reach the person managing the list at
anuga-us...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Anuga-user digest..."


Today's Topics:

1. Re: Anuga shallow water simulation (Stephen Roberts)
2. Re: Anuga Shallow water simulation [SEC=UNCLASSIFIED]
(Gareth...@ga.gov.au)
3. Running parallel scripts (Benjam?n Carri?n)
4. Negative triangle area (mlap...@caltech.edu)
5. Re: Anuga shallow water simulation (Silvia Franceschi)


----------------------------------------------------------------------

Message: 1
Date: Tue, 28 Feb 2012 07:31:03 +1100
From: Stephen Roberts <stephen...@anu.edu.au>
Subject: Re: [Anuga-user] Anuga shallow water simulation
To: Silvia Franceschi <silvia.f...@gmail.com>
Cc: anuga...@lists.sourceforge.net
Message-ID: <4F4BE807...@anu.edu.au>
Content-Type: text/plain; charset="iso-8859-1"


Hi Silvia,

We have recently been working on "operators" and there is one called an
Inlet_operator.

You define amount of water to be added to a line. By placing the line
close at the upstream location of your river you can setup a specified
rate of water coming into your river.

Have a look at the directory "structures" and the script
"testing_inlet_operator.py"

Cheers
Steve


On 28/02/2012 5:43 AM, Silvia Franceschi wrote:
> Hi all,
> I am trying to run a shallow water simulation on a river with a
> defined Inflow_boundary.
> I am having several issues right now and would appreciate some advice.
>
> When I import:
>
> from anuga.shallow_water.boundaries import Inflow_boundary
>
> and then set the inflow rate to a fixed value:
>
> Bin = Inflow_boundary(domain, rate=ref_flow)
>
> I get and error that the global variable: epsilon
> is not set.
>
> Looking at the testcases I tried to import:
> from anuga.config import epsilon
>
> but that didn't solve the problem.
>
> So I cheated and inside boundary.py I set a variable:
> epsilon = 1.0e-12
>
> at line 399 to make the condition:
> if slope > epsilon and mannings_n > epsilon:
>
> work! :)
>
> At that point I have another error a couple of lines later in:
>
> q = num.array([elevation + depth, xmomentum, ymomentum], num.Float)
>
> which I changed to
>
> q = num.array([elevation + depth, xmomentum, ymomentum], num.float)
>
> At that point the simulation started. It is running and will take a
> while, but the last change was too strange to me to be real :)
> I apologize I am a python ignorant, so I am trying to do what I can.
>
> Then I finally read this piece of documentation at the very start of
> the function:
>
> # FIXME (Ole): This is work in progress and definitely not finished.
> # The associated test has been disabled
>
> So at that point I am wondering if it is supposed to work or not.
> Could you please give me some advice on how such a kind of simulation
> should be best performed?
>
> Thank you very much for any hint.
>
> Best regards,
> Silvia
>
>
> PS: I am using today's latest svn checkout.
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
>
>
> _______________________________________________
> Anuga-user mailing list
> Anuga...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/anuga-user


--
+--------------------------------------------------------------------+
| Steve Roberts | My Office: (61)(2) 6125 4445 |
| Department of Mathematics | Math Office: (61)(2) 6125 2908 |
| Mathematical Sciences Institute| Fax: (61)(2) 6125 4984 |
| John Dedman Building #27 | mailto:stephen...@anu.edu.au |
| Australian National University | http://www.maths.anu.edu.au/~steve|
| Canberra ACT 0200 AUSTRALIA | ANU CRICOS # 00120C |
+--------------------------------------------------------------------+


-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 28 Feb 2012 08:57:56 +1100
From: <Gareth...@ga.gov.au>
Subject: Re: [Anuga-user] Anuga Shallow water simulation
[SEC=UNCLASSIFIED]
To: <silvia.f...@gmail.com>
Cc: anuga...@lists.sourceforge.net
Message-ID:
<60D02F9C526B7F48B2194...@EXCCR01.agso.gov.au>
Content-Type: text/plain; charset="us-ascii"

Hi Silvia,
You might want to have a look at the 'inlet_operator' in anuga.structures - this can be used to impose a discharge through a cross-section.
Cheers,
Gareth.


Gareth Davies

Hydrodynamic Modeller

Regional Risk Section,

International Group

Geoscience Australia.

Ph: (02) 6249 9655

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Mon, 27 Feb 2012 15:57:11 -0300
From: Benjam?n Carri?n <benja....@gmail.com>
Subject: [Anuga-user] Running parallel scripts
To: anuga...@lists.sourceforge.net
Message-ID:
<CACCSoeGaGEbBuUa6av51U2=A1a2kc0GYqAX+...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear fellow users of Anuga,

I have a quick question: is it possible to run two *.py scripts at the same
time? Or does Anuga mix up the cache or someting that mess the results?

I've tried to run several scripts with small changes for the same scenario,
in separated folders and with different names, but there's something very
disturbing in the results, which I don't get when I run a single file.

Thanks in advance!

--
Benjam?n Carri?n Aretxabala
Hydraulic Engineering at PRDW
www.prdw.com
---------------------------------------------------------------------------------
Por favor, considera el medio ambiente antes de imprimir este e-mail
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Tue, 28 Feb 2012 13:54:00 -0800 (PST)
From: mlap...@caltech.edu
Subject: [Anuga-user] Negative triangle area
To: anuga...@lists.sourceforge.net
Message-ID:
<55950.131.215.67.198...@webmail.caltech.edu>
Content-Type: text/plain;charset=utf-8

Dear fellow users of Anuga,

I am systematically getting a "Negative triangle area" verbose from
shallow_wat_ext.c (l.1443). A comment at this line reads "If the mesh is
'weird' near the boundary, the triangle might be flat or clockwise:".
I guess this is due to the fact that my domain isn't a rectangle but has
'rounded' areas.
Has anyone encountered and fixed this problem before? Any insight would be
really appreciated.

Many thanks in advance,

Mathieu Lapotre


------------------------------

Message: 5
Date: Thu, 1 Mar 2012 07:41:29 +0100
From: Silvia Franceschi <silvia.f...@gmail.com>
Subject: Re: [Anuga-user] Anuga shallow water simulation
To: Stephen Roberts <stephen...@anu.edu.au>
Cc: anuga...@lists.sourceforge.net
Message-ID:
<CABCykq+VJchvxcEDw-_pZyWv...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thanks Steve and Gareth!
finally I could run a simulation, defnitely happy! :)
My congratulation for the software, really powerfull!
I would ask you two more things, sorry for bothering...
1. when do you think it would be possible to have a new version of Anuga
for windows containging also the inlet_operator? I use linux in office but
my laptop has windows and I would try to make some testing at home...
2. what boudary condition do you usually use for sections in which you need
to let the water go outside the domain? In my case I tried with the
Bout = anuga.Dirichlet_boundary([tide, 0, 0]) # Mean water level
Bout = anuga.Transmissive_stage_zero_momentum_boundary(domain) # Neutral
boundary

But in both the cases the domain's boundary seems to be a wall and water do
not flow out the domani...

Thank you!

Silvia

On Mon, Feb 27, 2012 at 9:31 PM, Stephen Roberts <stephen...@anu.edu.au
> wrote:

>
> Hi Silvia,
>
> We have recently been working on "operators" and there is one called an
> Inlet_operator.
>
> You define amount of water to be added to a line. By placing the line
> close at the upstream location of your river you can setup a specified rate
> of water coming into your river.
>
> Have a look at the directory "structures" and the script
> "testing_inlet_operator.py"
>
> Cheers
> Steve
>
>
>
> On 28/02/2012 5:43 AM, Silvia Franceschi wrote:
>
> Hi all,
> I am trying to run a shallow water simulation on a river with a defined
> Inflow_boundary.
> I am having several issues right now and would appreciate some advice.
>
> When I import:
>
> from anuga.shallow_water.boundaries import Inflow_boundary
>
> and then set the inflow rate to a fixed value:
>
> Bin = Inflow_boundary(domain, rate=ref_flow)
>
> I get and error that the global variable: epsilon
> is not set.
>
> Looking at the testcases I tried to import:
> from anuga.config import epsilon
>
> but that didn't solve the problem.
>
> So I cheated and inside boundary.py I set a variable:
> epsilon = 1.0e-12
>
> at line 399 to make the condition:
> if slope > epsilon and mannings_n > epsilon:
>
> work! :)
>
> At that point I have another error a couple of lines later in:
>
> q = num.array([elevation + depth, xmomentum, ymomentum], num.Float)
>
> which I changed to
>
> q = num.array([elevation + depth, xmomentum, ymomentum], num.float)
>
> At that point the simulation started. It is running and will take a while,
> but the last change was too strange to me to be real :)
> I apologize I am a python ignorant, so I am trying to do what I can.
>
> Then I finally read this piece of documentation at the very start of the
> function:
>
> # FIXME (Ole): This is work in progress and definitely not finished.
> # The associated test has been disabled
>
> So at that point I am wondering if it is supposed to work or not.
> Could you please give me some advice on how such a kind of simulation
> should be best performed?
>
> Thank you very much for any hint.
>
> Best regards,
> Silvia
>
>
> PS: I am using today's latest svn checkout.
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!http://p.sf.net/sfu/learndevnow-dev2
>
>
>
> _______________________________________________
> Anuga-user mailing listAnuga-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/anuga-user
>
>
>
> --
> +--------------------------------------------------------------------+
> | Steve Roberts | My Office: (61)(2) 6125 4445 |
> | Department of Mathematics | Math Office: (61)(2) 6125 2908 |
> | Mathematical Sciences Institute| Fax: (61)(2) 6125 4984 |
> | John Dedman Building #27 | mailto:stephen...@anu.edu.au <stephen...@anu.edu.au> |
> | Australian National University | http://www.maths.anu.edu.au/~steve|
> | Canberra ACT 0200 AUSTRALIA | ANU CRICOS # 00120C |
> +--------------------------------------------------------------------+
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

------------------------------

_______________________________________________
Anuga-user mailing list
Anuga...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/anuga-user


End of Anuga-user Digest, Vol 43, Issue 1
*****************************************

Reply all
Reply to author
Forward
0 new messages