anuga_core icon indicating copy to clipboard operation
anuga_core copied to clipboard

inflow_boundary

Open Dongxueyang opened this issue 4 years ago • 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

Dongxueyang avatar Mar 06 '20 04:03 Dongxueyang

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 avatar Apr 15 '20 04:04 rudyvandrie

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

Dongxueyang avatar Apr 15 '20 05:04 Dongxueyang