Difference between revisions of "Contrib:Claws/Code Aster"

From CAELinuxWiki
Jump to: navigation, search
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Awright - this is done in a HURRY so take everything with a grain of salt - I hope to do some corrections later, or '''YOU''' can do it (edit) :)
+
[[Contrib:Claws|'''<-Link: Back to Contrib:Claws''']] <br />
  
Here I have uploaded some cases that are up to date with the latest '''Code_Aster 9.4''' ('''C_A''') along with '''*.astk''', '''*.comm''', '''mesh-files''', '''*.hdf''' etc. etc. They should be usable 'as is'.
 
  
The point of these is, that I've struggled much with the out-dated examples (they are still valid, but wont run in later '''Code_Aster''' without much editing) and want to provide an easy way of copy/paste for newer users of '''C_A'''.
+
[[Image:CA Signature transparent.png]]
 +
== Contents ==
  
''Software used:''
+
== Introduction ==
  
*'''Ubuntu 8.10'''
+
Here I've collected and uploaded a series of cases and code-snippets that some might find useful.
*'''Salomé 4.1.4''' for preparation of the geometry and meshing
+
*'''Code_Aster 9.4''' 32bit, compiled with the Intel compiler for calculation
+
  
''Computer used:''
+
I consider this an online notebook of my Code Aster® endeavours and I'll try to keep it updated with the experiments I do.
  
*Dual core Intel 2.4GHz with 4G of RAM - all calculations are assigned 2 cores in '''ASTK''' - change this if you have more or less cores
+
*''Thanks to everyone who helped me, and who's *.comm file I've taken stuff from - too many to write here :)''
  
 +
/Claus Andersen, Jan. 2009
  
These are my current uploads:
+
== Small guide to using AMD math libs with Code Aster® ==
*[http://www.caelinux.org/wiki/images/d/d6/Mathcad_-_Beam.xmcd.pdf MathCAD_-_Beam.xmcd.pdf] This is the basis for the calculations. It is used to compare the results obtained from '''C_A'''
+
*[http://www.caelinux.org/wiki/images/6/63/Study_Beam-linaer.tar.gz Study_Beam-linaer.tar.gz] H-Beam imposed with a ridiculous load, linear static/elastic. Linear mesh
+
*[http://www.caelinux.org/wiki/images/4/45/Study_Beam-quad.tar.gz Study_Beam-quad.tar.gz] This is the same calculation, but with a quadratic mesh
+
*[http://www.caelinux.org/wiki/images/4/41/Study_Beam-lin-ensight.tar.gz Study_Beam-lin-ensight.tar.gz] This is the same calculation, with a quadratic mesh but with Ensight® output format
+
*[http://www.caelinux.org/wiki/images/8/87/Study_Beam-nonlinear.tar.gz Study_Beam-nonlinear.tar.gz] This is a nonlinear/plasticity calculation of the above study - It relies heavily on the tutorial of [http://www.caelinux.org/wiki/downloads/docs/PCarrico/CAELINUX_plasticite/index.html PCarrico] on plasticity, so refer to this one if my comments are inadequate.
+
<br />
+
  
I have tried to comment the *.comm files as well as I could, but I am far from an expert on '''C_A''' so use these files only as an example of the file structure/the '''C_A''' way of thinking.
+
[[Contrib:Claws/Code_Aster/amd_math|'''Link: Using AMD math libs''']]
  
Note: These cases are for loading into '''ASTK''' and not for running from e.g. '''SaloméMECA''' - '''Salomé''' should only be used for viewing the geometry, mesh and postprocessing the result files.
+
== Misc. files ==
 +
Old fatigue example
  
I hope these cases prove valuable for learning a bit more about '''C_A'''
+
http://www.code-aster.org/forum2/viewtopic.php?id=15617
  
/Claus Andersen, Jan. 2009
+
http://caelinux.org/wiki/images/d/d0/Fatig.tar.gz
 +
 
 +
== .comm file examples ==
 +
 
 +
[[Contrib:Claws/Code_Aster/comms|'''Link: .comm file concepts - mixed examples''']]
 +
 
 +
Small snippets from various cases, tricks and other neat stuff - can be copy/pasted
 +
 
 +
Includes:
 +
 
 +
*Extracting max/min principal stress of a model
 +
*Extracting node reactions and forces
 +
*Create a table of the principal stresses from each node
 +
*Creating a node group from the entire model
 +
 
 +
 
 +
== Full cases ==
 +
 
 +
=== Code_Aster® 9.04 cases ===
 +
 
 +
[[Contrib:Claws/Code_Aster/9.04cases|'''Link: Code_Aster 9.04 cases''']] <br />
 +
 
 +
Here I have uploaded some cases that are up to date with '''Code Aster® 9.4''' ('''C_A''') along with '''*.astk''', '''*.comm''', '''mesh-files''', '''*.hdf''' etc. etc. They should be usable 'as is'.
 +
 
 +
The point of these are that I've struggled much with the now out-dated examples (they are still valid, but wont run in later '''Code_Aster''' without much editing) and want to provide an easy way of copy/paste for newer users of '''Code Aster®'''.
 +
 
 +
[[Image:9_04cases.png|link[Contrib:Claws/Code_Aster/9.04cases]|caption]]
 +
 
 +
Includes:
 +
 
 +
*Linear statics of an H-beam
 +
*Converting a mesh from linear to quadratic (2nd order) and projecting the result onto a linear mesh
 +
*Outputting to Ensight format
 +
*Non-linear plasticity study
 +
*Contact
 +
 
 +
=== Code Aster® 10.X / 11.X cases ===
 +
 
 +
[[Contrib:Claws/Code_Aster/10_x_cases|'''Link: Code_Aster 10.x  / 11.x cases''']]
 +
 
 +
Here I have uploaded some cases that are up to date with '''Code Aster® 10.X''' ('''C_A''') along with '''*.astk''', '''*.comm''', '''mesh-files''', '''*.hdf''' etc. etc. They should be usable 'as is'.
 +
 
 +
[[Image:Thumb_torque.png]][[Image:Thumb_liason_elem_scaled.png]][[Image:Claws_piston_SS_scaled.png]]<br />
 +
[[Image:Thumb_assembly_scaled.png]][[Image:Thumb_Pendulum_scaled.png]][[Image:Claws_Thumb_plast_350px.png]]<br />
 +
[[Image:Claws_Beam_wiki_front_small.png]]
 +
 
 +
Includes:
 +
 
 +
*Piston tutorial, updated for '''SaloméMECA® 2010.2'''
 +
*Applying torque to a structure - '''LIAISON_SOLIDE'''
 +
*Using parameters in Code Aster®
 +
*Creating an animated GIF file of results
 +
*'''LIAISON_ELEM''':Connecting 3D structures to 1D elements; using beams to substitute 3D geometry
 +
*Describing geometry with '''AFFE_CARA_ELEM'''
 +
*'''LIAISON_UNIF'''
 +
*Cables
 +
*'''DYNA_NON_LINE'''
 +
*Tracing curves with Code Aster® and XMGrace
 +
*Calculating assemblies with Code Aster®
 +
*'''ASSE_MAIL''' for assembling the meshes
 +
*'''LIAISON_MAIL''' for connecting the meshes
 +
*'''IMPR_RESU''' - RESTRAINT for only printing the relevant results to the meshes
 +
*Note on interpreting Von Mises stress in Salomé®/Code Aster®
 +
*'''Plasticity''' Nonlinear deformation of an aluminium wheel rim
 +
*'''Separate simulation and post processing'''
 +
*'''Advanced post processing'''
 +
*'''Cyclic boundary conditions'''
 +
*'''1D, 2D and 3D beam statics'''
 +
*'''MACR_CARA_POUTRE''' for calculating 2D sections

Latest revision as of 17:29, 3 June 2015

<-Link: Back to Contrib:Claws


CA Signature transparent.png

Contents

Introduction

Here I've collected and uploaded a series of cases and code-snippets that some might find useful.

I consider this an online notebook of my Code Aster® endeavours and I'll try to keep it updated with the experiments I do.

  • Thanks to everyone who helped me, and who's *.comm file I've taken stuff from - too many to write here :)

/Claus Andersen, Jan. 2009

Small guide to using AMD math libs with Code Aster®

Link: Using AMD math libs

Misc. files

Old fatigue example

http://www.code-aster.org/forum2/viewtopic.php?id=15617

http://caelinux.org/wiki/images/d/d0/Fatig.tar.gz

.comm file examples

Link: .comm file concepts - mixed examples

Small snippets from various cases, tricks and other neat stuff - can be copy/pasted

Includes:

  • Extracting max/min principal stress of a model
  • Extracting node reactions and forces
  • Create a table of the principal stresses from each node
  • Creating a node group from the entire model


Full cases

Code_Aster® 9.04 cases

Link: Code_Aster 9.04 cases

Here I have uploaded some cases that are up to date with Code Aster® 9.4 (C_A) along with *.astk, *.comm, mesh-files, *.hdf etc. etc. They should be usable 'as is'.

The point of these are that I've struggled much with the now out-dated examples (they are still valid, but wont run in later Code_Aster without much editing) and want to provide an easy way of copy/paste for newer users of Code Aster®.

caption

Includes:

  • Linear statics of an H-beam
  • Converting a mesh from linear to quadratic (2nd order) and projecting the result onto a linear mesh
  • Outputting to Ensight format
  • Non-linear plasticity study
  • Contact

Code Aster® 10.X / 11.X cases

Link: Code_Aster 10.x / 11.x cases

Here I have uploaded some cases that are up to date with Code Aster® 10.X (C_A) along with *.astk, *.comm, mesh-files, *.hdf etc. etc. They should be usable 'as is'.

Thumb torque.pngThumb liason elem scaled.pngClaws piston SS scaled.png
Thumb assembly scaled.pngThumb Pendulum scaled.pngClaws Thumb plast 350px.png
Claws Beam wiki front small.png

Includes:

  • Piston tutorial, updated for SaloméMECA® 2010.2
  • Applying torque to a structure - LIAISON_SOLIDE
  • Using parameters in Code Aster®
  • Creating an animated GIF file of results
  • LIAISON_ELEM:Connecting 3D structures to 1D elements; using beams to substitute 3D geometry
  • Describing geometry with AFFE_CARA_ELEM
  • LIAISON_UNIF
  • Cables
  • DYNA_NON_LINE
  • Tracing curves with Code Aster® and XMGrace
  • Calculating assemblies with Code Aster®
  • ASSE_MAIL for assembling the meshes
  • LIAISON_MAIL for connecting the meshes
  • IMPR_RESU - RESTRAINT for only printing the relevant results to the meshes
  • Note on interpreting Von Mises stress in Salomé®/Code Aster®
  • Plasticity Nonlinear deformation of an aluminium wheel rim
  • Separate simulation and post processing
  • Advanced post processing
  • Cyclic boundary conditions
  • 1D, 2D and 3D beam statics
  • MACR_CARA_POUTRE for calculating 2D sections