Years ago, I purchased the Structural Mechanics Application for Mathematica. I decided to take a look at it again, but it has not been ported to Mathematica 10. It is only available for Mathematica 7 and 8.
The setup program won't even run on 64-bit Windows. I was able to run the install script in an OpenSuse virtual machine to get the files extracted and placed in the file system. I then copied the file structure back to MSW 10.
But I am not sure how to get Mathematica to see them. I am willing to experiment with upgrading the code, but I would prefer not to re-invent the wheel.
Is there any guide (formal or informal) for porting legacy apps and addons to more recent versions of Mathematica?
Edit to add some of what I've tried. I really don't what to approach the problem one blunder at a time. That is why I am seeking a guide to get me started.
But, since someone asked me if I had tried addding the package to the $Path, I figured I would show some of what I've tried already.
smDir = FileNameJoin[{$UserBaseDirectory, "AddOns", "Applications",
"StructuralMechanics"}];
DirectoryQ@smDir
True
PrependTo[$Path, FileNameJoin[{$UserBaseDirectory
, "AddOns", "Applications", "StructuralMechanics"}]];
Needs["StructuralMechanics`"]
$Failed
SetDirectory[
FileNameJoin[{$UserBaseDirectory, "AddOns", "Applications",
"StructuralMechanics"}]];
FileNames["*"]
{"BeamAnalysis.m", "Common.m", "Documentation", \ "GoverningEquations.m", "Kernel", "NumCrossSectionProperties.m", \ "OneDElements.m", "PlaneElasticity.m", "StressAnalysis.m", \ "SymCrossSectionProperties.m", "TorsionAnalysis.m", \ "TriangulatePolygon.m", "TwoDElements.m"}
Even if I get the Context to load, I still want to be able to use the documentation for the application. I want to do all of this in a way that has the least impact on my existing Mathematica setup.
$Path
, so it can find them? Probably the best place isFileNameJoin[{$UserBaseDirectory,"Applications","StructuralMechanics"}]
. $\endgroup$ – Pinti Jun 19 '18 at 7:20