Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Maximum Operator of Domain in an Assembly
Posted Nov 9, 2015, 11:57 a.m. EST Heat Transfer & Phase Change, Geometry, Parameters, Variables, & Functions, Results & Visualization Version 5.1 10 Replies
Please login with a confirmed email address before reporting spam
I am not sure how to put this problem, so I will try with bullet points:
- I have an assembly consisting of an array of circles in a rectangular matrix (please see picture).
- I have a Heat Transfer Physics and I need to define a global ODE. The ODE should read the maximum temperature of a single domain (whether circles or rectangle)
- I would like to set a maximum operator for the entire assembly (including the circles and the rectangle domains)
- In the ODE, I would like to read the maximum temperature of a single domain, but using the maximum operator for the entire assembly.
- It is possible to "split" the maximum operator in different domains? Something like maxop(circle1.T), maxop(circle2.T), maxop(rectangle,T) etc., maxop being the overall operator.
That is, I would like to have the option to read the maximum temperature on each domain, without the need of creating multiple operators?
Paul
Attachments:
Please login with a confirmed email address before reporting spam
Attachments:
Please login with a confirmed email address before reporting spam
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
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
Please login with a confirmed email address before reporting spam
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
Attachments:
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
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.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
Jeff
Attachments:
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
