Replies: 2 comments 3 replies
-
@lululxvi Sorry to disturb you, but is it possible to set different constraints on one variable? |
Beta Was this translation helpful? Give feedback.
3 replies
-
@BeteixZ Hi,sir. How did you end up dealing with this? Could you show me your final 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
-
Hello,
I'm working on a simple cylinder wake flow with the pde
and boundary conditions
And then I write the corresponding codes as follows
I set up an FNN and applied the hard constraints:
and then trained with adam (10000 iterations) and l-bfgs (15000 iteration), the final loss is around 3e-2 basically induced by bc_inlet_u
and the result(lower) is not good compared to the ground truth(upper):
I guess it's the problem of inlet_u which needs to be set as a hard constraint, but I have no idea how to couple
y * (y - 0.41) * ((x-0.2)**2+(y-0.2)**2-0.05**2) * u
withx * u + 4*0.3*y*(H-y)/H**2
. Can anyone help me with it? Thanks so much.Beta Was this translation helpful? Give feedback.
All reactions