Installation and Operations Guide > Testing the Installation > B.2 Test Application Preferences
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
B.2 Test Application Preferences
If you have licensed one or more of Patran’s Application Preferences, follow the test procedures in this section.
Setup
Copy and Execute the Example Patran Session File
1. Login as a normal user (not root) on each workstation that has Patran and the Application Preference installed, and change to a scratch directory with at least 7 Mb of disk space:
% cd <scratch_dir>
2. Copy one of the session files listed in Table B‑1into the scratch directory:
 
Table B‑1 Test
ABAQUS Preference
$P3_HOME/test_files/pat3_abaqus.ses
ANSYS Preference
$P3_HOME/test_files/pat3_ansys5.ses (5.x or 6.x)
Marc Preference
$P3_HOME/test_files/pat3_mscmarc.ses
MSC Nastran Preference
$P3_HOME/test_files/pat3_mscnastran.ses
SAMCEF Preference
$P3_HOME/test_files/pat3_samcef.ses
Start Up Patran and Execute the Session File
1. Change to a scratch directory and open Patran. Do not create a new database.
2. Select File from the Patran main form and pick Session| Play. The Play Session File form appears.
3. Select the session file listed under “Session File List.” Press Apply.
The session file begins to execute and creates a new Patran database called test_interface.db, it then creates a finite element model for the specific Application Preference and creates an input file for the appropriate Finite Element Analysis program.
Verify the Output Files
1. To see if the interface ran successfully, check for the following files in the scratch directory:
patran.ses.01
test_interface.db
test_interface.db.jou
test_interface.inp (For ABAQUS)
test_interface.prp (For ANSYS)
test_interface.dat (For Marc and SAMCEF)
test_interface.bdf (For MSC Nastran)
test_interface_mesh.dat (For SAMCEF)
test_interface.jba (For ANSYS, ABAQUS, Marc, and SAMCEF)
test_interface.msg.01 (For ANSYS, ABAQUS and Marc)
SAMANSWERS_1 (For SAMCEF)
SAMRUN (For SAMCEF)
samjobfile (For SAMCEF)
2. List the test_interface.msg.01 file to verify there were no errors during the execution. Some test result files may contain warning messages concerning coordinate transformations. Ignore these warning messages.
Verify Analysis Program Submittal From Patran
The session file you ran did not submit the model to an analysis program (for example, ABAQUS, MSC Nastran, etc.). If you have an analysis program available locally or remotely, follow these steps to test the analysis link:
1. Configure analysis environment variables in site-setup. The mscsetup utility should have done this install. See Environment Variables for more information.
2. Reopen the test_interface.db file in Patran, by selecting Open Database under the
File menu.
3. Disable Analysis Manager by entering the following command at the command prompt (the bottom line on the main Patran form):
analysis_manager.disable()
If you have the Analysis Manager installed, licensed, and configured, see the next section.
4. Choose Analysis from the Patran main form. The Analysis form appears. Make sure “Action” is set to Analyze, “Object” is set to Entire Model, and “Method” is set to Full Run.
5. Press Select Load Cases (Select Subcase for some preferences). A form titled Select Load Cases appears (Subcase Select for some preferences). If the “Default” load case appears under Selected Load Cases, press OK to close the form. If the “Default” load case only appears under Available Load Cases, cursor pick “Default” and then press OK.
6. Press Apply on the Analysis form. Patran executes the interface again, but it also submits the model to the analysis program.
7. When the job completes, check the output from the analysis code to confirm that the analysis completed successfully. For example, the output file for MSC Nastran will be test_interface.f06.
Test the Analysis Manager
Follow the instructions below if you are licensed to run the Analysis Manager and you have installed it using mscsetup. This test procedure assumes you have configured the Analysis Manager to run with MSC Nastran.
Run the Analysis Manager
1. Login as a normal user (not root) on each workstation where you have installed Patran and the Analysis Manager.
2. Change to a scratch directory that has at least 7 Mb of disk space and copy the following file:
% cp $P3_HOME/test_files/test_p3am.dat .
Start Up the Analysis Manager
1. Start up the Analysis Manager by entering the following:
% p3_mgr 1 dat test_p3am 1
2. When the the Analysis Manager window appears, press the Apply button (or Submit on Windows). This will automatically submit the test_p3am.dat file for analysis.You will hear a beep (on Unix only) when the Analysis Manager has submitted the job. Press the OK button (or Monitor on Windows) on the small form in the center of the monitoring window that appears after a successful submission.
3. An Analysis Manager monitoring window should appear, enabling you to check the status of the analysis job during runtime. When the analysis job completes, you should see a check mark (√) at the end of the window’s graphics bar and you should hear a beep. On Windows, click on the job name under the “Monitor | Completed Jobs” tree tab.
If any errors occur, exit Patran and run administration tool tests as described in Analysis Manager Setup for Unix or Analysis Manager Setup for Windows for more information. Specify the non-privileged user name that is used in the configuration tests. Usually, the Network Host test and the Network Disk test will uncover any problems.
For further information on testing and administering the Analysis Manager, please read System Management (Ch. 7) in the .
Test Laminate Modeler
To test the installation of the Laminate Modeler module, you will need to run an example model such as Example:Laminated Plate (p. 129) in the MSC Laminate Modeler User’s Guide.
1. Login as a normal user (not root) on each workstation that will be running Laminate Modeler, and change to a scratch directory that has at least 6 Mb of disk space.
2. Change to a scratch directory, open Patran, and create a new database.
3. Follow the instructions for the example problem in the Laminate Modeler manual.
Test Patran Materials
Follow the instructions below if you are licensed to run Patran Materials.
Login and Execute Patran
1. Login as a normal user (not root) on a workstation that will be running Patran Materials and change to a scratch directory that has at least 6 Mb of disk space.
2. Start up Patran as instructed in step 2 under Test Patran, and create a new database.
Enter the Patran Materials Application
1. On the Patran main form located at the top of the screen, press the Materials button. A long vertical form titled Materials should appear at the right side.
2. Enter MATERIALS by pressing the form’s Method option menu with the left mouse button (it should list “Manual Input”), and slide the cursor down to the “Materials Selector” option. Then release the mouse button.
3. After a few seconds, a form titled Materials Selector Databases should appear. Under the Databases box, highlight a materials database then press the Apply button.
You should then see a larger form appear titled, Materials.
4. Exit Patran and delete any files that Patran created.
Important:  
Patran Materials accesses MSC.Mvision Databanks. These databanks are ordered separately, usually as part of the MSC.Mvision product. If you do not see any databanks listed, you need to install them from the separate MSC.Mvision Databanks CD-ROM.
Test Patran Thermal
Follow the instructions below if you are licensed to run Patran Thermal.
Copy and Execute Patran Session File
1. Login as a normal user (not root) on each workstation, and change to a scratch directory with at least 7 Mb of disk space.
2. Copy the Patran Thermal example session file by entering:
% cp $P3_HOME/test_files/test_thermal.ses .
Start Up Patran and Execute the Session File
1. Open Patran. Do not create a new database.
2. Select File from the Patran main form and pick Session|Play.
3. Select test_thermal.ses and press Apply.
The test_thermal.ses file creates a new Patran database called test_thermal.db. It then creates a finite element model for Patran Thermal and executes Patran Thermal.
Verify the Output Files
1. When the session file completes, wait for the Thermal job to complete.
2. To verify that Patran Thermal completed successfully, check to see that the following files are in the scratch directory:
patran.ses.01
test_thermal.db
test_thermal.db.jou
test_thermal.ses
test_thermala
3. Also, enter the following:
% cd ./test_thermala
% qstat
 
4. Check to see that the following output appears with no errors by comparing the output to the following example:
executing $P3_HOME/p3thermal_files/lib/qstat . . .
 ***>>> Status File Number 1 <<<***
 CPU Time: 0 Hours 0 Minutes 1.61 Seconds
 Time = 0.0000000000D+00 SECONDS (Steady State Run)
 Iteration # Node # Max Delta Temperature(K) Relax Value
 ___________ ______ __________ ______________ ___________
          1     22 -1.0229D+02 1.9086225D+02  1.00000D+00
          2     18 -3.3054D+01 2.3430853D+02  1.00000D+00
          3     13 -1.9924D+01 2.2268794D+02  1.00000D+00
. 
. 
         31      4  1.9311D-04 1.1103411D+02  1.54534D+00
         32      5  9.5501D-05 1.1232712D+02  1.54534D+00
 CPU Time: 0 Hours 0 Minutes 1.90 Seconds
 ***>>> Q/TRAN STOP <<<***
5. Delete the files in the scratch directory.