HyperMesh and BatchMesher

Example Template Code

Example Template Code

Previous topic Next topic No expanding text in this topic  

Example Template Code

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Example Template Code ([Install Directory]\hm\examples\templates\ExampleTemplate.tpl)

 

*codename(ExampleTemplate,100)

//MAT1 Attributes

*defineattribute(MAT1,1,integer,none)

*defineattribute(E,2,real,none)

*defineattribute(G,3,real,none)

*defineattribute(NU,4,real,none)

*defineattribute(RHO,5,real,none)

*defineattribute(A,6,real,none)

*defineattribute(TREF,7,real,none)

*defineattribute(GE,8,real,none)

*defineattribute(ST,9,real,none)

*defineattribute(SC,10,real,none)

*defineattribute(SS,11,real,none)

//Materials Named Entity - MAT1 Card Image and Export Format

*materials(MAT1)

 //MAT1 Card Image

 *beginmenu()

         *menustring("MAT1    ")

         *menufield("ID",integer,id,8)

         *menufield("E",real,$E,8)

         *menufield("G",real,$G,8)

         *menufield("NU",real,$NU,8)

         *menufield("RHO",real,$RHO,8)

         *menufield("A",real,$A,8)

         *menufield("TREF",real,$TREF,8)

         *menufield("GE",real,$GE,8)

         *menulineend()

         *menustring("        ")

         *menufield("ST",real,$ST,8)

         *menufield("SC",real,$SC,8)

         *menufield("SS",real,$SS,8)

         *menulineend()

 *endmenu()

 //MAT1 Export Format

 *format()

         *string("MAT1    ")

         *field(integer,id,8)

         *field(real,$E,8)

         *field(real,$G,8)

         *field(real,$NU,8)

         *field(real,$RHO,8)

         *field(real,$A,8)

         *field(real,$TREF,8)

         *field(real,$GE,8)

         *end()

         *string("        ")

         *field(real,$ST,8)

         *field(real,$SC,8)

         *field(real,$SS,8)

 *end()

*output()

 

 

See Also:

HyperMesh Entities & Solver Interfaces