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

Incorporating force and viscosity functions #4

Open
Tariq97 opened this issue Aug 20, 2022 · 1 comment
Open

Incorporating force and viscosity functions #4

Tariq97 opened this issue Aug 20, 2022 · 1 comment

Comments

@Tariq97
Copy link

Tariq97 commented Aug 20, 2022

Hi,

This is a very nice paper and thanks for keeping the code online. I have a doubt regarding how you include viscosity and force function in your input. For example in the original paper, for Navier stokes, the input shape to fourier layer was (batch_size, grid_x, grid_y, widths).

Did you incorporate viscosity and forcing function in this input? If so, can you please let me know how you added these parameters? Viscosity I believe is a scalar, so I am confused how it fit in the inputs.

Looking forward for your reply,
Thanks. Tariq

@alasdairtran
Copy link
Owner

Hi Tariq,

Did you incorporate viscosity and forcing function in this input?

Yes, even though viscosity is a scalar, you can also think of it as a constant function over the (x,y) coordinates. So for every point on the grid, we have 5 pieces of information: vorticity, external force, viscosity, x-coordinate, and y-coordinate. Thus our input shape is now [batch_size, grid_x, grid_y, 5].

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