Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 12:06 GMT-5
I have added another picture to describe my question. I hope this helps!
I have added another picture to describe my question. I hope this helps!
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 13:31 GMT-5
Hello Paul,
You could use a boolean expression in your integrand, something like
maxop(u*(dom==1))
to compute the max on domain 1, etc.
Best,
Jeff
Hello Paul,
You could use a boolean expression in your integrand, something like
maxop(u*(dom==1))
to compute the max on domain 1, etc.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 13:47 GMT-5
Hey Jeff,
Thank you very much for the answer. I have tried this command with the temperature:
maxop1(T*(dom==1))
but I get 0 [K]. I have also tried to input dom==6 (I only have 5 domains) and it gives the same results. Any idea what am I doing wrong?
Paul
Hey Jeff,
Thank you very much for the answer. I have tried this command with the temperature:
maxop1(T*(dom==1))
but I get 0 [K]. I have also tried to input dom==6 (I only have 5 domains) and it gives the same results. Any idea what am I doing wrong?
Paul
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 14:00 GMT-5
Hard to say without seeing your file. Please post it if possible.
Jeff
PS: That it returns 0 with dom==6 makes sense since the boolean expression is false and therefore evaluates to zero.
Hard to say without seeing your file. Please post it if possible.
Jeff
PS: That it returns 0 with dom==6 makes sense since the boolean expression is false and therefore evaluates to zero.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 14:08 GMT-5
Oh, I have just realized that because of the way the geometry is built, the assembly is split in even more domains. But still, if I plot dom==1, I have 0 [K], which is weird.
Oh, I have just realized that because of the way the geometry is built, the assembly is split in even more domains. But still, if I plot dom==1, I have 0 [K], which is weird.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 14:08 GMT-5
Oh, I have just realized that because of the way the geometry is built, the assembly is split in even more domains. But still, if I plot dom==1, I have 0 [K], which is weird.
Oh, I have just realized that because of the way the geometry is built, the assembly is split in even more domains. But still, if I plot dom==1, I have 0 [K], which is weird.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 14:12 GMT-5
Hard to say without seeing your file. Please post it if possible.
Jeff
PS: That it returns 0 with dom==6 makes sense since the boolean expression is false and therefore evaluates to zero.
Oh, I had the selection of the maximum operator only on the circles. Now it works! Thank you very much, Jeff! You have saved me hours of time spent for setting different formulae and operators.
[QUOTE]
Hard to say without seeing your file. Please post it if possible.
Jeff
PS: That it returns 0 with dom==6 makes sense since the boolean expression is false and therefore evaluates to zero.
[/QUOTE]
Oh, I had the selection of the maximum operator only on the circles. Now it works! Thank you very much, Jeff! You have saved me hours of time spent for setting different formulae and operators.
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
9 nov 2015, 14:14 GMT-5
No problem!
No problem!
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
10 nov 2015, 09:20 GMT-5
Hey Jeff,
In the same topic, do you know if it is possible to implement a similar artifice for a domain ODE? Something like maxop(T*dom), where the domain is chosen automatically?
Paul
Hey Jeff,
In the same topic, do you know if it is possible to implement a similar artifice for a domain ODE? Something like maxop(T*dom), where the domain is chosen automatically?
Paul
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
10 nov 2015, 14:23 GMT-5
Sure, you can use the same idea in any of the interfaces, including Domain ODEs. It's easy for you to check for yourself by building a toy model for which you know the solution, like the one attached, which correctly returns that the time integral from t=0 to t=1 of the max of x*y over[0;1]x[0;1] is 2.
Jeff
Sure, you can use the same idea in any of the interfaces, including Domain ODEs. It's easy for you to check for yourself by building a toy model for which you know the solution, like the one attached, which correctly returns that the time integral from t=0 to t=1 of the max of x*y over[0;1]x[0;1] is 2.
Jeff