abaqus command

[Tip] Abaqus 사용시 유용한 명령어(Command) 소개

안녕하세요다쏘시스템 SIMULIA 브랜드팀 입니다.
 
이번 포스팅은 Abaqus 를 사용할 시에 Command 창에서 유용하게 사용할 수 있는 명령어들(Commands) 에 대해 소개해 드리도록 하겠습니다.


1. Abaqus 로 실행시킨 job 을 일시적으로 멈췄다가 다시 실행시키는 방법
 
Command : Abaqus job=<job_name>
 

1) Abaqus suspend job=test1
: test1 job을 일시적으로 중지
 
2) Abaqus resume job=test1
일시적으로 중지되었던 test1 job을 다시 진행
 
3) Abaqus terminate job=test1
: test1 job을 중지




2. Abaqus 가 설치된 경로를 확인하는 방법
 
Command : Abaqus whereami
 

1) Abq6145 whereami 
Abaqus 6.14-5 버전 위치확인

 
2) Abq2016 whereami 
Abaqus 2016 버전 위치확인)



3. Abaqus odb 파일 Adams modal neutral(.mnf) 파일로 변환하는 방법
 
Command : Abaqus adams job=<job_name>
 
Options : [substructure_sim=filename]
                [units=mmks | mks | cgs | ips]
                [length=length-units-name]
                [mass=mass-units-name]
                [time=time-units-name]
                [force=force-units-name]
                [mnf_elset=elset-name]
 

예1)        Abaqus adams job=test units=mks
: Abaqus mmks 단위를 mks 단위로 변경



4. Abaqus job 실행시 Scratch 경로 변경
 
Command : Abaqus job=<job_name> scratch=<directory_name>
 
 
예1)        Abaqus j=test scratch=d:temp
: test job의 scratch 경로를 d:temp로 변경




5. Abaqus 버전 업그레이드 방법
 
Command : Abaqus upgrade job=<new_file_name> odb=<old_odb_file_name>
 

예1)        Abaqus upgrade job=test_new odb=test_old
: 6.14 의 test_old 파일을 Abaqus2017 버전의 test_new파일로 upgrade(Abaqus2017 이 설치되었을시)




6. Abaqus job 실행시 Double Precision 사용 및 CPU 병렬 사용 명령어
 
Command : abaqus job=<job_name> double=both cpus=<the number of CPU>
 

예1)        abaqus job=test double=both cpus=4
: test job 을 double precision 과 4개의 CPU 를 이용하여 해석진행



7. Abaqus workshop 파일 다운로드 방법
 
Command : abaqus fetch job=<workshop_name>
 

예1)        abaqus fetch job=ws_composites_pagano.py
: Composites workshop 예제 다운로드



8. Abaqus ODB 파일 병합 방법
 
Command : abaqus python odbjoin.py –writeOdb Step_1.odb –readOdbs Step_2.odb
사용시 odbjoin.py 파일이 필요, 필요시 기술지원 메일로 요청 바랍니다. )
 
특징)   결과 동영상에서 하나의 odb처럼 연결 출력
           변위값 뿐만 아니라 variable output 사용 가능
           Contact 관련 output 은 지원불가
           Abaqus keyword *Import 옵션을 사용할 경우 Update=No로 설정




9. Abaqus .inp 파일 Material 암호화 명령어
 
Command : abaqus password=<Password>


예1)        abaqus encrypt input=material_data.inp output=material_data_enc.inp password=1234
: material_data.inp 를 암호화된 material_data_enc.inp 파일로 생성 



추가적인 문의가 있으시면 SIMULIA 기술지원팀으로 연락 부탁 드립니다 (02-3270-8541)
이메일 문의 주소는 sap.kr.support@3ds.com 입니다.




=====================================================

 compiler

대소문자 구별

http://www.veng.co.kr/?mod=document&uid=30&page_id=732




@ECHO OFF
ECHO Script Path: %~dp0
ECHO Script Short Path: %~dps0
ECHO Script Drive: %~d0
ECHO Script Folder: %~p0
ECHO Script Name: %~nx0
ECHO Script Name and Location: %~dpnx0
This will generate the following output
Script Path: C:\Temp\
Script Short Path: C:\Temp\
Script Drive: C:
Script Folder: \Temp\
Script Name: TestScript.cmd
Script Name and Location: C:\Temp\TestScript.cmd



https://gist.github.com/franaudo/72362784ded685e4cb381e57020c9ec7

Add environmental Variables

add the following environmental variables to your path:

  • C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\bin
  • C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\bin\intel64
  • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build

Note for compas users: to be able to use compas_fea in Rhino, the same environmental variables must also be included in Rhino through the python IDE.

