User login

Navigation

You are here

how to change .inp file in python scripts

 

Hi

 

I'm working on optimize an abaqus model. I create my model in .inp file because there are infinite elements in my model and I couldn't create this element in abaqus GUI. Now I want to optimize my model through  python scripts. because I import inp file to abaqus, abaqus don't make any python script from my model that I can add variable to them to optimize my problem.

 

please help me can I write optimization algorithm in python and add variable in my .inp file?

 

It means that optimization algorithm in each step create new variable and create new .inp file then import .inp file to abaqus and get output and repeat…

 

abaqus create only blow python script.

Normal
0

false
false
false

EN-US
X-NONE
FA

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0mm 5.4pt 0mm 5.4pt;
mso-para-margin-top:0mm;
mso-para-margin-right:0mm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0mm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:Arial;
mso-bidi-theme-font:minor-bidi;}

# -*- coding: mbcs -*-
from part import *
from material import *
from section import *
from assembly import *
from step import *
from interaction import *
from load import *
from mesh import *
from optimization import *
from job import *
from sketch import *
from visualization import *
from connectorBehavior import *
mdb.ModelFromInputFile(inputFileName='C:/Temp/2-11-93/shot1-step1.inp', name=
    'shot1-step1')

please help me!!!

Subscribe to Comments for "how to change .inp file in python scripts"

Recent comments

More comments

Syndicate

Subscribe to Syndicate