HP Forums
(42S) FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (42S) FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) (/thread-19032.html)



(42S) FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - Emilio Abud Filho - 10-26-2022 06:53 PM

Dear All

Please, find attached a simple code and documentation for solving Cutoff Frequency for circular waveguide, considering TEmn or TMmn modes; (to be used with "HP Solver" feature).

Order range: 0≤m≤4 and 1≤n≤4

Since this is my first program submission, I would appreciate your feedbacks, in order to improve my way of doing the documentation.

Attachments:

- Program documentation, including example, math equations, how to use explanations, source code, etc; (xlsx and pdf)
- PLmn and Pmn matrices as variables (xls)
- RAW format file (zip)

Code:

00 { 135-Byte Prgm }
01▸LBL "FRECC"
02 MVAR "FREC"
03 MVAR "ADIAM"
04 MVAR "TE/M"
05 MVAR "M"
06 MVAR "N"
07 MVAR "Er"
08 MVAR "Ur"
09 4
10 RCL- "M"
11 X<0?
12 RTN
13 4
14 RCL- "N"
15 X<0?
16 RTN
17 1
18 RCL "TE/M"
19 X=Y?
20 INDEX "PLmn"
21 2
22 RCL "TE/M"
23 X=Y?
24 INDEX "Pmn"
25 1
26 RCL+ "M"
27 RCL "N"
28 STOIJ
29 RCLEL
30 RCL÷ "ADIAM"
31 95429303.8779
32 ×
33 RCL "Ur"
34 RCL× "Er"
35 SQRT
36 ÷
37 RCL- "FREC"
38 END

Kind regards,


RE: HP-42S FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - Thomas Klemm - 10-27-2022 01:57 PM

(10-26-2022 04:38 AM)pinkman Wrote:  Use the # button to insert the code marker.

What he really meant is to use the # button in the toolbar:
[Image: toolbar.gif]

This puts the code in a scrollable block using a fixed font:
Code:
00 { 135-Byte Prgm }
01▸LBL "FRECC"
02 MVAR "FREC"
03 MVAR "ADIAM"
04 MVAR "TE/M"
05 MVAR "M"
06 MVAR "N"
07 MVAR "Er"
08 MVAR "Ur"
09 4
10 RCL- "M"
11 X<0?
12 RTN
13 4
14 RCL- "N"
15 X<0?
16 RTN
17 1
18 RCL "TE/M"
19 X=Y?
20 INDEX "PLmn"
21 2
22 RCL "TE/M"
23 X=Y?
24 INDEX "Pmn"
25 1
26 RCL+ "M"
27 RCL "N"
28 STOIJ
29 RCLEL
30 RCL÷ "ADIAM"
31 95429303.8779
32 ×
33 RCL "Ur"
34 RCL× "Er"
35 SQRT
36 ÷
37 RCL- "FREC"
38 END

Alternatively you can also use code tags in the text.

If you want to easily copy code from such a block I recommend to use the link at the bottom of the page:
[Image: printable.gif] View a Printable Version


RE: HP-42S FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - Emilio Abud Filho - 10-27-2022 07:49 PM

Dear Pinkman

Now I see!!!

Sorry for my lack of understanding!

Thank you very much for your explanation!
I will proceed correctly in my next program submission!

Warm regards!


RE: HP-42S FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - rprosperi - 10-27-2022 10:12 PM

(10-27-2022 01:57 PM)Thomas Klemm Wrote:  What he really meant is to use the # button in the toolbar:
[Image: toolbar.gif]

[snip]

If you want to easily copy code from such a block I recommend to use the link at the bottom of the page:
[Image: printable.gif] View a Printable Version

Really nice in-line graphics! Smile


RE: (42S) FRECC - Cutoff frequency equations for circular waveguide (TEmn or TMmn) - Emilio Abud Filho - 10-30-2022 07:54 PM

Dear All

I have updated the technical documentation, (there was some typing and grammar errors...).

Please, find the revised documentation (v1.04), attached to the original post.

The program itself (.raw) and matrices (xlsx), were good, and remain the same.

I am sorry for my typing and grammar mistakes...

Warm regards