LESIZE command, LAYER1 Command not being implemented

  • 183 Views
  • Last Post 03 August 2018
  • Topic Is Solved
joepa_2017 posted this 02 August 2018

I am trying to manually mesh something using the LESIZE command in APDL.  The documentation says that the syntax is the following:

LESIZE, NL1, SIZE, ANGSIZ, NDIV, SPACE, KFORC, LAYER1, LAYER2, KYNDIV

From what I understand, if I input a negative value for LAYER1, then the magnitude of LAYER1 should specify how many layers in the mesh have the size specified in SIZE.

For example, if I write:             LESIZE, all, 0.1, , , 1, 1, -5, ,0

then I would expect that the value of -5 in LAYER1 implies that there should be 5 rows of elements with an edge size of 0.1.  I am not observing this in the model.  So either, I have misinterpreted the meaning of LAYER1 or I am missing something.

Any suggestions to get LAYER1 working would be appreciated.  It seems like it would come in handy for my model.

Thanks!

 

Order By: Standard | Newest | Votes
jpasquerell posted this 02 August 2018

I think multiplier means 5 * 0.1 = 0.5 so 0.5 should be used as the element size for layer 1.  Is that what you are seeing?

 

joepa_2017 posted this 02 August 2018

Maybe.  However, if that is the case, why not just specify the element size to be 0.5 on the line to begin with?

joepa_2017 posted this 02 August 2018

This is what I'm trying to do:

Line-Graded Layer Mesh

jpasquerell posted this 03 August 2018

My initial reply was incorrect.  See the test input below.  It appears that setting layer2 to a non-zero value is also needed to get that type of mesh.

/prep7

fact=5

rect,,11*fact,,3*fact

pcirc,2*fact,,0,360

wpoff,4*fact,3*fact

pcirc,2*fact,,0,360

wpoff,4*fact,-3*fact

pcirc,2*fact,,0,360

asba,1,2

asba,5,3

asba,1,4

et,1,200,4

save

lsel,s,,,5

lsel,a,,,11,14

lesi,all,0.1,,,1,1,-5,2,0

esiz,1

amesh,all

 

 

  • Liked by
  • joepa_2017
joepa_2017 posted this 03 August 2018

The good news is that your code works as desired.

The bad news is that for some reason mine does not.  I have even tried layer meshing on a very simple geometry.  When I run the following code on a rectangle, I still only get 1 layer of elements that have the desired size.  Here is a sample code from a simple rectangle; I don't see what would be incorrect with it:

/PREP7  

RECTNG,0,10,0,-5,   

!Define element type

et,1,plane183   

lsel,s,line,,3  

keyopt,1,1,1

lesize,all,.05,,,1,1,-5,1,0 

aesize,1,.5 

amesh,1 

 

 

joepa_2017 posted this 03 August 2018

It looks like it only works when using esize rather than aesize... That's unfortunate

joepa_2017 posted this 03 August 2018

Nevermind.  It looks like the layer meshing works only when using esize rather than aesize.  So, it is still possible to use if each area is meshed separately, and esize can be redefined between meshing each area.

Close