How to generate a fixed uniform training samples using PointwiseInteriorConstraint #1365
-
|
Is it possible to generate a fixed uniform spatio-temporal ((x, t)) mesh using the PointwiseInteriorConstraint class for multiple time steps to have a full control on the training mesh? I tried the following approach: geo = Line1D(0, 10) for j, time_val in enumerate(time_range_interior): According to the above code, for each "time_val", different spatial points (x) are sampled from "geo". However, my goal is to use the same fixed set of spatial samples for all "interior_t{j}"s constraints. I would appreciate your advice on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I figured it out by using the PointwiseConstraint class and .from_numpy() method. Full description of the arguments can be found in physicsnemo.sym.domain.constraint.PointwiseConstraint. |
Beta Was this translation helpful? Give feedback.
I figured it out by using the PointwiseConstraint class and .from_numpy() method. Full description of the arguments can be found in physicsnemo.sym.domain.constraint.PointwiseConstraint.