Input file syntax

Relevant module: edelweissfe.utils.inputfileparser.py

EdelweissFE uses an input file syntax similar to Abaqus, using human readable input files. The general syntax makes use of *keywords, possibly with option=values in the same line and supplemented by data lines. In general, options and data entries are comma separated. Indentations and blank lines have no effect.

*keyword, option1=value, option2=another_value
data, data, data, data
data, data, data, data
data, data, data, data

**this is a comment
**again a comment

*another_keyword, option1=value, option2=another_value
data, data, data, data

The available input syntax is defined in fe/utils/inputfileparser.py, and available keywords can be printed using

python edelweiss.py --keywords

Inputfileparser for inputfiles employing an Abaqus-like syntax.

edelweissfe.utils.inputfileparser.parseInputFile(fileName, currentKeyword=None, existingFileDict=None)[source]

Parse an Abaqus-like input file to generate a dictionary with its content.

Parameters
  • fileName (str) – The name of the file to parse.

  • currentKeyword (str) – If nested parsing is performed by using *include, this option tells which keyword is currently active.

  • existingFileDict (CaseInsensitiveDict) – An existing dictionary to append. If Nonde, a new dictionary is created.

Returns

The parsed input file.

Return type

CaseInsensitiveDict

edelweissfe.utils.inputfileparser.printKeywords()[source]

Print the input file language set.

edelweissfe.utils.inputfileparser.printKeywordsRST()[source]

Print the input file language set in an RST conform format.

Keywords

*analyticalfield : define an analytical field

Option

Type

Description

data

string

definition

name

string

name of analytical field

type

string

type of analytical field (currently ‘expression’ only)

*configureplots : customize the figures and axes

Option

Type

Description

data

string

key=value pairs for configuration of figures and axes

*constraint : define a constraint

Option

Type

Description

data

string

definition of the constraint

name

string

(optional) name of the constraint

type

string

constraint type

*element : definition of element(s)

Option

Type

Description

data

numpy integer array

Abaqus like element definiton lines

elset

string

name

provider

string

provider (library) for the element type. Default: Marmot

type

string

assign one of the types definied in the elementlibrary

*elset : definition of an element set

Option

Type

Description

data

string

Abaqus like element set definiton lines

elset

string

name

generate

string

set True to generate from data line 1: start-element, end-element, step

*exportplots : export your figures

Option

Type

Description

data

string

key=value pairs for exporting of figures and axes

*fieldoutput : define fieldoutput, which is used by outputmanagers

Option

Type

Description

data

string

defintions lines for the output module

jobname

string

(optional), name of job, standard=defaultJob

*include : (optional) load extra .inp file (fragment), use relative path to current .inp

Option

Type

Description

input

string

filename

*job : definition of an analysis job

Option

Type

Description

domain

string

define spatial domain: 1d, 2d, 3d

linsolver

string

(optional) define linear solver, standard = superlu

name

string

(optional) name of job, standard = defaultJob

solver

string

(optional) define solver, standard = NIST

starttime

float

(optional) start time of job, standard = 0.0

*material : definition of a material

Option

Type

Description

data

numpy float array

material properties, multiline possible

id

string

name of the property

name

string

name of the property

statevars

integer

(deprecated and ignored) number of statevars

*modelgenerator : define a model generator, loaded from a module

Option

Type

Description

data

string

key=value pairs

generator

string

generator module

name

string

(optional) name of the generator

*node : definition of nodes

Option

Type

Description

data

numpy float array

Abaqus like node definiton lines: label, x, [y], [z]

nset

string

name

*nset : definition of an element set

Option

Type

Description

data

string

Abaqus like node set definiton lines

generate

string

set True to generate from data line 1: start-node, end-node, step

nset

string

name

*output : define an output module

Option

Type

Description

data

string

defintions lines for the output module

jobname

string

(optional), name of job, standard=defaultJob

name

string

(optional), name of manager, standard=None

type

string

output module

*parameteridentification : identify material parameter for given x and y data

Option

Type

Description

data

string

key=value pairs

file

string

filename where identified parameters are written

id

string

name of the property

jobname

string

name of job

plot

string

True|False plot result with final parameters

xdata

string

filename where xData is given

ydata

string

filename where yData is given

*section : definition of an section

Option

Type

Description

data

string

list of associated element sets

material

string

associated id of defined material

name

string

name

thickness

float

associated element set

type

string

type of the section

*step : definition of job steps

Option

Type

Description

criticaliter

integer

maximum number of iterations to prevent from increasing the increment

data

string

define step actions, which are handled by the corresponding stepaction modules

jobname

string

(optional), name of job, standard=defaultJob

maxinc

float

maximum size of increment

maxiter

integer

maximum number of iterations

maxnuminc

integer

maximum number of increments

mininc

float

minimum size of increment

steplength

float

time period of step

*surface : definition of surface set

Option

Type

Description

data

string

Abaqus like definition. Type ‘element’: elSet, faceID

name

string

name

type

string

type of surface (currently ‘element’ only)

*updateconfiguration : update an configuration

Option

Type

Description

configuration

string

name of the modified settings category

data

string

key=value pairs