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.
Finding magnitude of a vector for use in an analytic function
Posted May 13, 2023, 7:35 a.m. EDT Modeling Tools & Definitions, Equation-Based Modeling, Modeling Workflow Version 5.0 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I am hoping someone might be able to help me write an expression for the magnitude of an electric field. The electric potential is solved in the electrostatics module. I am using a 2D axisymmetric model. I hoope to implement this operator in an analytic function that depends on the magnitude of the electric field at that point.
So far I haven't been able to find any operator such as norm() or magnitude() or | | to represent the magnitude. I found an online solution for a simimlar problem in the tds module where the following was used to find the magnitude of mass flux of a certain species ineach direction. I coudn't convert this into a form that comsol would acccept for my problem.
sqrt(tds.mflux_cx^2+tds.mflux_cy^2+tds.mflux_cz^2)
Any help that anyone is able to provide would be much apreciated.
Thanks, Lee