Example environment file

An example Windows environment file is shown below. This file will work on Linux systems as well if you change the scratch directory setting appropriately. A sample environment file, abaqusinc.env, is included in the solvers_install_dir/os/SMA/site/ subdirectory of the Abaqus/CAE installation to show the options used at SIMULIA.

    scratch = "c:/temp"
    if applicationName in ('analysis','datacheck','continue'):
        memory = "4 gb"
    
    def onCaeStartup():
        #Graphics preferences
        session.graphicsOptions.setValues(dragMode=AS_IS, displayLists=ON)
        # Print preferences
        session.printOptions.setValues(vpDecorations=OFF,
            vpBackground=OFF, rendition=COLOR,
            printCommand='lpr -S marley -P hp3')
        session.psOptions.setValues(date=OFF)
        # Job preferences
        def setJobPreferences(module, userData):
             session.Queue(name='long', hostName='server',
                queueName='large', directory='/tmp')
        addImportCallback('job', setJobPreferences)
        # Visualization preferences
        def setVisPreferences(module, userData):
            session.defaultOdbDisplay.contourOptions.setValues(
                renderStyle=SHADED, visibleEdges=EXTERIOR,
                contourStyle=CONTINUOUS)
        addImportCallback('visualization', setVisPreferences)
The default compile and link environment variables for your computer have also been inserted in your site environment file.