Models

FEModel - A classical finite element model

class edelweissfe.models.femodel.FEModel(dimension)[source]

This is is a standard finite element model tree. It takes care of the correct number of variables, for nodes and scalar degrees of freedem, and it manages the fields.

Parameters

dimension (int) – The dimension of the model.

Methods

advanceToTime(time)

Accept the current state of the model and sub instances, and set the new time.

prepareYourself(journal)

Prepare the model for a simulation.

readRestart(restartFile)

Read the state of the model from a restart file.

writeRestart(restartFile)

Write the current state of the model to a restart file.

advanceToTime(time)[source]

Accept the current state of the model and sub instances, and set the new time.

Parameters

time (float) – The new time.

prepareYourself(journal)[source]

Prepare the model for a simulation. Creates the variables, bundles the fields, and initializes elements.

Parameters

journal (Journal) – The journal instance.

readRestart(restartFile)[source]

Read the state of the model from a restart file.

Parameters
  • fileName – The name of the restart file.

  • restartFile (File) –

writeRestart(restartFile)[source]

Write the current state of the model to a restart file.

Parameters
  • fileName – The name of the restart file.

  • restartFile (File) –

additionalParameters

Additional information.

analyticalFields

AnalyticalFields in the model.

constraints

Constraints in the model.

domainSize

Spatial dimension of the model

elementSets

ElementSets in the model.

elements

Elements in the model.

materials

Materials in the model.

nodeFields

NodeFields in the model.

nodeSets

NodeSets in the model.

nodes

Nodes in the model.

scalarVariables

ScalarVariables in the model.

sections

Sections in the model.

surfaces

Surface definitions in the model.

time

Current time of the model.