Edgar J. Kaiser
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2018年2月21日 GMT-5 07:19
Clarissa,
if I understand the issue properly, a simple way to achieve what you want is to add a second line plot using -r as x-axis expression.
Cheers
Edgar
-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Clarissa,
if I understand the issue properly, a simple way to achieve what you want is to add a second line plot using -r as x-axis expression.
Cheers
Edgar
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2018年2月21日 GMT-5 07:56
Hi Edgar,
Thank you for the response.
I did think of that, and technically that would solve the problem. My only issue with it is the "color matching" of the lines. The figures that I uploaded are a bit simplified and only contain the plots for two different times. I actually have around 6 different times for which I'm plotting the data. Now, for the line settings, I just use the cycle coloring, but if I add another line plot with the expression -r and all 6 times, the colors on one side of the graph won't match the colors on the other side.
The solution I see for that is to add 6 different lines, one for each time (instead of one line plot with multiple times) and manually pick the colors to match whatever I have on the first plot. I think I'll do that for now, but I was hoping there would be a better way to do this.
Thanks again for the fast response!
Best,
Clarissa
Hi Edgar,
Thank you for the response.
I did think of that, and technically that would solve the problem. My only issue with it is the "color matching" of the lines. The figures that I uploaded are a bit simplified and only contain the plots for two different times. I actually have around 6 different times for which I'm plotting the data. Now, for the line settings, I just use the cycle coloring, but if I add another line plot with the expression -r and all 6 times, the colors on one side of the graph won't match the colors on the other side.
The solution I see for that is to add 6 different lines, one for each time (instead of one line plot with multiple times) and manually pick the colors to match whatever I have on the first plot. I think I'll do that for now, but I was hoping there would be a better way to do this.
Thanks again for the fast response!
Best,
Clarissa
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2018年2月21日 GMT-5 08:07
Hi Clarissa,
The Cut Line data set does not redefine the independent variables (space variables) in the underlying data sets, so, for example, r, x, y, and z will behave as they would before. In an axisymmetric geometry, it means that .
What you can do is to use an expression that includes the local space variable for the Cut Line data set, which you find in the Advanced section, which has the same values as the arc length: . If you name it r2
, for example, and the radius of the geometry is, say, 0.5, then using an expression r2-0.5
will give you an x-axis than runs from -0.5 to 0.5.
Best regards,
Magnus Ringh, COMSOL
Hi Clarissa,
The Cut Line data set does not redefine the independent variables (space variables) in the underlying data sets, so, for example, r, x, y, and z will behave as they would before. In an axisymmetric geometry, it means that r\geq0.
What you can do is to use an expression that includes the local space variable for the Cut Line data set, which you find in the Advanced section, which has the same values as the arc length: 0 - 2r. If you name it ` r2`, for example, and the radius of the geometry is, say, 0.5, then using an expression `r2-0.5` will give you an x-axis than runs from -0.5 to 0.5.
Best regards,
Magnus Ringh, COMSOL
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2018年2月21日 GMT-5 08:16
Hi Magnus,
That works perfectly! Thank you!!
Best,
Clarissa
Hi Magnus,
That works perfectly! Thank you!!
Best,
Clarissa