GeoscienceAustralia/anuga_core

inflow_boundary

Dongxueyang opened this issue · 2 comments

Hi everyone:

@stoiver

I find an inlet boundary example and try to use it in a model. The command is like this:

fixed_inflow = anuga.Inlet_operator(domain, inflow_region , Q=inflow_rate)

I can only give the region and Q, but I can not give the direction of the inflow.
I also find inflow_boundary in boundaries.py. But I do not know how to give the direction of flow.
Is it possibile that I can set a inflow boundary with directions?

Best regards
dong

Possibly the better approach is to use flow at a line and use the line which is perpendicular to the flow?
Something like this:
line1 = [[294204.155,6172027.574],[294259.846,6172030.668]]
filename1 = os.path.join( Storm_data, 'localhydSub9.tms')
Q1 = anuga.file_function(filename=filename1, quantities=['rate'])
print filename1
anuga.Inlet_operator(domain, line1, Q1)

@rudyvandrie Thank you so much, I have achieve it using the same way as you say. It is useful.