Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inflow_boundary #227

Open
Dongxueyang opened this issue Mar 6, 2020 · 2 comments
Open

inflow_boundary #227

Dongxueyang opened this issue Mar 6, 2020 · 2 comments

Comments

@Dongxueyang
Copy link

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

@rudyvandrie
Copy link

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)

@Dongxueyang
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants