cancel
Showing results for 
Search instead for 
Did you mean: 

material angle

Creator
Creator

I trying to use femodifymaterialangle() to assign material to all laminates in my model using API.

feModifyMaterialAngle( entitySET, method, vecDir, coordDir, coordCSys, angle )

 

i use method = 1 & vecDir to assign the directions.Do i just use 0 in coordDir, coordCsyc and angle. I tried both 0 & false. API runs without any error, but i dont see any material assigned.It is not clear from help 3.10.7.3

 

Thank you

KM

2 REPLIES

Re: material angle

Phenom
Phenom

Hi,

 

I don't quite understand your post. This method is used to change the material angle, not the material itself. What you describes works, for example:

 

'element mat dir is initially X0 => set it to Y0
Dim vec(2) As Double
vec(1) = 1

 

'elset contains 2D els
App.feModifyMaterialAngle(elset.ID,1,vec,0,0,0)

 

This works fine, the material angle is updated.

But the elements already have an assigned material.

 

Are you trying to modify the material? This isn't done at element level, because elements aren't assigned materials: materials are for properties, which in turn are used by elements.

If this is what you're trying to do, have a look at feModifyPropMatlID (3.10.7.2).

 

AP

 

Re: material angle

Creator
Creator

Thanks for your reply.

 

I'm updating material orientation and not material ID. To start with all the laminates use default orientation. I need to update them. I understand where i went wrong after looking at your code. I did not dim Vec(0..2).