Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Basile  
#1 Posted : 19 May 2019 02:02:12(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 153
Location: USA

Was thanked: 7 time(s) in 6 post(s)
Hello,
I need to draw phasors (lines-vectors) for AC circuit analysis.
- Line from origin to a point.
- Line from a point to another
The magnitude and the angle or Real and Imaginary parts are known.

Is there any related example?

Thank you,
Basile
Offline Jean Giraud  
#2 Posted : 19 May 2019 16:00:57(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,952
Canada

Was thanked: 707 time(s) in 553 post(s)
Originally Posted by: Basile Go to Quoted Post
Hello,
I need to draw phasors (lines-vectors) for AC circuit analysis.
- Line from origin to a point.
- Line from a point to another
The magnitude and the angle or Real and Imaginary parts are known.

Is there any related example?


Brute force quick

Phasor.PNG

Offline Basile  
#3 Posted : 20 May 2019 07:05:14(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 153
Location: USA

Was thanked: 7 time(s) in 6 post(s)
Thank you Jean.
Any way to use different colour for some segments?
Put an arrow or a circle at the end?
Have a text to identify each segment?

Basile
Offline uni  
#4 Posted : 20 May 2019 08:25:58(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 956
Man
Russian Federation

Was thanked: 871 time(s) in 490 post(s)
You can use X-Y Plot Region for this.



XYPlot. Draw shapes.sm (20kb) downloaded 118 time(s).
XYPlot. Draw shapes.pdf (93kb) downloaded 94 time(s).

Edited by user 20 May 2019 08:31:43(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://money.yandex.ru/to/410013245578758/100
Offline Jean Giraud  
#5 Posted : 20 May 2019 15:24:12(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,952
Canada

Was thanked: 707 time(s) in 553 post(s)
Originally Posted by: Basile Go to Quoted Post
Thank you Jean.
Any way to use different colour for some segments?
Put an arrow or a circle at the end?
Have a text to identify each segment?

Basile

Hello Basile,
You should be able to build your circuit with the attached.
Make something, attach and we will add text if you can't.
Cheers ... Jean

Circle_rkfixed Arrow.sm (28kb) downloaded 19 time(s).
2D Util Bar Arrow Model.sm (23kb) downloaded 13 time(s).
Circle_rkfixed Clock.sm (24kb) downloaded 13 time(s).

Offline Jean Giraud  
#6 Posted : 22 May 2019 16:52:49(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,952
Canada

Was thanked: 707 time(s) in 553 post(s)
Originally Posted by: Basile Go to Quoted Post
Thank you Jean.
Any way to use different colour for some segments?
Put an arrow or a circle at the end?
Have a text to identify each segment?

Basile


Hello, Basile
On that one you can do a bit more.
Too much may be too much, isn't ?
Cheers ... Jean

Maths Polygon.sm (18kb) downloaded 22 time(s).

Offline Basile  
#7 Posted : 23 May 2019 18:22:45(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 153
Location: USA

Was thanked: 7 time(s) in 6 post(s)
Hello Jean and Uni,

Why the Lv is not defined?
I express the matrices as function.
And then the vectors evaluate!
What are the red squares to the right?

It looks that this approach of drawing vectors is a begging.
I shall work on it.

Thank you,
Basile Page2-error.sm (13kb) downloaded 9 time(s).
Offline Jean Giraud  
#8 Posted : 24 May 2019 02:32:28(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,952
Canada

Was thanked: 707 time(s) in 553 post(s)
Originally Posted by: Basile Go to Quoted Post
What are the red squares to the right?

Red square in the scroll bar points at the errors in the document.

More elegant arrows proposed.

Page2-error.sm (9kb) downloaded 13 time(s).

Phasor_1.PNG

thanks 1 user thanked Jean Giraud for this useful post.
on 26/05/2019(UTC)
Offline Basile  
#9 Posted : 24 May 2019 21:09:24(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 153
Location: USA

Was thanked: 7 time(s) in 6 post(s)
Hi Jean,
The arrows fail when the length of the vector changes.
I have tried as a percentage of length but does not look nice.
Scaling the vectors to always be one but will loose real valuesSMath-1.PNG.
Any good idea?

Is there a way to auto-scale the 2D plot or X-Y plot?
One of the vectors is out of the visual plane.

Thanks,
Basile
Offline uni  
#10 Posted : 24 May 2019 21:19:13(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 956
Man
Russian Federation

Was thanked: 871 time(s) in 490 post(s)
As I said before:

ndtma wrote:
How about a simple arrow?

uni wrote:
I do not know how to do it better. The arrow should look good in different scales and in its own size.

Edited by user 24 May 2019 21:38:23(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://money.yandex.ru/to/410013245578758/100
Offline Jean Giraud  
#11 Posted : 24 May 2019 23:35:33(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,952
Canada

Was thanked: 707 time(s) in 553 post(s)
Originally Posted by: Basile Go to Quoted Post
Any good idea?

Is there a way to auto-scale the 2D plot or X-Y plot?
One of the vectors is out of the visual plane.

None of the quick plot or X_Y plot can be made X, Y directions scalable
similar to Mathcad 11 ... to me: useless.
From an original X_Y plot creation, stretch by handles respect aspect ratio.
If you modify the X, Y directions [max/min], apply close enough HL, HW ratio.

Phasor_2.PNG

Page2-error (1).sm (12kb) downloaded 9 time(s).

thanks 2 users thanked Jean Giraud for this useful post.
on 25/05/2019(UTC),  on 25/05/2019(UTC)
Offline Ber7  
#12 Posted : 25 May 2019 04:44:11(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 328
Man
Israel
Location: Beer-Sheva

Was thanked: 425 time(s) in 230 post(s)
Another kind of arrow.

Arrow.sm (6kb) downloaded 10 time(s).
thanks 3 users thanked Ber7 for this useful post.
on 25/05/2019(UTC),  on 25/05/2019(UTC),  on 25/05/2019(UTC)
Offline ndtma  
#13 Posted : 26 May 2019 03:24:37(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 201
Man
Sri Lanka
Location: Colombo

Was thanked: 66 time(s) in 44 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post

More elegant arrows proposed.


With both arrow heads, based on Jean's method.
Thank you Jean.

Both Arrows.png
Both Arrows.sm (31kb) downloaded 13 time(s).

Edited by user 26 May 2019 03:58:44(UTC)  | Reason: Not specified

Never Give up. Great things take time.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
Offline Basile  
#14 Posted : 26 May 2019 06:52:40(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 153
Location: USA

Was thanked: 7 time(s) in 6 post(s)
Hi,
Why I am getting errors when load your file?
The latest Stable: SMath Studio 0.99.7030 (01 April 2019)
SMath-3.PNGSMath-4.PNG
At the end I am able to open the file.
I do the same with two arrows 2π apart, but yours is more elegant.

Basile

Edited by user 28 May 2019 04:26:15(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.