doc:user:geometry:import:tuto2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:user:geometry:import:tuto2 [2013/07/12 15:00] – joris | doc:user:geometry:import:tuto2 [2015/01/08 15:24] – boman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Reading SAMCEF files ====== | ||
+ | ===== Introduction ===== | ||
+ | |||
+ | {{: | ||
+ | Due to historical reasons, the preprocessor of [[http:// | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ===== 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: | ||
+ | |||
+ | {{ doc: | ||
+ | |||
+ | The BACON input file named '' | ||
+ | |||
+ | __Geometry__ | ||
+ | |||
+ | The geometry is created with the following BACON commands (see BACON manual for details): | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | __Mesh Generation__ | ||
+ | |||
+ | * Performed with '' | ||
+ | * Lines are meshed with the command "'' | ||
+ | * The lower side is meshed with a transfinite mapping (command "'' | ||
+ | * An attribute number must then be defined. | ||
+ | |||
+ | __Choice of Element Type__ | ||
+ | |||
+ | * The command '' | ||
+ | |||
+ | __Definition of node/ | ||
+ | |||
+ | * The command '' | ||
+ | * If '' | ||
+ | * Node selections will be used to define boundary conditions (fixations, contact, ...) in the Metafor model. | ||
+ | |||
+ | __Manual Creation of the '' | ||
+ | |||
+ | BACON can be started manually with the command: | ||
+ | |||
+ | samcef ba aleCubeCg n 1 | ||
+ | |||
+ | From the '' | ||
+ | INPUT | ||
+ | .SAUVE DB FORMAT | ||
+ | .STO | ||
+ | |||
+ | __Summary: | ||
+ | |||
+ | * 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 ===== | ||
+ | |||
+ | __Reading the BACON file from Metafor__ | ||
+ | |||
+ | In Metafor, the file '' | ||
+ | |||
+ | import toolbox.samcef | ||
+ | bi = toolbox.samcef.BaconImporter(domain, | ||
+ | bi.execute() | ||
+ | | ||
+ | where '' | ||
+ | |||
+ | If all goes well, a file '' | ||
+ | |||
+ | __Element Generation in Metafor__ | ||
+ | |||
+ | The BACON attributes are converted to '' | ||
+ | app = FieldApplicator(1) | ||
+ | app.push(groupset(99)) | ||
+ | interactionset.add(app) | ||
+ | | ||
+ | __Boundary conditions in Metafor__ | ||
+ | |||
+ | Selections in BACON are translated into '' | ||
+ | loadingset.define(groupset(4), | ||
+ | |||
+ | <note important> |
doc/user/geometry/import/tuto2.txt · Last modified: 2016/03/30 15:23 by 127.0.0.1