Varkon.Org Home


Examples

Here are examples of things you can do with Varkon. Some of these things are unpolished, so beware of bugs, etc.

Table of Contents:

AC Snoot
Aircraft Conceptual Design
Character Map
Cow Demo
Curve Text
Ellipse
Four Bar Mechanism
Fractal Tree
Hull Designer
Nickajack Glideboat
Plenum Panel
Plot to Image Converter
Title Block
Varkon Extended Library
Varkon Source MBS Archive

Nota Bene:

I neglected to include documentation for some of my examples, and some are not user-friendly. So until I can fix things, please use this README.

You can view any file on this site with an .MBS suffix by using your browser. Just click the links.

I put a tarball for each example at the bottom of it's section.

N.B.: Untar them in your "~/varkon" directory, and they'll add the complete directory tree for that application, including the PID file, so you just have to restart Varkon for the new app to show up.

The tarballs are automatically updated as I change their member files. Some updates may reflect trivial changes. I will try to improve this in the future.

All my own code is copyright Ruven Gottlieb, all rights reserved, and released under the terms of the GPL, v.2. Copyright and licensing of contributed code will be noted in the proper section and package. Contributors, please make sure to include this info when you submit any materials for this site.


AC Snoot - - ToC

This package generates patterns to make air deflector snoots for air conditioners. The snoot prevents the air conditioner from blowing cold air directly on people, and helps circulate the air more effectively too.

You can change many parameters including the inlet dimensions and the outlet angle.

The patterns are dimensioned so that you don't need a protractor to lay out the proper angles; just draw the lines, and the angles work themselves out. Make the snoots from heavy cardboard or from corrugated plastic (e.g. Coroplast, Stratocore, etc.)

Download the AC_Snoot package:
AC_Snoot.2006-06-03_03.08.tar.gz


Aircraft Conceptual Design - - ToC

Contributed by Gunnar Liden. This module released under an MIT license.

The conceptual design demo application has been developed to demonstrate how VARKON surface functions can be used for conceptual aircraft design phase.

There are demo modules included in the demo called concept1 and concept2.

You can call various modules from the menu to change many parameters in the aircraft illustrated in the window:

  • Planar shape
  • Airfoil
  • Z Scale
  • Aircraft
  • Engine
  • Intake
  • Canopy
  • Fins

Here are the MBS files:

aircraft.MBS
canopy.MBS
concept1.MBS
concept2.MBS
csysexp.MBS
csyswri.MBS
engine.MBS
fins.MBS
inp_err.MBS
intake.MBS
plashape.MBS
profile1.MBS
profile2.MBS
saabvyer.MBS
su_exnmg.MBS
surfexp.MBS
zscale.MBS

Below are views of the concept1 model.

Click thumbnails for larger images:

Download the Aircraft_Conceptual_Design package:
Aircraft_Conceptual_Design.2006-10-26_16.06.tar.gz


Character Map - - ToC

The character mapping for Varkon's fonts is different from the normal ASCII mappings. This module generates a table showing characters and their values.

Chars.MBS

See the map below

Click thumbnails for larger images:

Download the Char_Map package:
Char_Map.2006-05-28_23.45.tar.gz


Cow Demo - - ToC

COW is an acronym: "Creating Object Windows".

This package generates code to create menus for your Varkon applications. You can create buttons, icons, and text-input windows. You can organize the layout in a custom-sized test window, and try the objects out in a test box, and when you're happy, paste the code into your application.

MBS Files

The code is alpha quality, but it works well enough to get you started.

See a screenshot of the Cow Demo below.

Click thumbnails for larger images:

Download the Cow package:
Cow.2006-11-22_09.01.tar.gz


Curve Text - - ToC

Contributed by Gunnar Liden. This module released under an MIT license.

This module aligns a text string with an arbitrary curved line.

curvetext_3d.MBS
modtsize.MBS
sample_crvtxt.MBS

See an example below.

Click thumbnails for larger images:

Download the Curve_Text package:
Curve_Text.2006-10-26_16.06.tar.gz


Ellipse - - ToC

Varkon doesn't have a native routine to generate an ellipse. This module shows how to generate one. From the "bounce" demo.

