ReadingMesh

Introduction

  • Reading mesh is done via the operator LIRE_MAILLAGE
  • link of file and "program unit" is done via ASTK as in the following example
# TITLE Example N 1 "simply supported Linear Pipe" 
DEBUT();
#
#   Reading the mesh file in Aster Format 
#   -  no import command is present
#   -  Assign the name "line1" to the mesh data structure read in 
#   -  The GUI "ASTK" performe the link between the mesh file and the 
#                     FORTRAN logic unit
#
line1=LIRE_MAILLAGE();

File format

The mesh file has to be in MED format to be read directly by the -LIRE_MAILLAGE()- method. Other format have dedicated command for the conversion to the MED format as for the "geo" format of the GMSH mesher
DEBUT();

PRE_GMSH();

MA=LIRE_MAILLAGE();

The link between program unit and file is done by The GUI "ASTK" or using the method DEFI_FICHIER

Optional arguments for the PRE_GMSH are
PRE_GMSH   (
               ◊   UNITE_GMSH =   / 19,         [DEFAUT]
                                 / unilec,      [I]


               ◊   UNITE_MAILLAGE =   / 20,      [DEFAUT]
                                      / uniecr,   [I]
            )

File Association

File association can be performed by command DEFI_FICHIER
Pour un fichier en donnée, on fera par exemple : DEFI_FICHIER(FICHIER='./REPE_IN/file.data', ACCESS='OLD', UNITE=11) LIRE_FONCTION(UNITE=11, ...)

Entity Labelling

Dans GMSH, les entités sont numérotées et parfois nommées. Lors de la relecture par PRE_GMSH, seuls les numéros sont conservés. Tous les groupes d’éléments de numéros 1, 2, ... créés dans GMSH (« physical ») sont transformés en groupes de mailles (GROUP_MA) portant le nom GM1, GM2, ...

-- RobertoBernetti - 07 Apr 2017
Topic revision: r4 - 28 Dec 2017, RobertoBernetti
This site is powered by FoswikiCreative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License1999-2025
Ideas, requests, problems regarding this site? Send feedback