doc:user:geometry:import:tuto2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:user:geometry:import:tuto2 [2013/07/12 15:42] – external edit 127.0.0.1 | doc:user:geometry:import:tuto2 [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | Ici nous utilisons la méthode de préprocessing la plus longue et la plus tordue: | + | {{:doc: |
| + | Due to historical reasons, the preprocessor of [[http:// | ||
| - | * création d'une géométrie et d'un maillage par [[doc:user:general:glossaire# | + | <note important> |
| - | * création des paramètres et conditions aux limites par [[doc: | + | |
| - | * calcul par Metafor. | + | |
| - | Cette méthode | + | ===== BACON ''.dat'' file ===== |
| - | ===== Partie Bacon ===== | + | The example simulation consists of a sheared cube (lower and upper faces and fixed and moved one with respect to another). The figure below shows the geometry: |
| - | ==== Présentation du cas-test ==== | + | {{ doc: |
| - | Le but de cet exercice est de créer un [[doc: | + | The BACON input file named '' |
| - | {{ doc: | + | __Geometry__ |
| - | Le fichier | + | The geometry is created with the following BACON commands (see BACON manual for details): |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| - | ==== Géométrie ==== | + | __Mesh Generation__ |
| - | * Commande | + | * Performed with '' |
| - | * Commande | + | * Lines are meshed with the command "'' |
| - | * Commande | + | * The lower side is meshed with a transfinite mapping (command "'' |
| - | * Commande '' | + | * An attribute number must then be defined. |
| - | * Commande '' | + | |
| - | * Commande | + | |
| - | * Commande '' | + | |
| - | ==== Maillage ==== | + | __Choice of Element Type__ |
| - | * Il s' | + | * The command |
| - | * Les lignes sont maillées avec la commande "'' | + | |
| - | * On maille la face inférieure en transfini | + | |
| - | * Ne pas oublier de définir un numéro d' | + | |
| - | ==== Déclaration du type d' | + | __Definition of node/ |
| - | * utiliser la commande | + | * The command |
| + | * If '' | ||
| + | * Node selections will be used to define boundary conditions | ||
| - | ==== Définition des sélections ==== | + | __Manual Creation of the '' |
| - | * Utiliser la commande '' | + | BACON can be started manually with the command: |
| - | * Si on utilise '' | + | |
| - | * Les sélections de noeuds seront utilisées pour la définition de conditions aux limites (fixations, contact, etc) dans le fichier python. | + | |
| - | ===== Création du fichier .fdb Bacon ===== | + | samcef ba aleCubeCg n 1 |
| - | A partir du fichier | + | From the '' |
| + | INPUT | ||
| + | | ||
| + | .STO | ||
| - | samcef ba aleCubeCg n 1 | + | __Summary: |
| - | input | + | |
| - | .sauve db format | + | |
| - | .sto | + | |
| - | ===== Traduction des données vers un script | + | * Points |
| + | * Curves: '' | ||
| + | * Surface: '' | ||
| + | * Wire | ||
| + | * Sides: Imported (even if not treated by Bacon) | ||
| + | * Skins: If '' | ||
| + | * Nodes: (imported as '' | ||
| + | * Mesh elements: Triangle - Quad - Tetra - Hexa (with recovery in Metafor) | ||
| + | * Selections: only groups of nodes are imported (other have no use in Metafor) | ||
| + | * "DAO -- Mesh" relations are not read again ('' | ||
| + | ===== Metafor input file ===== | ||
| - | Dans [[doc: | + | __Reading the BACON file from Metafor__ |
| - | import toolbox.importFdb | + | In Metafor, the file '' |
| - | | + | |
| - | Normalement, un fichier | + | import toolbox.samcef |
| + | bi = toolbox.samcef.BaconImporter(domain, os.path.splitext(__file__)[0]+'.dat' | ||
| + | bi.execute() | ||
| + | |||
| + | where '' | ||
| + | |||
| + | If all goes well, a file | ||
| - | ===== Création du fichiers " | + | __Element Generation in Metafor__ |
| - | Le fichier de paramètres et conditions aux limites se crée dans Python. La liste des commandes est similaire aux [[doc: | + | The BACON attributes are converted to '' |
| + | app = FieldApplicator(1) | ||
| + | app.push(groupset(99)) | ||
| + | interactionset.add(app) | ||
| + | |||
| + | __Boundary conditions in Metafor__ | ||
| - | Le fichier " | + | Selections in BACON are translated into '' |
| + | loadingset.define(groupset(4), | ||
| - | On peut récupérer les données venant de Bacon en important | + | < |
| - | + | ||
| - | import apps.bQs.aleCubeCgBacon | + | |
| - | apps.bQs.aleCubeCgBacon.fillImportedFdb(dom) | + | |
| - | + | ||
| - | Le reste des paramètres se définissent comme d' | + | |
| - | + | ||
| - | # ATTRIBUTS | + | |
| - | prp99 = ElementProperties(Volume3DElement) | + | |
| - | prp99.put(MATERIAL, | + | |
| - | prp99.put(CAUCHYMECHVOLINTMETH, | + | |
| - | prp99.put(STIFFMETHOD, | + | |
| - | + | ||
| - | intset = dom.getInteractionSet() | + | |
| - | app99 = FieldApplicator(99) | + | |
| - | app99.push(99, | + | |
| - | intset.copy(app99) | + | |
| - | intset(99).addProperty(prp99) | + | |
| - | ===== Calcul Metafor ===== | + | |
| - | + | ||
| - | + | ||
| - | Le calcul se lance par la commande '' | + | |
| - | + | ||
| - | {{ doc: | + | |
| - | + | ||
| - | ===== Conseils ===== | + | |
| - | + | ||
| - | + | ||
| - | * Ne pas définir de groupes ayant le même numéro que les numéros d' | + | |
| - | * Si l' | + | |
| - | * Plus besoin de renuméroter les noeuds et mailles | + | |
| - | + | ||
| - | + | ||
| - | ===== Limites de l' | + | |
| - | + | ||
| - | * Points | + | |
| - | * Courbes : '' | + | |
| - | * Surface : '' | + | |
| - | * Wire | + | |
| - | * Sides : Importées (même si pas traitées par Bacon) | + | |
| - | * Skins: Attention si on créé des objets '' | + | |
| - | * Nodes :(importés en tant que '' | + | |
| - | * Mailles : Triangle - Quad - Tetra - Hexa (avec redressement dans Metafor) | + | |
| - | * Selections : seuls les groupes de noeuds sont importés (les autres n'ont pas d' | + | |
| - | * Les relations "DAO -- Maillages" | + | |
doc/user/geometry/import/tuto2.1373636557.txt.gz · Last modified: (external edit)