Link abaqus to the fortran compiler

  • navigate to: C:\abaqus installation folder\Commands
  • edit the abq2019.bat file as follows:
@echo off
setlocal
set ABA_COMMAND=%~nx0
set ABA_COMMAND_FULL=%~f0
rem @call ifortvars.bat intel64 vs2019
IF NOT DEFINED VS_VARS_SET call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set VS_VARS_SET=1
IF NOT DEFINED VC_VARS_SET call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\bin\ifortvars.bat" intel64 vs2019
set VC_VARS_SET=1
"C:\SIMULIA\CAE\2019\win_b64\code\bin\ABQLauncher.exe" %*
endlocal

(notes: don't change your ABQLauncher path; check if the paths to your ifortvars.bat and vcvars64.bat are the same as in the snippet above or change them to match yours)



## Installed Program

VC : vcvars64.bat

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64


FT : ifortvars.bat

C:\Program Files (x86)\Intel\Compiler\11.1\048\bin

C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin


## Command 

C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin\ifortvars.bat" intel64"


Ref)

CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string]
/CCarries out the command specified by string and then terminates.
/KCarries out the command specified by string but remains.
/SModifies the treatment of string after /C or /K (see below).
/QTurns echo off.
/DDisable execution of AutoRun commands from registry (see below).
/ACauses the output of internal commands to a pipe or file to be ANSI.
/UCauses the output of internal commands to a pipe or file to be Unicode.
/T:fgSets the foreground/background colors (see COLOR /? for more info).
/E:ONEnable command extensions (see below).
/E:OFFDisable command extensions (see below).
/F:ONEnable file and directory name completion characters (see below).
/F:OFFDisable file and directory name completion characters (see below).
/V:ONEnable delayed environment variable expansion using c as the delimiter. For example, /V:ON would allow !var! to expand the variable var at execution time. The var syntax expands variables at input time, which is quite a different thing when inside of a FOR loop.
/V:OFFDisable delayed environment expansion.



### 01

Command 경로 설정

C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Compiler\11.1\048\bin\ifortvars.bat" intel64"


ifortvars.bat

  if {%1} EQU {intel64} (


        @call "C:\Program Files (x86)\Intel\Compiler\11.1\048\bin\intel64\ifortvars_intel64.bat" %2


        if exist "C:\Program Files (x86)\Intel\Compiler\11.1\048\tbb\intel64\vc9\bin\tbbvars.bat" @call "C:\Program Files (x86)\Intel\Compiler\11.1\048\tbb\intel64\vc9\bin\tbbvars.bat"


        if exist "C:\Program Files (x86)\Intel\Compiler\11.1\048\mkl\tools\environment\mklvarsem64t.bat" @call "C:\Program Files (x86)\Intel\Compiler\11.1\048\mkl\tools\environment\mklvarsem64t.bat"


        if exist "C:\Program Files (x86)\Intel\Compiler\11.1\048\ipp\em64t\tools\env\ippenvem64t.bat" @call "C:\Program Files (x86)\Intel\Compiler\11.1\048\ipp\em64t\tools\env\ippenvem64t.bat"


        if exist "%FNL_DIR%\intel64\bin\fnlsetup.bat" @call "%FNL_DIR%\intel64\bin\fnlsetup.bat"


        exit /B 0


   )


## 설치 pass 확인 



## fortran install 설명

https://grabcad.com/tutorials/linking-abaqus-and-fortran


#########################################################################


http://www.veng.co.kr/?mod=document&uid=254&page_id=732

■ 2020 ~ 2021 버전은 C:\SIMULIA\EstProducts\해당버전\win_b64\SMA\site\custom_v6.env 파일입니다.
--> 해당버전은, 2020, 2021 버전에 해당하는 숫자입니다.

■ 2016 ~ 2019 버전은 C:\Program Files\Dassault Systemes\SimulationServices\V6R해당버전x\win_b64\SMA\site\custom_v6.env 파일입니다.
--> 해당버전은, 2016, 2017, 2018, 2019 버전에 해당하는 숫자입니다.

■ 6.14이하 버전은 C:\SIMULIA\Abaqus\해당버전\SMA\site\abaqus_v6.env 파일입니다.


===================================================


#Stack Error

C:\Program Files\Dassault Systemes\SimulationServices\V6R2018x\win_b64\SMA\site

파일명 : win86_64.env


변경전 : Stack:2000000

변경후: Stack:100,000,000



=====================================

1. CMD 실행, 관리자권한

cmd 속성 : C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Compiler\11.1\048\bin\ifortvars.bat" intel64"




2. 컴파일링


3. 파일 실행








댓글

이 블로그의 인기 게시물

abaqus gpu 사용

Chat GPI 활용

장고 01 : html 연결