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.
Plotting an analytical function with the right Unit
Posted 11 mai 2016, 13:37 UTC−4 Low-Frequency Electromagnetics Version 4.2, Version 5.2 0 Replies
Please login with a confirmed email address before reporting spam
I am new to COMSOL and am trying to rebuild a model and the graphics of the attached tutorial. The tutorial is for version 5.2 but I am using 4.2 which was not a problem so far.
I am struggling in reproducing figure 4 (see attached pdf-file). I get an offset between the analytical solution and calculated solutions. I think it is a Unit-problem.
The attached figures 1 to 3 show:
1. How I defined the analytical solution (1.png): V = 1[A]*rho0/(2*pi)*(1/abs(x-x1)-1/abs(x-x2))
Does the error lie here? Do I somehow have to tell COMSOL what the units of the arguments x, x1 and x2 are?
2. How I added the function to the data set (2.png): This should be okay.
3. How I tried to plot it in a 1D Line graph (3.png): Here I cannot choose a Unit. But strangely, if I put the Unit "dV" (as it is in the point
graph 1 for the calculated solution (dots)) and press "Plot" the line is correct but the "dV" is deleted and if I try to do this for both line graphs it doesn't work as the dV always gets deleted as a Unit...
So the question is: How do I get this correct in a way that I can choose the right Unit in step 3?
Thank you very much in advance!
Sina
Attachments:
Hello Sina
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.