Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
12.04.2023, 07:59 GMT-4
Hi Junfeng,
You can add an Average operator from the Definitions>Nonlocal Couplings menu. Then define it on the boundary (surface) where you want to compute the average. It will generate an operator with a name like aveop1
. Use it somewhere in your model as aveop1(T)
for the average temperature on that boundary.
Best regards,
Magnus
Hi Junfeng,
You can add an **Average** operator from the **Definitions>Nonlocal Couplings** menu. Then define it on the boundary (surface) where you want to compute the average. It will generate an operator with a name like `aveop1`. Use it somewhere in your model as `aveop1(T)` for the average temperature on that boundary.
Best regards,
Magnus
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
12.04.2023, 19:46 GMT-4
Thank you so much! What if I directly use boundary probe. Will that automatically give me the average?
I did something before your answer. I defined two boundary probes (T_c, T_h) on two surfaces for T and then put into a variable in terms of f (T_c, T_h). When I used f as my input, I only defined on one of the surface. It ran through, but I am not sure whether that is what I wanted or not.
Thank you so much! What if I directly use boundary probe. Will that automatically give me the average?
I did something before your answer. I defined two boundary probes (T_c, T_h) on two surfaces for T and then put into a variable in terms of f (T_c, T_h). When I used f as my input, I only defined on one of the surface. It ran through, but I am not sure whether that is what I wanted or not.
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
13.04.2023, 02:47 GMT-4
Hi Junfeng,
Yes, a boundary probe can be of an average type and would also work, but an average operator seems like a more flexible options. Probes are primarily intended for monitoring parts of the solution during a computation.
Best regards,
Magnus
Hi Junfeng,
Yes, a boundary probe can be of an average type and would also work, but an average operator seems like a more flexible options. Probes are primarily intended for monitoring parts of the solution during a computation.
Best regards,
Magnus