How to configure ABAQUS to run user subroutines (2024)

"Commit your way to the Lord
trust in him and he will do this:
He will make your righteousness shine like the dawn,
the justice of your cause like hte noonday sun" Psalm 37:5-6

Here are instructions on how to configure ABAQUS to run user subroutines.
They apply to installation within University of Cambridge Engineering Department only.

Please note that the following software is required to run ABAQUS with user subroutines:

  • Microsoft Visual Studio 2005 Professional Edition. Version for 2008 will not work.
  • Intel Fortran Compiler Version 9.1. Later versions will not work.
  1. Install software

    1. Click on the Start Menu and open the Run dialog box.
    2. In the dialog box, type the following: \\diva-appserv\windows\abaqus
    3. Open folder 6.8, then Documentation, and double-click on setup.exe to install ABAQUS documentation.
    4. Follow the on-screen instructions from the ABAQUS installer.
    5. Once ABAQUS documentation is installed, go up one folder and open folder Product. Double-click on setup.exe to install ABAQUS product.
    6. Follow the on-screen instructions from the ABAQUS installer. Enter for the licence server: 27000@abaqus-lmserv.
    7. Borrow the Visual Studio CDs from the Design Project Office.
    8. Insert Disk 1 of Visual Studio, right-click on the D:/ drive and select Autoplay.
    9. Follow on-screen instructions and insert Disk 2 when prompted. There is no need to install the MSDN library.
    10. Install the licence for Intel Fortran Compiler.
    11. Run the executable to set-up Intel Fortran Compiler 9.1, and follow on-screen instructions.
  2. Configure ABAQUS to Intel Fortran

    1. Find the path for the file ifortvars.bat, which will be similar to C:\Program Files (x86)\Intel\Compiler\Fortran\9.1\em64t\bin\ifortvars.bat
    2. Click on the Start Menu, click on Programs, find ABAQUS and right-click on the ABAQUS Command window. Click on Properties. In the Target dialog after the /k symbol, add a blankspace, then the path to ifortvars.bat between double quotation marks. The complete entry for Target will look like: C:\WINDOWS\SysWOW64\cmd.exe /k "C:\Program Files (x86)\Intel\Compiler\Fortran\9.1\em64t\bin\ifortvars.bat" Click OK.
  3. Set environment variables

    1. Double-click on the file vcvarsall.bat, which will be found on a path similar to C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat
    2. Double-click on the file ifortvars.bat, which will be found on a path similar to C:\Program Files (x86)\Intel\Compiler\Fortran\9.1\em64t\bin\ifortvars.bat
    3. Click on the Start Menu, click on Programs, find ABAQUS and double-click on the ABAQUS Command window to open one.
    4. Type in the command window set >path.info followed by a carriage return.
    5. Open the file path.info which will be found in the ABAQUS working directory, typically C:\Temp
  4. Edit environment variables

    1. Open a new document in Notepad. Find the paths after path=, lib= and include=, and copy them into the Notepad document. Take care to copy all pathnames, since multiple lines will need to be copied.
    2. Insert a carriage return after the closing semi-colon for each pathname to separate them.
    3. Delete any pathnames that are duplicated.
    4. Delete the carriage returns to reproduce a continuous string of pathnames again. Take care not to delete any non-blankspace characters.
  5. Update environment variables

    1. Click on the Start Menu and open the Control Panel. Click on System and then the Advanced tab. Click on Environment Variables. Under the heading System variables, progressively select each of the environment variables path, lib and include. For each variable, click Edit and replace each variable with the entire string of pathnames from the Notepad document corresponding to the variable being editted. Click OK and then OK.
    2. Log off and log back in again.
  6. Verify user subroutine linkage

    1. Open an ABAQUS command window and type abaqus verify -user_std followed by a carriage return. Check that every test passes.
    2. Run a trial analysis using subroutines to check.

Contributed by Rich Laver

How to configure ABAQUS to run user subroutines (2024)

FAQs

How to configure ABAQUS to run user subroutines? ›

What is a Abaqus subroutine? The Abaqus user subroutine allows the program to be customized for particular applications unavailable through the main Abaqus facilities. You should write a user subroutine if you cannot run your analysis by ABAQUS built-in models for materials, loads, properties, elements, etc.

What are user subroutines in ABAQUS? ›

What is a Abaqus subroutine? The Abaqus user subroutine allows the program to be customized for particular applications unavailable through the main Abaqus facilities. You should write a user subroutine if you cannot run your analysis by ABAQUS built-in models for materials, loads, properties, elements, etc.

