How to assign material data to multiple components in APDL

RashiRashi Member Posts: 35

Hi all,

 

How to assign material data to multiple components in APDL. When I try to add "real constant" APDL says "Please check and change keyopt settings for element.......".

Does the "real constant" define the material data for separate objects?

 

Thank you.

 

BR,

Rashiga

 

Comments

  • jj77jj77 Posts: 843Member
    edited March 2019

    Say you have defined two material properties via MP,EX,1,200E9 (material ID 1) and MP,EX,2,100E9 (material ID 2).

     

    Before meshing a volume say with vmesh, or an area with the amesh command then one specifies which material ID nr to use (that is which material property).

    So one would say mat,1 and vmesh,all to use the first material and mat,2 and vmesh,all to use the second material.

    So the command mat decides which material is to be used when meshing. 

    As in the help manual it "sets the element material attribute pointer", thus "assigns this material number to the subsequently defined elements".

     

    The example above assumes that we are about to create the mesh.

    It is also possible to create the mesh and then change the material properties of a part or some elements.

    This is done via MPCHG, which works as follows:

    Select all the elements that you want to change the properties

    then use say to change to property 2 material: MPCHG,2,ALL

     

  • shashi27shashi27 Posts: 3Member

    Can i define material property to the model element wise

  • shashi27shashi27 Posts: 3Member

    Can i define material property to the model element wise in layers, if yes then how?

  • ekostsonekostson Posts: 884Ansys Employee

    As mentioned there are multiple ways - if one creates the mesh first then:


    This is done via MPCHG, which works as follows:

    1Define material properties via MP commands (see above discussion)

    2Select all the elements in a layer say that you want to change the properties for (use ESEL command for instance to select them)

    3then for these selected elements use say to change to property nr. 2 material: MPCHG,2,ALL

    4Select all elements again (ALLSEL,ALL)

    Repeat this as many time as necessary starting from step 2 above.


    Thank you


    Erik

  • shashi27shashi27 Posts: 3Member

    Thank you Erik for the answer.

    I have another question

    How to used glue command in ansys apdl? if i am trying to make a plate by gluing 'N' number of with different material properties ?

  • ekostsonekostson Posts: 884Ansys Employee

    Hi


    See the mechanical apdl help manual


    Chapter 5 section 4.11 (Glue or Merge).


    If you can not find it then just search there for glue or merge.


    Also should you need any help with that open up a new discussion as this one is old - closing this.



    All the best

This discussion has been closed.