N.B. This algorithm breaks down for small values of either axis, so beware.

Ellipse.MBS

Download the Ellipse package:
Ellipse.2006-05-28_23.45.tar.gz


Four Bar Mechanism - - ToC

Design and animate a four-bar mechanism. You can use these techniques to generate more complicated mechanisms too.

This demo generates pages showing either a dimensioned diagram for use when designing the mechanism, an animation showing the mechanism in motion, or dimensioned drawings of all the component parts suitable for constructing a full-scale model of the mechanism.

The design diagram and the animation shows the mechanism's travel path too.

The demo code illustrates all sorts of useful stuff, including animation techniques, and how to automatically scale plots so they fill a standard sheet upon printing, and generate properly trimmed images and animation.

Four_Bar_Mech.MBS

See an example animation: N.B. This is a LARGE GIF89A. It will load your CPU and possibly make your machine sluggish until you stop viewing the animation.

Click thumbnails for larger images:

Download the Four_Bar package:
Four_Bar.2006-05-28_23.45.tar.gz


Fractal Tree - - ToC

A nice one from the mailing list. Generates a fractal tree.

tree.MBS

See the tree below. The original is in color. The image conversion makes it monochrome.

Click thumbnails for larger images:

Download the Fractal_Tree package:
Fractal_Tree.2006-05-28_23.45.tar.gz


Hull Designer - - ToC

Contributed by Johan Kjellander. Released under the GPL.

"The hull demo application has been developed to demonstrate some of the more complex features of the VARKON system. It includes Lofted surfaces, surface approximation, area and volume calculations and much more." --Hull Designer README

I have included the PID and RES files in the tarball package so you don't have to recompile anything. Just untar the tarball in your ~/varkon directory, and if you have the standard directory layout, everything will be put in it's proper place. Otherwise hand-install the app and pid dirs.

There's a sample hull design included. Choose "biglynx" when the job menu pops up.

N.B: "The purpose of the hull application is to demonstrate how VARKON can be used, not to create real life production hulls. It will only cope with a limited range of hull types ... With more work it could be further developed into a professional application." -from m200.txt, Sec. 7, Hull analysis.

Here are the MBS and documentation files:
Analysis:

blines.MBS
caldims.MBS
caldspmnt.MBS
calellys.MBS
calmsect.MBS
calwsurf.MBS
desdat.MBS
dispmnt.MBS
drcur.MBS
edconst.MBS
el_lys.MBS
getkd.MBS
hydrstat.MBS
isonet.MBS
l20off.MBS
l20on.MBS
sectarea.MBS
shwcoeff.MBS
shwconst.MBS
shwdat.MBS
shwstab.MBS
shwwldat.MBS
sline.MBS
slines.MBS
wlines.MBS

Geometry:

bicubic.MBS
blslope.MBS
diacur.MBS
drcur.MBS
hull.MBS
l10off.MBS
l10on.MBS
l11off.MBS
l11on.MBS
pvalf.MBS
shslope.MBS
spine.MBS
stdviews.MBS
waterpl.MBS

Documentation:

blslope.txt
hull.txt
m200.txt
m202.txt
m203.txt
m231.txt
shslope.txt
waterpl.txt

Below are screenshots of the "biglynx" hull design window, and the shaded "biglynx" hull in the Dyn-R window.

Click thumbnails for larger images:

Download the Hull_Designer package:
Hull_Designer.2006-10-26_16.06.tar.gz


Nickajack Glideboat - - ToC

The Nickajack Glideboat Project is a design and fabrication project undertaken by John Hughes (Email: n4yvt@arrl.net) to develop a light, stable, fast watercraft which can be portaged. The boat is designed to be propelled efficiently by either oars, paddles, or a small electric/gasoline motor.

http://www.glideboat.com

The shape of the proposed watercraft is based on a transportable canoe-like boat developed in upstate New York state's Adirondack Mountains in the mid-1800s. It is a light rowed watercraft which is faster than a canoe but just as light. The boats are still made in the Adirondack Mountains today but the construction methods have evolved over time.