How do you write subroutines in ABAQUS? ›

Numerical calculations in subroutines usually need very high precision, and DOUBLE PRECISION should be used. Usually, a real is a 4-byte variable, and the double-precision is 8 bytes. You may use the syntax REAL*8 to denote 8-byte floating-point variables in Abaqus Fortran subroutines.

What are the requirements for ABAQUS subroutine? ›

Abaqus requires additional software to be installed on Windows in order to make use of custom User Subroutines. You will need both a C++ compiler and Fortran compiler. Only specific versions of these compilers are officially supported by Simulia for use with each version of Abaqus.

What is a user defined subroutine? ›

User-defined functions are subroutines made of one or more Transact-SQL statements that can be used to encapsulate code for reuse. It takes zero or more arguments and evaluates a return value. Has both control-flow and DML statements in its body similar to stored procedures.

What are subroutines examples? ›

In computing, algorithms are needed to design computer programs. asks the user to enter two numbers. It then adds them together and, if the total is over 10, it runs the 'CountDown' subroutine. If the total is not over 10, it will run the 'CountUp' subroutine.

What are the basic subroutines? ›

The BASIC subroutines include all of the functions supported by BASIC. These are +, -, *, /, ABS, COS, EXP, INT, LN, PWR, SIN, SQRT, and TAN. Two other functions that are not found in BASIC are CMP, used to compare two high precision numbers, and PRC, used to set the precision of an argument.

How do you implement subroutines? ›

To implement functions and subroutines, first write a main program that references all of the subprograms in the desired order and then start writing the subprograms. This is similar to composing an outline for an essay before writing the essay and will help keep you on track.

How to do a subroutine? ›

Divide the subroutine into segments. Each segment receives the arguments passed by one corresponding subroutine call. The argument list in the beginning of your subroutine must represent the same number of arguments in the subroutine call, including a call number argument and an output argument.

How do you declare a subroutine? ›

Syntax
  1. The first line of a subroutine starts with the keyword SUBROUTINE, followed by that subroutine's name.
  2. Following subroutine-name, there is a pair of parenthesis in which a number of arguments arg1, arg2, ..., argn are separated with commas. ...
  3. A subroutine must end with END SUBROUTINE, followed by its name.

How do I run an Abaqus input file? ›

There are two ways to run an input file in the Abaqus: one way is the typical way by creating the model in the Abaqus GUI and creating a job, then submitting the job; in this way, the input file will be created automatically, and run.

What are the minimum requirements for Abaqus? ›

The minimum processor required is equivalent to Intel Pentium 4 or AMD processors supporting SSE2 instruction set. For Abaqus 6.8 Microsoft Visual C++ 2005 SP1 runtime libraries are required to run Geometry Translators and CAD Interfaces with Abaqus/CAE on Windows/x86-32.

Is Abaqus easy to use? ›

However, we recommend the ABAQUS if you are looking for finite element software with a simple and user-friendly graphical interface and your project is in the field of solid mechanics. It has a routine procedure in its modules to solve any kind of problem.

What is the difference between a function and a subroutine? ›

Functions and subroutines operate similarly but have one key difference. A function is used when a value is returned to the calling routine, while a subroutine is used when a desired task is needed, but no value is returned. Visual Basic . NET provides many built-in functions to assist your coding or applications.

What are the disadvantages of subroutines? ›

Complexity: Subroutine nesting can make programs more complex and difficult to understand, particularly if the nesting is deep or the control flow is complicated.

What instruction is used to call a subroutine? ›

The branch and link instructions are used to call subroutines: bl. Branch and Link and. blr.

What is the point of subroutines? ›

A subroutine can save a lot of time not only in writing your scenarios, but also in making your code more flexible and easier to re-use. For example, if you type the same several lines of code in different parts of your scenario, when you need to make changes, you must make those changes repeatedly.

What does a subroutine procedure do? ›

a subroutine is any named 'out of line' block of code that can be called from a main program (or main routine) or from within another subroutine. a function is a type of subroutine that returns a value. a procedure is a type of subroutine that does not return a value.

Why should you use subroutines? ›

Subroutines are usually small in size, which means they are much easier to write, test and debug. They are also easy for someone else to understand. As they are written outside of the main program, subroutines can be saved separately as modules and used again in other programs.

Why do people use subroutines? ›

Subroutines make programs shorter as well as easier to read and understand, because they break program code into smaller sections. You can test procedures or functions separately, rather than having to test the whole program.

Top Articles
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 6225

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.