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

From CAELinuxWiki
Jump to: navigation, search
 
(32 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 />
  
  
== .comm file exampels ==
+
[[Image:CA Signature transparent.png]]
[http://www.caelinux.org/wiki/index.php?title=Contrib:Claws/Code_Aster/comms .comm file concepts-mixed exampels]
+
== Contents ==
  
== Full cases ==
+
== Introduction ==
  
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'.
+
Here I've collected and uploaded a series of cases and code-snippets that some might find useful.
  
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'''.
+
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 whos *.comm file I've taken stuff from - too many to write here :)''
+
*''Thanks to everyone who helped me, and who's *.comm file I've taken stuff from - too many to write here :)''
  
''Software used:''
+
/Claus Andersen, Jan. 2009
  
*'''Ubuntu 8.10'''
+
== Small guide to using AMD math libs with Code Aster® ==
*'''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:''
+
[[Contrib:Claws/Code_Aster/amd_math|'''Link: Using AMD math libs''']]
  
*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<br />
+
== Misc. files ==
<br />
+
Old fatigue example
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.<br />
+
  
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.
+
http://www.code-aster.org/forum2/viewtopic.php?id=15617
  
I hope these cases prove valuable for learning a bit more about '''C_A'''
+
http://caelinux.org/wiki/images/d/d0/Fatig.tar.gz
  
 +
== .comm file examples ==
  
These are my current uploads:
+
[[Contrib:Claws/Code_Aster/comms|'''Link: .comm file concepts - mixed examples''']]
  
[[Image:result-quad.resized.png]]
+
Small snippets from various cases, tricks and other neat stuff - can be copy/pasted
*[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 />
+
  
*This is a study on a tensile strength test I did on first semester - I can't remember the forces required, but that it snapped at about 10mm. This is a nonlinear calculation using the same Alu. material used in the above calculation.<br />
+
Includes:
[[Image:Result.setup.resized.png]]
+
  
*[http://www.caelinux.org/wiki/images/f/f3/Study_Tensile_rod.tar.gz Study_Tensile_rod.tar.gz]<br />
+
*Extracting max/min principal stress of a model
<br />
+
*Extracting node reactions and forces
This is an example of contact - the aluminum rod is pressing down on a solid steel block. The example introduces an new concept (for me): creating a ''linear'' mesh in Salomé, loading and converting this mesh in '''C_A''' to a ''quadratic'' mesh, run the calculation and the project the results back to the linear mesh. This saves space on the mesh/result file but retains the finer results from the quadratic mesh. The *.comm file is documented to some degree, but some concepts I don't fully understand yet.
+
*Create a table of the principal stresses from each node
 +
*Creating a node group from the entire model
  
[[Image:Result-setup-resized.png]]
 
  
*[http://www.caelinux.org/wiki/images/0/0a/Study_Contact_New.tar.gz Study_Contact_New.tar.gz]
+
== Full cases ==
  
/Claus Andersen, Jan. 2009
+
=== 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