In today's post I'm going to insert some detail about OPNET tips in installation.
I think it's better to omit details about the actual installation procedure - OPNET's guide is complete in this part, and I think it's straightforward installing it. I'll refer as usual to version 11.5.A, using Linux OpenSuse 10.2.
So here's what I do after I have the software installed and the licenses set up.
First, I create a folder (e.g., op_prj1) in which I'll insert everything about a single project. I then create a batch file, opnet.sh, containing the line
modeler -opnet_user_home .When executing this file (
./opnet.sh using bash), I have opnet running in the op_prj1 directory. This allows me to separate files for different projects.
Then, after having executed ./opnet.sh, you'll have your instance of the OPNET modeler up and running. I then suggest adding the current directory (again, op_prj1) as the main model directory: go to the
File menu, then
Model Files, and finally
Add model directory. The file selection dialog should open at the current directory. Click
Choose, and then in the next dialog check
Include all subdirectories and
Make this the default directory, and then click ok.
From now on, your new models and sources will be created in this directory, so that you can easily make backups, avoid different projects having mixed files etc...
I also suggest changing something in the preferences (these will be saved locally, in your current directory). These can be accessed by the
Edit menu, then
Preferences. Search "beep" using the text area: I usually set
beep_count_confirm and
beep_count_error to 0, to get rid of those annoying beeps that warn you of some condition while simulating.
I also suggest modifying compiler flags in order to speed up your simulations a bit: there are many web sites discussing these things, refer to other sources in the web to optimize for your platform. You should modify
comp_flags_common and
comp_flags_optim. It's safe to add "-pipe" in
comp_flags_common as this should only speed up the compilation a little bit, and to optimize for your specific architecture in
comp_flags_optim (I added "-march=pentium4 -ftree-vectorizer-verbose=0 -ftree-vectorize" to optimize for my pentium4 cpu).
Furthermore, I modify the preference
force_posix_locale to TRUE. This seems to fix some strange rendering problem I sometimes had when using the simulator.
The last thing to do, is set up temporary files cleanup. When working with the modeler, many log, temporary files and backups are generated and not automatically removed.
To have old files deleted, open the modeler, then click on the file menu, and "Delete Temporary Files...". In the dialog, you can setup your preferences, I suggest setting a lifetime of some day as I never had to recur to these files.
I hope this helps! I'll update this post if I find something else worth to be listed or if I receive some new suggestion.