Results 1 to 6 of 6

Thread: Running subroutines with input files OUTSIDE of CAE

  1. #1

    Running subroutines with input files OUTSIDE of CAE

    Hi,

    I usually run input files without using cae using this proceedure:
    1. copy abaqus.bat file into working directory containing .inp file
    2. open run .bat file and provide it with the name of the .inp file

    This runs the .inp file providing the .odb etc.

    I need to do it this way for two reasons.
    1. some of the keywords are not available in cae
    2. I perform automated parametric studies which run many hundred .inp files using the .bat - to do this manually would be impractical


    I now need to use subroutines. I have installed all the correct software and can run subroutines with input files through cae no problem. However, I cannot find any advice on how to run input files with subroutines in a similar way to I have described above.

    Please help...

    Regards,
    Charlie

  2. #2
    Hi,
    I do not use command line to run my jobs, but i had a problem with double precision for my subroutines, so i have to compile my subroutine by myself to create shared libraries, you can see that threat for more information :

    http://polymerfem.com/showthread.php...shared-library

    And so in abaqus cae i do not indicate the path of my subroutine, however i tell abaqus by the file abaqus_v6.env the location of the shared libraries created. So maybe if you do that the command line you used to lauch you computation will not change. I hope that can help.

    Nice day

  3. #3
    Hi,

    I should have mentioned... this is on a windows env.
    I have the links working when I work through CAE so I dont believe this is a problem, please see log below:

    Abaqus JOB Job-1
    Abaqus 6.10-2
    Begin Compiling Abaqus/Standard User Subroutines
    04/27/12 11:04:17
    End Compiling Abaqus/Standard User Subroutines
    04/27/12 11:04:20
    Begin Linking Abaqus/Standard User Subroutines
    04/27/12 11:04:20
    Creating library standardU.lib and object standardU.exp
    Microsoft (R) Manifest Tool version 5.2.3790.2075

    Copyright (c) Microsoft Corporation 2005.

    All rights reserved.

    End Linking Abaqus/Standard User Subroutines
    04/27/12 11:04:20
    Begin Analysis Input File Processor
    04/27/12 11:04:20
    Run pre.exe
    Abaqus License Manager checked out the following licenses:
    Abaqus/Standard checked out 5 tokens.
    <39 out of 110 licenses remain available>.
    04/27/12 11:04:30
    End Analysis Input File Processor
    Begin Abaqus/Standard Analysis
    04/27/12 11:04:30
    Run standard.exe
    Abaqus License Manager checked out the following licenses:
    Abaqus/Standard checked out 5 tokens.
    <39 out of 110 licenses remain available>.
    04/27/12 11:04:42
    End Abaqus/Standard Analysis
    Abaqus JOB Job-1 COMPLETED

    However, when I run it with a .bat file:
    PATH=C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\intel64\
    Call abaqus job=boltpipeflange_3d_usr_umat user=boltpipeflange_3d_usr_umat.for
    pause

    I get this error:
    Abaqus JOB boltpipeflange_3d_usr_umat
    Abaqus 6.10-2
    Begin Compiling Abaqus/Standard User Subroutines
    4/27/2012 10:43:59 AM
    End Compiling Abaqus/Standard User Subroutines
    4/27/2012 10:44:02 AM
    Begin Linking Abaqus/Standard User Subroutines
    4/27/2012 10:44:02 AM
    'LINK' is not recognized as an internal or external command,
    operable program or batch file.
    Abaqus Error: Problem during linking - Abaqus/Standard User Subroutines.
    This error may be due to a mismatch in the Abaqus user subroutine arguments.
    These arguments sometimes change from release to release, so user subroutines
    used with a previous release of Abaqus may need to be adjusted.
    Abaqus/Analysis exited with errors

    Any ideas?
    Attached Images Attached Images

  4. #4
    Hi,

    I'm a linux user but this line seems strange
    Code:
        PATH=C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\intel64\
    on a linux system that should be something like this
    Code:
       PATH=/path/of/intel/ifort/compiler/install/directory/:$PATH
    in order to add the directory of your ifort compiler executable to the variable $PATH witch indicates to the system where to search for executables. I think you can add a path in window somewhere like:
    PARAMETERS>SYSTEM>ADVANCED>ENVIRONMENT>
    and add a new env path.

    Maybe your "abaqus_v6.env" file is not set correctly also, because the link step doesn't work, you can find this file in the subdirectory "site" of your abaqus installation directory. I've you tried to compile your subroutine by hand, by the way ?

    Have a nice we
    Last edited by rogue-spectre; 2012-04-27 at 09:25.

  5. #5
    I have made some progress running the .inp * .for files. The subroutine appears to compile fine, the problem appears to be in the linking.

    Linking ['ncrcbr8x.obj'] into user subroutine shared library
    Link command: ['cmd', '/c', '"LINK', '/nologo', '/INCREMENTAL:NO', '/subsystem:c
    onsole', '/machine:AMD64', '/NODEFAULTLIB:LIBC.LIB', '/NODEFAULTLIB:LIBCMT.LIB',
    '/DEFAULTLIB:OLDNAMES.LIB', '/DEFAULTLIB:LIBIFCOREMD.LIB', '/DEFAULTLIB:LIBIFPO
    RTMD.LIB', '/DEFAULTLIB:LIBMMD.LIB', '/DEFAULTLIB:MSVCRT.LIB', '/DEFAULTLIB:kern
    el32.lib', '/DEFAULTLIB:user32.lib', '/DEFAULTLIB:advapi32.lib', '/FIXED:NO', '/
    dll', '/def:export.def', '/out:standardU.dll', 'ncrcbr8x.obj', 'C:\\SIMULIA\\Aba
    qus\\6.10-2\\exec\\lbr\\standardU_static.lib', 'C:\\SIMULIA\\Abaqus\\6.10-2\\exe
    c\\lbr\\standardB.lib', 'C:\\SIMULIA\\Abaqus\\6.10-2\\exec\\lbr\\ABQSMABasCoreUt
    ils_import.lib', 'C:\\SIMULIA\\Abaqus\\6.10-2\\exec\\lbr\\ABQSMAAbuLicense_impor
    t.lib', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.li
    b', '&&', 'mt', '/manifest', 'standardU.dll.manifest', '/outputresource:standard
    U.dll;2', '&&', 'del', 'standardU.dll.manifest"']
    ncrcbr8x.obj : fatal error LNK1112: module machine type 'X86' conflicts with tar
    get machine type 'x64'
    Abaqus Error: Problem during linking - Abaqus/Standard User Subroutines.
    This error may be due to a mismatch in the Abaqus user subroutine arguments.
    These arguments sometimes change from release to release, so user subroutines
    used with a previous release of Abaqus may need to be adjusted.
    Exception: (<class 'driverExceptions.LinkError'>, LinkError('Abaqus/Standard Us
    er Subroutines',), <traceback object at 0x000007FFFF646388>)
    Traceback (most recent call last):
    File "Python/driver/driverAnalysis.py", line 181, in run
    File "Python/driver/driverStandard.py", line 63, in analyze
    File "Python/driver/driverSharedLibrary.py", line 174, in run
    File "Python/driver/driverSharedLibrary.py", line 319, in link
    LinkError: Abaqus/Standard User Subroutines
    Abaqus/Analysis exited with errors

    The complier is 64bit as are the version of Abaqus and the machine. However it appears that the linker is looking for the 32bit libraries. Is this what is causing the error?
    I have tried lots of different input files and subroutines from the abaqus benchmarks etc and the problem remains.

    Thanks for any/all help

  6. #6
    I'm not so sure that simply pointing to the folder with the Fortran compiler in your Path is sufficient to run subroutines. You may also need to run the 'ifortvars' batch file before running an analysis. Also (and this won't be the source of your problem) you shouldn't have to copy abaqus.bat into the folder each time. It may be easier to set up an environment variable that points directly to the correct executable or you could insert the path to the executable directly into your batch file...i.e 'C:\SIMULIA\Abaqus\6.10-1\exec\abq6101.exe'.

Similar Threads

  1. ABAQUS VUMAT for the Neo-Hookean model - input files
    By Jorgen in forum Computer Software
    Replies: 10
    Last Post: 2012-07-19, 23:14
  2. Input files with user element
    By DaVinci in forum Finite Element Modeling
    Replies: 0
    Last Post: 2008-08-25, 09:58
  3. VIM mode for editing LS-DYNA input files
    By Jorgen in forum PolymerFEM News
    Replies: 2
    Last Post: 2008-08-19, 20:30
  4. Emacs modes for editing ABAQUS and LS-DYNA input files
    By Jorgen in forum PolymerFEM News
    Replies: 0
    Last Post: 2007-08-28, 19:38
  5. Input files and vibrations
    By WillyWonka in forum Finite Element Modeling
    Replies: 0
    Last Post: 2006-11-19, 11:31

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •