-
Dear @lululxvi, Following the issue #780 I also have a question about I am trying to implement a problem of a flow in a porous medium where the medium is split in let's say three point clouds corresponding to pores, solid and edges in between. Each of the point clouds needs its own set of PDEs. So I want to train PINN on these three clouds using them as anchor points. I was trying to set the physics conditions for each of the point clouds using following pieces:
Help function to define if a point x belongs to a certain points cloud.
Put condition to the points in each cloud:
Put all together and test if it can be digested:
Unfortunately, I keep getting errors at this last stage. It seems this The error I get:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Use 2 OperatorBCs for eq_a and eq_b respectively? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestion, @forxltk. interestingly it worked to some extend (still getting an error but now at a latter stage, see below) in the following modification.
split the conditions:
Now the
BUT after the first step the error occurs:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@forxltk thanks for your valuable suggestions, not everything is working but I have a feeling being closer to the end of the tunnel.
Version of
I also tried
Now the model compiles and trains. But in the end I see that only the anchor points at the time = 0 and time =1 were actually taken for the training (and testing). So here a refinement is still needed. I guess it comes from the nature of |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@sashahexe You cannot use not eager mode in DeepXDE. If you want to print tensor values, you may try PyTorch backend. |
Beta Was this translation helpful? Give feedback.
tf.config.run_functions_eagerly(True)
convert the inputx
tondarray
, notTensor
orEagerTensor
. Maybe you can modified the source code ofndarray
or.ref
?np.isclose(x[0], 0)
withouton_boundary
.