Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
coordinates of geometry objects
Posted 05.01.2014, 08:18 GMT-5 RF & Microwave Engineering, Geometry, Parameters, Variables, & Functions Version 4.4 2 Replies
Please login with a confirmed email address before reporting spam
Hi all!
How can I access the coordinates of geometric objects/domains for using in an expression?
Alternately: how can I use distance of a domain or primitive center from a plane in an expression?
Background: I'm trying to do a electrically steered phased patch array, in 3D. To get the phase shifts, I need to evaluate the distance of the patches from a virtual plane perpendicular to the intended direction of steering.
What I'd like:
arr1(1,1,1,1).coord evaluates to (x1,y1,z1) vector,
arr1(1,1,2,1).coord evaluates to (x2,y2,z2)vector, etc.
Since I built the geometry, I can of course just calculate the positions by hand (and will, for the time being), but as a matter of principle, I dislike doing things by hand that the computer has the means to do quicker.
PS: how can I, in general, access the properties for domains etc?
How can I access the coordinates of geometric objects/domains for using in an expression?
Alternately: how can I use distance of a domain or primitive center from a plane in an expression?
Background: I'm trying to do a electrically steered phased patch array, in 3D. To get the phase shifts, I need to evaluate the distance of the patches from a virtual plane perpendicular to the intended direction of steering.
What I'd like:
arr1(1,1,1,1).coord evaluates to (x1,y1,z1) vector,
arr1(1,1,2,1).coord evaluates to (x2,y2,z2)vector, etc.
Since I built the geometry, I can of course just calculate the positions by hand (and will, for the time being), but as a matter of principle, I dislike doing things by hand that the computer has the means to do quicker.
PS: how can I, in general, access the properties for domains etc?
2 Replies Last Post 05.01.2014, 08:54 GMT-5