Please login with a confirmed email address before reporting spam
Basically I am changing the pole shape using the parametric sweep and I wanted to define the deviation of the field as I wrote before and evaluate it for each different shape.
If the parametric geometry variables can also be used for the post processing axis, then I can offer another work-around.
When you create a 2D or 3D Plot Group, Comsol takes into account the sub-domains that are available from the Data Set selections. If your selection and the solution enables you to examine the sub-domain or the sub-domains that your axis is crossing, then you can define your axis in an analytical form. Comsol can let you focus over a section of the sub-domain(s) by the help of logical operators. Lets say that your axis is 10[mm] away from the r=0 axis and it is 20[mm] in length, you can write something like:
mf.normB*(r>10[mm])*(r<=10[mm]+e)*(z>-20[mm])*(z<=0[mm])
e: the width of the axis of interest
This enables you to use the post processing options under the 2D or 3D Plot Groups. Needless to say, this calculation will highly be dependent on the mesh around that axis. If you don`t have any geometry there, you can just add a line in your geometry so that you can later on increase the mesh by using Distribution option under Mesh.
More cleaner approach would be to define the axis as an Analytical Function under Global>Definitions>Functions>Analytic. Then define a variable under Component>Variables and use the analytical function to collect and store data during solution. With this option, you can use the built in mathematical functions for additional post processing.
Hope it helps,
Onur
[QUOTE]
Basically I am changing the pole shape using the parametric sweep and I wanted to define the deviation of the field as I wrote before and evaluate it for each different shape.
[/QUOTE]
If the parametric geometry variables can also be used for the post processing axis, then I can offer another work-around.
When you create a 2D or 3D Plot Group, Comsol takes into account the sub-domains that are available from the Data Set selections. If your selection and the solution enables you to examine the sub-domain or the sub-domains that your axis is crossing, then you can define your axis in an analytical form. Comsol can let you focus over a section of the sub-domain(s) by the help of logical operators. Lets say that your axis is 10[mm] away from the r=0 axis and it is 20[mm] in length, you can write something like:
mf.normB*(r>10[mm])*(r-20[mm])*(zDefinitions>Functions>Analytic. Then define a variable under Component>Variables and use the analytical function to collect and store data during solution. With this option, you can use the built in mathematical functions for additional post processing.
Hope it helps,
Onur