Defining PDE with float exponent #749
Unanswered
Pranay-Nagrani
asked this question in
Q&A
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
For question 1: The tensor f has values between 0 and 1 from a physics perspective. Is there a way to make sure f does not go below 0? Further, I tried to use tf.cast to convert the tensor to floating point type but it remains int32 always. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See the first example and code of https://doi.org/10.1137/21M1397908 |
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
-
Hi Dr. Lu,
I am developing a PINNs code to solve an inverse problem and I have a PDE in which the exponent is a float and not an integer of dependent tensor as shown below in last term of eqn1:
del_stress = 420.0-5.0
stress_min = 5.0
del_time = 113.31-0.052
time_min = 0.052
del_shear_rate = 5.02-0.0797
shear_min = 0.0797
del_r = (14.455-13.334)*1e-3
eps = dde.Variable(0.5)
def pde(x,y):
I have two questions:
Due to the float exponent (1.5 in this case), the model outputs a NaN value for PDE residual when I start training at step 0. But if I change the exponent from 1.5 to 2 in the last term, the model works fine. Can you please let me know why this is happening and if there is any workaround?
The dependent tensor f in above code is a function of independent tensors r and t. Is there a way to integrate this function f with respect to r so that it is only a function of t?
Beta Was this translation helpful? Give feedback.
All reactions