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?