Replies: 1 comment
-
|
You need to implement using pure TensorFlow or PyTorch code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @lululxvi,
Thank you and your collaborators again for your work on this library.
I have an inverse problem where I'd like to predict the flow field of a rarefied gas around a cylinder, and I have training data. I'd like to implement a no-penetration boundary condition $n \cdot v = 0 $ in the PINN at the surface of the cylinder. I've tried imposing the non-penetration BC as hard penalty function. To compute the normal to my cylinder, I have to use a numpy array instead of keeping the backend tensors. So I've tried imposing a hard BC the following way:
The function no_penetration computes the normal component of the flow correctly. However, it returns the following error: "unhashable type: 'numpy.ndarray'". Perhaps I should not try to convert to np.array. Also, I'm not sure this is the right approach even without the np.array conversion problem. Would you have suggestions on how to implement a no-penetration BC ?
Beta Was this translation helpful? Give feedback.
All reactions