cancel
Showing results for 
Search instead for 
Did you mean: 

An Update to Advanced Nonlinear Memory Management

Siemens Phenom Siemens Phenom
Siemens Phenom

As I mentioned in my original post, Femap 11.3+ offers some new ways to make managing memory for advanced nonlinear solutions easier.

 

As a reminder, the fundamental issue is that when Nastran executes SOL 601, it actually spawns a new process for the 601 solver, and passes its current memory settings down to that new process. Using the default methods, we would have to increase the memory allocation in the original process. This results in 2 processes with large memory, and the originating process is just wasting our memory resource.

 

We can control this by using environment variables, but this is clumsy and the user may not have privileges to set this.

 

With Femap 11.3+, we have added the option to use a "linked solver". This allows a user to point to an alternate solver installation on his machine. We can also use this feature to point to a batch file which contains the memory settings we desire for SOL 601 in addition to the command to submit the run.
The batch file would look like this:

echo off

REM This sets the memory for translation only
REM NXNA_PREMEM = memory (in MB) for adnast executable
SET NXNA_PREMEM=500

 

REM This sets the memory for 601 solver
REM NXNA_SOLMEM memory (in MB) for nxadina executable
SET NXNA_SOLMEM=6000

 

REM Set this to your installation of NXN
"C:\apps\FEMAPv1131\nastran\bin\nastran64.exe" %*

 

You may notice, instead of an "alternate solver" I actually pointed to my 11.3.1 Nastran installation.

After creating this batch file, let's configure our settings in Femap.

 

We set up the linked solver on the Femap Preferences Form under the Solvers Tab by setting it to the location of the batch file we created.

 

2016-08-05 14_42_48-Preferences.png

 

Next in the Analysis Set Manager we choose "linked solver"

2016-08-09 15_37_52-Analysis Set.png

 

 

Now submit the analysis as normal and the memory settings will be applied to this run only.

 

Here is a link to the original article:
http://community.plm.automation.siemens.com/t5/Femap-Blog/Advanced-Nonlinear-Memory-Management/bc-p/...

 

Regards,

Joe

 

 

 

Comments
Solution Partner Phenom

Dear Joe,

Thanks to your suggestion I was able to reduce the solution time from 2.5 hours to only 35 minutes for the calculation of a contact problem with the Advanced NonLinear (SOL601) solver in a machine with 32 GB RAM: the key was to run the problem IN-CORE using the above BATCH method suggested by Joe assigning 10 GB to the ADINA solver using "SET NXNA_SOLMEM=10000" via the linked solver, thanks!.

 

DEFAULT PARAMETERS

 *****************************************************************************
Available total memory . . . . . . . . . . . . . 8096.0 mb
Memory used for storage of model data. . . . . . 7451.5 mb
***************************************************************************** * * * <<<<< SPARSE SOLVER INFORMATION >>>>> * * * * NUMBER OF NON-ZERO TERMS IN FACTORIZED MATRIX......= 264091477 * * MEMORY USED BY THE SOLVER (in words)...............= 80568386 * * TOTAL MEMORY USED BY THE PROGRAM (in words)........= 1012000000 * * << OUT-OF-CORE SOLUTION >> * ***************************************************************************** Memory used by out-of-core sparse solver. . : 644.5 mb Total memory used by the program. . . . . . : 8096.0 mb *********** Real: 8994.536 seconds ( 2:29:54.536)

NXNA_SOLMEM=10000

 *****************************************************************************
 Available total memory . . . . . . . . . . . . .   10000.0 mb
 Memory used for storage of model data. . . . . .    7451.5 mb
 *****************************************************************************
 *                                                                           *
 *          <<<<< SPARSE SOLVER INFORMATION >>>>>                            *
 *                                                                           *
 * NUMBER OF NON-ZERO TERMS IN FACTORIZED MATRIX......=           264091477  *
 * MEMORY USED BY THE SOLVER (in words)...............=           272474331  *
 * TOTAL MEMORY USED BY THE PROGRAM (in words)........=          1203905945  *
 *             << IN-CORE SOLUTION >>                                        *
 *****************************************************************************
 Memory used by the in-core sparse solver. . :    2179.8 mb
 Total memory used by the program. . . . . . :    9631.2 mb
*********************
Real:     2141.069 seconds ( 0:35:41.069)

Best regards,
Blas.