Reflecting/periodic boundary condition in Modulus

Hello all,

I am struggling with some problem making PDE solver by implementing PINN using modulus.

Is it possible to implement some reflecting or periodic boundary conditions in Modulus?

For example, u(-1,t) = u(1,t) and u_x(-1,t) = u_x(1,t)

I tried to implement with tutorials but it fails…

https://docs.nvidia.com/deeplearning/modulus/user_guide/notebook/notebook.html

I am proceeding on my work based on the code above.

Any suggestions, links, or advice would be highly appreciated.

Thanks.

For periodic boundaries some of our models support periodic inputs. The idea is to transform the input to the NN using a sinusoidal function so the inputs are always periodic.

Some examples that use this technique are the 2D channel flow and Taylor Green problems in the user-guide.

1 Like

Thank you! I’ll try it and solved.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.