summaryrefslogtreecommitdiff
path: root/cad/transcalc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2003-03-23 12:25:03 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2003-03-23 12:25:03 +0000
commit46be4167500ca46410dffd9436634a3ae14dfa9a (patch)
treec1f3e345634195a78eefccb0568b7a4be7567b66 /cad/transcalc
parent82f8b345abb8a75003527cd4739e0443205ff5b4 (diff)
downloadpkgsrc-46be4167500ca46410dffd9436634a3ae14dfa9a.tar.gz
import transcalc-0.13
Transcalc is an analysis and synthesis tool for calculating the electrical and physical properties of different kinds of RF and microwave transmission lines. Transcalc was somewhat inspired by the functionality of Agilent Technologies' commercial program linecalc. Transcalc aspires to be more functional in the long run and well-documented with appropriate references to formulas that are used. Transcalc is built using the GIMP toolkit (GTK) for its GUI interface. For each type of transmission line, using dialog boxes, you can enter values for the various parameters, and either calculate its electrical properties (analyze), or use the given electrical requirements to sythesize physical parameters of the required transmission line. Available transmission lines (this list will expand with subsequent releases): * microstrip * rectangular waveguide * coax * coupled microstrip
Diffstat (limited to 'cad/transcalc')
-rw-r--r--cad/transcalc/DESCR22
-rw-r--r--cad/transcalc/Makefile19
-rw-r--r--cad/transcalc/PLIST18
-rw-r--r--cad/transcalc/distinfo8
-rw-r--r--cad/transcalc/patches/patch-aa14
-rw-r--r--cad/transcalc/patches/patch-ab19
-rw-r--r--cad/transcalc/patches/patch-ac16
-rw-r--r--cad/transcalc/patches/patch-ad12
8 files changed, 128 insertions, 0 deletions
diff --git a/cad/transcalc/DESCR b/cad/transcalc/DESCR
new file mode 100644
index 00000000000..9245ac7008d
--- /dev/null
+++ b/cad/transcalc/DESCR
@@ -0,0 +1,22 @@
+Transcalc is an analysis and synthesis tool for calculating the
+electrical and physical properties of different kinds of RF and
+microwave transmission lines.
+
+Transcalc was somewhat inspired by the functionality of Agilent
+Technologies' commercial program linecalc. Transcalc aspires to be
+more functional in the long run and well-documented with appropriate
+references to formulas that are used. Transcalc is built using the
+GIMP toolkit (GTK) for its GUI interface.
+
+For each type of transmission line, using dialog boxes, you can enter
+values for the various parameters, and either calculate its electrical
+properties (analyze), or use the given electrical requirements to
+sythesize physical parameters of the required transmission line.
+
+Available transmission lines (this list will expand with subsequent
+releases):
+
+* microstrip
+* rectangular waveguide
+* coax
+* coupled microstrip
diff --git a/cad/transcalc/Makefile b/cad/transcalc/Makefile
new file mode 100644
index 00000000000..bf34894badc
--- /dev/null
+++ b/cad/transcalc/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+#
+
+DISTNAME= transcalc-0.13
+CATEGORIES= cad
+MASTER_SITES= http://transcalc.sourceforge.net/
+#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=transcalc/}
+
+MAINTAINER= dmcmahill@netbsd.org
+HOMEPAGE= http://transcalc.sourceforge.net
+COMMENT= Transmission line analysis/synthesis
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../graphics/imlib/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/transcalc/PLIST b/cad/transcalc/PLIST
new file mode 100644
index 00000000000..3230728ec6d
--- /dev/null
+++ b/cad/transcalc/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+bin/transcalc
+man/man1/transcalc.1
+share/transcalc/examples/000.trc
+share/transcalc/examples/001.trc
+share/transcalc/examples/cstrip_kj_1.trc
+share/transcalc/examples/cstrip_kj_2.trc
+share/transcalc/examples/example1.trc
+share/transcalc/examples/hp.trc
+share/transcalc/examples/ustrip50fr4.trc
+share/transcalc/examples/ustrip_jansen.trc
+share/transcalc/images/c_microstrip.jpg
+share/transcalc/images/coax.jpg
+share/transcalc/images/microstrip.jpg
+share/transcalc/images/rectwaveguide.jpg
+@dirrm share/transcalc/images
+@dirrm share/transcalc/examples
+@dirrm share/transcalc
diff --git a/cad/transcalc/distinfo b/cad/transcalc/distinfo
new file mode 100644
index 00000000000..e8e9a1a1af3
--- /dev/null
+++ b/cad/transcalc/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+
+SHA1 (transcalc-0.13.tar.gz) = c0fe6ebca5efa44a03e6f5790cac83fd78acf6b0
+Size (transcalc-0.13.tar.gz) = 125666 bytes
+SHA1 (patch-aa) = 620596687c96f4e5ab453ca77949643d9c9960ad
+SHA1 (patch-ab) = 8be1a7ecaf9ed5083720a192f416c09abb6982d0
+SHA1 (patch-ac) = 9d00660ab3dd801644bb103181375814e3b4095d
+SHA1 (patch-ad) = 7904ec6e250da56bad3703a77c8a606f42511da2
diff --git a/cad/transcalc/patches/patch-aa b/cad/transcalc/patches/patch-aa
new file mode 100644
index 00000000000..f60a618bdda
--- /dev/null
+++ b/cad/transcalc/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+
+fixes minor bug in the computation. Correct constant (0.7913) found in original reference
+for this model.
+
+--- src/c_microstrip.c.orig Tue May 28 15:59:49 2002
++++ src/c_microstrip.c Wed Jan 15 05:32:42 2003
+@@ -217,5 +235,5 @@
+ er_eff = c_ms->er_eff_o_0;
+ P_8 = 0.7168 * (1.0 + 1.076 / (1.0 + 0.0576 * (er - 1.0)));
+- P_9 = P_8 - 0.7193 * (1.0 - exp(-pow(f_n / 20.0, 1.424))) * atan(2.481 * pow(er / 8.0, 0.946));
++ P_9 = P_8 - 0.7913 * (1.0 - exp(-pow(f_n / 20.0, 1.424))) * atan(2.481 * pow(er / 8.0, 0.946));
+ P_10 = 0.242 * pow(er - 1.0, 0.55);
+ P_11 = 0.6366 * (exp(-0.3401 * f_n) - 1.0) * atan(1.263 * pow(u / 3.0, 1.629));
diff --git a/cad/transcalc/patches/patch-ab b/cad/transcalc/patches/patch-ab
new file mode 100644
index 00000000000..72b79554a7a
--- /dev/null
+++ b/cad/transcalc/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+
+--- src/transcalc.c.orig Mon Jul 15 07:20:38 2002
++++ src/transcalc.c
+@@ -170,10 +170,10 @@ read_config_file (void)
+ /* make sure it terminates with '\0' */
+ *end = '\0';
+
+- sscanf(ip,"%s %d\n",tmp_str1,&freq_unit);
+- fscanf(fp,"%s %d\n",tmp_str1,&length_unit);
+- fscanf(fp, "%s %d\n",tmp_str1,&res_unit);
+- fscanf(fp, "%s %d\n",tmp_str1,&ang_unit);
++ sscanf(ip,"%s %hd\n",tmp_str1,&freq_unit);
++ fscanf(fp,"%s %hd\n",tmp_str1,&length_unit);
++ fscanf(fp, "%s %hd\n",tmp_str1,&res_unit);
++ fscanf(fp, "%s %hd\n",tmp_str1,&ang_unit);
+ }
+ }
+ }
diff --git a/cad/transcalc/patches/patch-ac b/cad/transcalc/patches/patch-ac
new file mode 100644
index 00000000000..1c653d4d517
--- /dev/null
+++ b/cad/transcalc/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+
+--- src/setup_body.c.orig Mon Jul 15 07:38:37 2002
++++ src/setup_body.c
+@@ -68,6 +68,11 @@ transtype_int ()
+ if ((strcmp(text,"Rectangular Waveguide")) == 0) return RECTWAVEGUIDE;
+ if ((strcmp(text,"Coaxial Line")) == 0) return COAX;
+ if ((strcmp(text,"Coupled Microstrip")) == 0) return C_MICROSTRIP;
++ fprintf(stderr, "Error: transtype_int(). Unknown line type \"%s\"\n", text);
++ exit(1);
++ } else {
++ fprintf(stderr, "Error: transtype_int(). gtk_entry_get_text returned NULL pointer\n");
++ exit(1);
+ }
+ }
+
diff --git a/cad/transcalc/patches/patch-ad b/cad/transcalc/patches/patch-ad
new file mode 100644
index 00000000000..3f81d2e7ed7
--- /dev/null
+++ b/cad/transcalc/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/03/23 12:25:03 dmcmahill Exp $
+
+--- src/unitscombo.c.orig Mon Jul 15 07:46:36 2002
++++ src/unitscombo.c
+@@ -31,6 +31,7 @@ USA.
+ #include <math.h>
+
+ #include "transcalc.h"
++#include "unitscombo.h"
+
+ gchar *length_unit_name[] = { "mil",
+ "cm",