Here are the MBS and documentation files: (Use browser's "back" button or function to return to this page.)

MBS:

asy.MBS
Bez6.MBS
cmp.MBS
cns.MBS
Control.MBS
CtrLn.MBS
CubicCrv.MBS
DshLn.MBS
ifc.MBS
LevelInit.MBS
LevelSet.MBS
Main.MBS
MidPt.MBS

MBS:

ModuleName.MBS
ofc.MBS
pce.MBS
PInit.MBS
PointCloud.MBS
Ruler.MBS
sas.MBS
s_isoupar.MBS
s_isovpar.MBS
ssa.MBS
StemPattern.MBS
Waterline.MBS
ZPlanePt.MBS

Documentation:

BoundingBox.jpg
COPYING.txt
Demo.jpg
General.txt
General_VKN.txt
Layers.txt
Lines.txt
NGBDoc.css
NGBDoc.html
Ruler.jpg
Set-Up.txt

Click thumbnails for larger images:

Download the NGB package:
NGB.2007-04-23_14.34.tar.gz


Plenum Panel - - ToC

This module designs a panel with an array of holes in it.

I used it to make a plenum box to spread the air from a fan over the area covered by the panel.

The module allows you to define the size of the fan, the size of the panel, the number of holes in the array, and the border around the array.

It automatically adjusts the hole sizes and spacing to fit within the bounds of the array border you specify. It also adjusts the position of the dimension lines depending on the number of holes you specify.

The area of each hole is equal to the area of the fan divided by the number of holes.

Panel_1.MBS

Download the Plenum package:
Plenum.2006-05-28_23.45.tar.gz


Plot to Image Converter - - ToC

This module finds the size of the calling model, plots it, then converts the PLT file(s) to PostScript at the largest scale that will allow the model to fit within the 612 x 792 pixel plot window.

Then the PostScript is converted to either the desired image format, in the case of a single image, or to a GIF89A animation in the case of multiple images if they are named correctly.

Plot2Image.MBS

The companion script, plot2img, does the image conversions, and generates a web page to display the image.

plot2img

Download the Plot2Image package:
Plot2Image.2006-05-28_23.45.tar.gz


Title Block - - ToC

Generates a title block as seen on the home page of this site. It automatically adjusts to different font sizes and text lengths.

Block_1.MBS

Download the Title_Block package:
Title_Block.2006-05-28_23.45.tar.gz


Varkon Extended Library - - ToC

David Keyes has submitted some modules that extend Varkon's capabilities.

There are modules that expand the dimensioning system to include imperial units, among other things; there's a module which allows the cloning of entities, and there are some miscellaneous math and string functions. The code is licensed under the GPL.

There is also an html manual page for each function or module.

Here are the MBS and documentation files: (Use browser's "back" button or function to return to this page.)

doc
addp_mbs.htm
arrow.htm
clone.htm
clonewrap.htm
dec_imp.htm
dim_format.htm
dim_hline.htm
dim_hor1.htm
dim_hor2.htm
dim_vars.htm
draw_fis.htm
evaluate.htm
get_ang.htm
get_len.htm
numb_scan.htm
ref_id.htm
slash.htm
splt_str.htm
str_arr.htm
str_flts.htm
VEL_index.htm
 

mbs
addp_mbs.MBS
arrow.MBS
clone.MBS
clonewrap.MBS
dec_impdemo.MBS
dec_imp.MBS
dim_ali1.MBS
dim_ali2.MBS
dim_aline.MBS
dim_format.MBS
dim_hline.MBS
dim_hor1.MBS
dim_hor2.MBS
dim_in1.MBS
dim_in2.MBS
dim_inline.MBS
dim_vars.MBS
dim_ver1.MBS
dim_ver2.MBS
dim_vline.MBS
draw_fis.MBS
eval_dem.MBS
evaluate.MBS
get_ang.MBS
get_len2D.MBS
negpos.MBS
ref_id.MBS
slash.MBS
split_dem.MBS
split_str.MBS
str_arr.MBS
 

Download the VEL_demo package:
VEL_demo.2008-01-21_22.36.tar.gz


Varkon Source MBS Archive - - ToC

These are the MBS files included in the latest released Varkon distribution, currently 1.19B.

They're here mainly so that search engines can access them.

Varkon distribution MBS source files