This page has information on running NairnFEA finite element calculations and NairnMPM material point method calculations. If you just compiled the code, it includes information on doing a test FEA or MPM calculation.
The options for running calculations are:
If you are using a Mac (with MacOS 10.4 or newer, Tiger), you can go to the NairnFEAMPM web site and download a complete package that lets you create input files using a command language or raw XML commands, run calculations, and visualize the results. This package only works in MacOS X and does not include the NairnFEA or NairnMPM source code.
If you are working directly with the source code, you can also run calculations using NairnFEAMPM, but there are few settings that are important
NairnFEA and NairnMPM binaries and DTD files in /Library/Application Support/NairnFEAMPM. If you are recompiling the code, you will want NairnFEAMPM to use your new versions rather than these default versions. To make this change:
DTD files.
You can run and visualize NairnFEA and NairnMPM calculations on any platform using the NairnFEAMPMViz Java application (note: if you are using a Mac (with MacOS 10.4 or newer, Tiger), NairnFEAMPMViz will work, but the recommendation is to use NairnFEAMPM because it faster and has more features). NairnFEAMPMViz started out only as a visualization tool, but now it lets you create and edit input XML files, launch calculation tasks, and visualize the results.
A prerequisite to running calculations in NairnFEAMPMViz is to download and compile the source code for NairnFEA and NairnMPM. On Windows, the compiling stage (no matter how it is done) requires installation of cygwin; cygwin is also needed to run calculations in NairnFEAMPMViz, but the steps taken during compiling are enough for it to be ready for use by NairnFEAMPMViz.
If you download a posted version of the NairnCode package, the NairnFEAMPMViz jar file will be in the NairnCode/Visualization/info folder. If the jar file is not there, you need to compile the application first. Once the application is ready, you need to start is using a method to make sure it gets enough memory. The method is described here. Once the application is started, do a test run as follows:
NairnFEA and NairnMPM code engines and of a Unix shell. The steps are
NairnMPM executable file, the NairnFEA executable file, and the bash shell command, respectively. In Windows, the bash command will be in the bin folder of the root cygwin folder; in other systems, it will be in the /bin folder.
XML commands. Save the new commands to a new file with extension .fmcmd.
.fea or .mpm file). Once you select a name, the calculations will run. When the calculations are done, the results file will open for visualization.
You can run NairnFEA from a Unix or Linux command line using:
NairnFEA [options] input > output
where
XML using the DTD file specified in the !DOCTYPE line in the preamble of the input file. If the specified DTD can not be found, the code will exit with an error message. If the input file has no !DOCTYPE, the validation will be skipped. The required DTD file can be found in the input directory of the source files.-v -r , or combine them in one option, such as -vr.
XML file. The preferred extension for the input files is ".fmcmd"..fea".After obtaining and compiling the code, you can do a trial run with the following commands:
cd NairnCode/NairnFEA/input ./NairnMPM Cantilever.fmcmd > output.fea
The sample FEA calculation of an end-loaded cantilever beam will finish quickly. The file output.fea will have the text output results.
To verify the results requires visualization tools. See the visualization options section for the possible tools. The image below shows plot of stress in the x-direction for this sample problem.
You can run NairnMPM from a Unix or Linux command line using:
NairnMPM [options] input > output
where
XML using the DTD file specified in the !DOCTYPE line in the preamble of the file. If the specified DTD can not be found, the code will exit with an error message. If the input file has no !DOCTYPE, the validation will be skipped. The required DTD file can be found in the input directory of the source files.-v -r , or combine them in one option, such as -vr.
XML file. The preferred extension for the input files is ".fmcmd"..mpm".After obtaining and compiling the code, you can do a trial run with the following commands:
cd NairnCode/NairnMPM/input ./NairnMPM TwoDisks.fmcmd > output.mpm
The sample MPM calculation of two disks colliding should finish in a few seconds. The file output.mpm will have the text output results. The archive files should be in a folder created in that directory called TwoDisks.
To verify the results requires visualization tools. See the visualization options section for the possible tools. The image below shows plot of stress in the x-direction at three different times. Click here to see a short movie of the same stress.