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

Neumann boundary condition and Navier stokes formulation #14

Open
zonexo opened this issue Jan 14, 2021 · 3 comments
Open

Neumann boundary condition and Navier stokes formulation #14

zonexo opened this issue Jan 14, 2021 · 3 comments

Comments

@zonexo
Copy link

zonexo commented Jan 14, 2021

Hi,

I am now trying to simulate a flow past cylinder, imposed the NS eqns.

I wrote the current code based on the previously modified Burger's eqn code which uses ids bc.

My variables are:

x = sn.Variable('x')
y = sn.Variable('y')

u = sn.Functional('u', [x,y], 8*[80], 'tanh')
v = sn.Functional('v', [x,y], 8*[80], 'tanh')
p = sn.Functional('p', [x,y], 8*[80], 'tanh')

My qns are:

  1. How do I impose the neumann bc for pressure p at the boundary?
  2. In the paper, the NS eqn is given as:

L1 = u_t + p_x + lamb1 (uu_x + v*u_v ) - lamb2 ( u_xx + u_yy )
L2 = v_t + p_y + lamb1 (uv_x + v
v_y ) - lamb2 *( v_xx + v_yy )

But shouldn't it be:

L1 = u_t + p_x + lamb1 (uu_x + u*u_y ) - lamb2 ( u_xx + u_yy )
L2 = v_t + p_y + lamb1 (vv_x + v
v_y ) - lamb2 *( v_xx + v_yy )

(uu_x + vu_v ) -> (uu_x + uu_y )
(uv_x + vv_y ) -> (vv_x + vv_y )?

Thanks for the help!

@ssingh-ipa
Copy link

Was this issue solved? I can't find any examples where neumann boundary condition is imposed using sciann.

@pradhyumna85
Copy link

@ehsanhaghighat is it possible to implement Neumann BCs in SciANN?

@pradhyumna85
Copy link

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

3 participants