How to build my own FE model?

This page is under construction. Please refer to tutorial.pdf for up-to-date information

Under construction Crushing of a block made of steel by a cylindrical punch

What is written in the file tutorial1.py ?

Main idea: The input file creates a complete data structure and returns it to the FE code

Data structure of a model

First lines – header of the file

# -*- coding: latin-1; -*-
# $Id: tutorial1.py 1875 2014-01-02 10:10:56Z boman $
########################################
#   tutorial 1                         #
#--------------------------------------#
#   geometrie 2D etat plan defo        #
#   materiau elastoviscoplastique      #
#           a écrouissage isotrope     #
#   definition outil                   #
#   contact rigide-defo collant        #
#   archivage + visu courbes           #
########################################
# Tutorial

from wrap import *
import math
metafor = Metafor()
domain = metafor.getDomain()

def getMetafor(p={}): return metafor

At that point, the data structure simply looks like this Creation of an instance of the Metafor class (for now it is almost empty) We name it metafor

Any Metafor object contains a Domain object. We retreive the Domain and we name it domain

We define the getMetafor() function (same for all models)